提交 837fa7b3 authored 作者: Jacek Ławrynowicz's avatar Jacek Ławrynowicz

DbSchema - revert inlining if/else

上级 3fea8ff7
...@@ -60,12 +60,20 @@ public class DbSchema { ...@@ -60,12 +60,20 @@ public class DbSchema {
this.name = name; this.name = name;
this.quotedName = contents.quoteIdentifier(name); this.quotedName = contents.quoteIdentifier(name);
this.isDefault = isDefault; this.isDefault = isDefault;
isSystem = if (name == null) {
(name == null) // firebird // firebird
|| "INFORMATION_SCHEMA".equals(name) isSystem = true;
|| (!contents.isH2() && StringUtils.toUpperEnglish(name).startsWith("INFO")) } else if ("INFORMATION_SCHEMA".equals(name)) {
|| (contents.isPostgreSQL() && StringUtils.toUpperEnglish(name).startsWith("PG_")) isSystem = true;
|| (contents.isDerby() && name.startsWith("SYS")); } else if (!contents.isH2() &&
StringUtils.toUpperEnglish(name).startsWith("INFO")) {
isSystem = true;
} else if (contents.isPostgreSQL() &&
StringUtils.toUpperEnglish(name).startsWith("PG_")) {
isSystem = true;
} else {
isSystem = contents.isDerby() && name.startsWith("SYS");
}
} }
/** /**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论