Skip to content

Commit 9a65dcf

Browse files
committed
fix: Fix choose table error
1 parent bca29e3 commit 9a65dcf

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
@@ -148,7 +148,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = ''
148148
elif equals_ignore_case(ds.type, "kingbase"):
149149
return """
150150
SELECT c.relname AS TABLE_NAME,
151-
COALESCE(d.description, obj_description(c.oid)) AS TABLE_COMMENT
151+
COALESCE(COALESCE(d.description, obj_description(c.oid)), '') AS TABLE_COMMENT
152152
FROM pg_class c
153153
LEFT JOIN
154154
pg_namespace n ON n.oid = c.relnamespace

0 commit comments

Comments
 (0)