Skip to content

Commit 6dca923

Browse files
committed
fix: Fix the issue of abnormal remark retrieval in low versions of ClickHouse
1 parent 69f3003 commit 6dca923

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
@@ -103,7 +103,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = ''
103103
version = int(db_version.split('.')[0])
104104
if version < 22:
105105
return """
106-
SELECT name, null as comment
106+
SELECT name, '' as comment
107107
FROM system.tables
108108
WHERE database = :param
109109
AND engine NOT IN ('Dictionary')

0 commit comments

Comments
 (0)