mirror of
https://github.com/dataease/dataease.git
synced 2026-05-15 13:32:18 +08:00
fix(数据源): 修复对接版本小于10的PostgreSQL数据源时,获取表结构方法报错的问题
This commit is contained in:
@@ -1284,8 +1284,11 @@ public class CalciteProvider extends Provider {
|
||||
END,
|
||||
CASE
|
||||
WHEN pg_get_expr(ad.adbin, ad.adrelid) LIKE 'nextval%%' THEN 1
|
||||
WHEN a.attidentity = 'd' THEN 1
|
||||
WHEN a.attidentity = 'a' THEN 1
|
||||
""" + (
|
||||
datasourceRequest.getDsVersion() > 9 ? """
|
||||
WHEN a.attidentity = 'd' THEN 1
|
||||
WHEN a.attidentity = 'a' THEN 1
|
||||
""" : "") + """
|
||||
ELSE 0
|
||||
END
|
||||
FROM pg_class c
|
||||
|
||||
Reference in New Issue
Block a user