Skip to content

Commit 3708b91

Browse files
committed
Merge branch 'main' of https://github.com/dataease/SQLBot
2 parents a774a62 + 17036f7 commit 3708b91

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

backend/apps/db/db_sql.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def get_version_sql(ds: CoreDatasource, conf: DatasourceConf):
1414
"""
1515
elif ds.type == "pg" or ds.type == "excel":
1616
return f"""
17-
select version()
17+
SELECT current_setting('server_version')
1818
"""
1919
elif ds.type == "oracle":
2020
return f"""
@@ -29,6 +29,7 @@ def get_version_sql(ds: CoreDatasource, conf: DatasourceConf):
2929
SELECT * FROM v$version
3030
"""
3131

32+
3233
def get_table_sql(ds: CoreDatasource, conf: DatasourceConf):
3334
if ds.type == "mysql" or ds.type == "doris":
3435
return f"""

0 commit comments

Comments
 (0)