fix: Fix choose table error

This commit is contained in:
junjun
2025-12-22 17:23:51 +08:00
committed by Junjun
parent b9b3376396
commit cefd74da86
+1 -1
View File
@@ -63,7 +63,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = ''
elif equals_ignore_case(ds.type, "pg", "excel"):
return """
SELECT c.relname AS TABLE_NAME,
COALESCE(d.description, obj_description(c.oid)) AS TABLE_COMMENT
COALESCE(COALESCE(d.description, obj_description(c.oid)), '') AS TABLE_COMMENT
FROM pg_class c
LEFT JOIN
pg_namespace n ON n.oid = c.relnamespace