mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Fix choose table error
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user