提交 1b618f60 authored 作者: ebocher's avatar ebocher

Big format ;-)

上级 b3525da0
......@@ -53,11 +53,10 @@ public class LinkSchema {
stat.execute("CREATE SCHEMA IF NOT EXISTS " +
StringUtils.quoteIdentifier(targetSchema));
//Workaround for PostgreSQL to avoid index names
if(url.startsWith("jdbc:postgresql:")){
rs = c2.getMetaData().getTables(null, sourceSchema, null, new String[]{"TABLE","LINKED TABLE","VIEW","EXTERNAL"});
}
else{
rs = c2.getMetaData().getTables(null, sourceSchema, null,null);
if (url.startsWith("jdbc:postgresql:")) {
rs = c2.getMetaData().getTables(null, sourceSchema, null, new String[]{"TABLE", "LINKED TABLE", "VIEW", "EXTERNAL"});
} else {
rs = c2.getMetaData().getTables(null, sourceSchema, null, null);
}
while (rs.next()) {
String table = rs.getString("TABLE_NAME");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论