提交 8f38fa77 authored 作者: Thomas Mueller's avatar Thomas Mueller

Make it easier to test; bugfix for Firebird

上级 12c060fc
...@@ -663,14 +663,14 @@ public class WebApp { ...@@ -663,14 +663,14 @@ public class WebApp {
DbContents contents = session.getContents(); DbContents contents = session.getContents();
boolean isH2 = false; boolean isH2 = false;
try { try {
contents.readContents(session.getMetaData()); String url = (String) session.get("url");
session.loadBnf();
Connection conn = session.getConnection(); Connection conn = session.getConnection();
DatabaseMetaData meta = session.getMetaData(); contents.readContents(url, conn);
session.loadBnf();
isH2 = contents.isH2(); isH2 = contents.isH2();
StringBuilder buff = new StringBuilder(); StringBuilder buff = new StringBuilder();
buff.append("setNode(0, 0, 0, 'database', '" + PageParser.escapeJavaScript((String) session.get("url")) buff.append("setNode(0, 0, 0, 'database', '" + PageParser.escapeJavaScript(url)
+ "', null);\n"); + "', null);\n");
int treeIndex = 1; int treeIndex = 1;
...@@ -735,6 +735,7 @@ public class WebApp { ...@@ -735,6 +735,7 @@ public class WebApp {
JdbcUtils.closeSilently(stat); JdbcUtils.closeSilently(stat);
} }
} }
DatabaseMetaData meta = session.getMetaData();
String version = meta.getDatabaseProductName() + " " + meta.getDatabaseProductVersion(); String version = meta.getDatabaseProductName() + " " + meta.getDatabaseProductVersion();
buff.append("setNode(" + treeIndex + ", 0, 0, 'info', '" + PageParser.escapeJavaScript(version) buff.append("setNode(" + treeIndex + ", 0, 0, 'info', '" + PageParser.escapeJavaScript(version)
+ "', null);\n"); + "', null);\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论