fix(数据源): 修复对接版本小于10的PostgreSQL数据源时,获取表结构方法报错的问题

This commit is contained in:
ulleo
2025-05-12 17:34:54 +08:00
committed by dataeaseShu
parent cae6a120f6
commit 259e2fed31

View File

@@ -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