提交 bcf000e4 authored 作者: Thomas Mueller's avatar Thomas Mueller

H2 Console: auto-complete did not work with multi-line statements.

上级 dbe5beed
...@@ -291,7 +291,7 @@ public class WebApp { ...@@ -291,7 +291,7 @@ public class WebApp {
String space = ""; String space = "";
if (sql.length() > 0) { if (sql.length() > 0) {
char last = sql.charAt(sql.length() - 1); char last = sql.charAt(sql.length() - 1);
if (!Character.isSpaceChar(last) && (last != '.' && last >= ' ' && last != '\'' && last != '"')) { if (!Character.isWhitespace(last) && (last != '.' && last >= ' ' && last != '\'' && last != '"')) {
space = " "; space = " ";
} }
} }
...@@ -1337,7 +1337,7 @@ public class WebApp { ...@@ -1337,7 +1337,7 @@ public class WebApp {
time = System.currentTimeMillis() - time; time = System.currentTimeMillis() - time;
buff.append(getResultSet(sql, rs, metadata, list, edit, time, allowEdit)); buff.append(getResultSet(sql, rs, metadata, list, edit, time, allowEdit));
// SQLWarning warning = stat.getWarnings(); // SQLWarning warning = stat.getWarnings();
// if(warning != null) { // if (warning != null) {
// buff.append("<br />Warning:<br />"). // buff.append("<br />Warning:<br />").
// append(getStackTrace(id, warning)); // append(getStackTrace(id, warning));
// } // }
......
...@@ -240,7 +240,7 @@ public class WebServer implements Service { ...@@ -240,7 +240,7 @@ public class WebServer implements Service {
String newId; String newId;
do { do {
newId = generateSessionId(); newId = generateSessionId();
} while(sessions.get(newId) != null); } while (sessions.get(newId) != null);
WebSession session = new WebSession(this); WebSession session = new WebSession(this);
session.lastAccess = System.currentTimeMillis(); session.lastAccess = System.currentTimeMillis();
session.put("sessionId", newId); session.put("sessionId", newId);
...@@ -298,7 +298,7 @@ public class WebServer implements Service { ...@@ -298,7 +298,7 @@ public class WebServer implements Service {
trace = true; trace = true;
} }
} }
// if(driverList != null) { // if (driverList != null) {
// try { // try {
// String[] drivers = // String[] drivers =
// StringUtils.arraySplit(driverList, ',', false); // StringUtils.arraySplit(driverList, ',', false);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论