Skip to content

Commit cefd74d

Browse files
committed
fix: Fix choose table error
1 parent b9b3376 commit cefd74d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backend/apps/db/db_sql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = ''
6363
elif equals_ignore_case(ds.type, "pg", "excel"):
6464
return """
6565
SELECT c.relname AS TABLE_NAME,
66-
COALESCE(d.description, obj_description(c.oid)) AS TABLE_COMMENT
66+
COALESCE(COALESCE(d.description, obj_description(c.oid)), '') AS TABLE_COMMENT
6767
FROM pg_class c
6868
LEFT JOIN
6969
pg_namespace n ON n.oid = c.relnamespace

0 commit comments

Comments
 (0)