提交 60caa8cf authored 作者: Thomas Mueller's avatar Thomas Mueller

Java 6

上级 a28409bc
...@@ -8,7 +8,6 @@ package org.h2.engine; ...@@ -8,7 +8,6 @@ package org.h2.engine;
import java.io.IOException; import java.io.IOException;
import java.net.Socket; import java.net.Socket;
import java.sql.Connection;
import java.util.ArrayList; import java.util.ArrayList;
import org.h2.api.DatabaseEventListener; import org.h2.api.DatabaseEventListener;
import org.h2.api.JavaObjectSerializer; import org.h2.api.JavaObjectSerializer;
...@@ -585,8 +584,7 @@ public class SessionRemote extends SessionWithState implements DataHandler { ...@@ -585,8 +584,7 @@ public class SessionRemote extends SessionWithState implements DataHandler {
JdbcSQLException s = new JdbcSQLException(message, sql, sqlstate, errorCode, null, stackTrace); JdbcSQLException s = new JdbcSQLException(message, sql, sqlstate, errorCode, null, stackTrace);
if (errorCode == ErrorCode.CONNECTION_BROKEN_1) { if (errorCode == ErrorCode.CONNECTION_BROKEN_1) {
// allow re-connect // allow re-connect
IOException e = new IOException(s.toString()); IOException e = new IOException(s.toString(), s);
e.initCause(s);
throw e; throw e;
} }
throw DbException.convert(s); throw DbException.convert(s);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论