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

The JDBC client did not detect that it was not talking to an H2 server.

上级 475ed92e
......@@ -102,7 +102,7 @@ public abstract class Prepared {
public boolean needRecompile() throws SQLException {
Database db = session.getDatabase();
if (db == null) {
throw Message.getSQLException(ErrorCode.CONNECTION_BROKEN);
throw Message.getSQLException(ErrorCode.CONNECTION_BROKEN_1, "database closed");
}
// TODO parser: currently, compiling every create/drop/... twice!
// because needRecompile return true even for the first execution
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论