We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c530411 commit 17036f7Copy full SHA for 17036f7
backend/apps/db/db_sql.py
@@ -14,7 +14,7 @@ def get_version_sql(ds: CoreDatasource, conf: DatasourceConf):
14
"""
15
elif ds.type == "pg" or ds.type == "excel":
16
return f"""
17
- select version()
+ SELECT current_setting('server_version')
18
19
elif ds.type == "oracle":
20
@@ -29,6 +29,7 @@ def get_version_sql(ds: CoreDatasource, conf: DatasourceConf):
29
SELECT * FROM v$version
30
31
32
+
33
def get_table_sql(ds: CoreDatasource, conf: DatasourceConf):
34
if ds.type == "mysql" or ds.type == "doris":
35
0 commit comments