提交 35cbaa1f authored 作者: Thomas Mueller's avatar Thomas Mueller

Issue 484: H2 Console tool

上级 2184b359
......@@ -55,7 +55,8 @@ Change Log
</li><li>Fix corruption resulting from a mix of the "WRITE_DELAY=0" option and "SELECT DISTINCT" queries
</li><li>Fix the combination of updating a table which contains an LOB, and reading from the LOB at the same time.
Previously it would throw an exception, now it works.
</li><li>Issue 484: Console workaround for H2, patch from "mgcodeact"/"cumer d"
</li><li>Issue 484: In the H2 Console tool, all schemas starting with "INFO" where hidden.
Now they are hidden only if the database is not H2. Patch from "mgcodeact"/"cumer d"
</li><li>MySQL compatibiltity, support the "AUTO_INCREMENT=3" part of the CREATE TABLE statement.
</li></ul>
......
......@@ -64,14 +64,16 @@ public class DbSchema {
this.name = name;
this.quotedName = contents.quoteIdentifier(name);
this.isDefault = isDefault;
if (contents.isH2) {
isSystem = StringUtils.toUpperEnglish(name).startsWith("INFORMATION_SCHEMA");
} else if (contents.isPostgreSQL) {
isSystem = StringUtils.toUpperEnglish(name).startsWith("PG_");
} else if (contents.isDerby) {
isSystem = name.startsWith("SYS");
if (name.equals("INFORMATION_SCHEMA")) {
isSystem = true;
} else if (!contents.isH2 && StringUtils.toUpperEnglish(name).startsWith("INFO")) {
isSystem = true;
} else if (contents.isPostgreSQL && StringUtils.toUpperEnglish(name).startsWith("PG_")) {
isSystem = true;
} else if (contents.isDerby && name.startsWith("SYS")) {
isSystem = true;
} else {
isSystem = StringUtils.toUpperEnglish(name).startsWith("INFO");
isSystem = false;
}
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论