修复I69QE7, Oracle迁移到其他库列注释丢失问题

This commit is contained in:
inrgihc
2023-02-04 21:01:21 +08:00
parent 7aa7086142
commit fced41429d

View File

@@ -44,6 +44,8 @@ public final class DataSourceUtils {
ds.setConnectionTestQuery("SELECT 'Hello' from DUAL");
// https://blog.csdn.net/qq_20960159/article/details/78593936
System.getProperties().setProperty("oracle.jdbc.J2EE13Compliant", "true");
// Oracle在通过jdbc连接的时候需要添加一个参数来设置是否获取注释
ds.addDataSourceProperty("remarksReporting", "true");
} else if (properties.getDriverClassName().contains("db2")) {
ds.setConnectionTestQuery("SELECT 1 FROM SYSIBM.SYSDUMMY1");
} else {