mirror of
https://gh-proxy.org/https://github.com/klinsmaya/SQLBot.git
synced 2026-11-08 01:06:59 +08:00
fix: Fix the issue of abnormal remark retrieval in low versions of ClickHouse
This commit is contained in:
@@ -103,7 +103,7 @@ def get_table_sql(ds: CoreDatasource, conf: DatasourceConf, db_version: str = ''
|
||||
version = int(db_version.split('.')[0])
|
||||
if version < 22:
|
||||
return """
|
||||
SELECT name, null as comment
|
||||
SELECT name, '' as comment
|
||||
FROM system.tables
|
||||
WHERE database = :param
|
||||
AND engine NOT IN ('Dictionary')
|
||||
|
||||
Reference in New Issue
Block a user