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

OPEN_NEW=TRUE

上级 8d59495d
......@@ -634,8 +634,12 @@ public class Database implements DataHandler {
private void stopServer() {
if (server != null) {
server.stop();
Server s = server;
// avoid calling stop recursively
// because stopping the server will
// try to close the database as well
server = null;
s.stop();
}
}
......
......@@ -42,7 +42,8 @@ public class Engine {
private Session openSession(ConnectionInfo ci, boolean ifExists, String cipher) throws SQLException {
String name = ci.getName();
Database database;
if (ci.isUnnamedInMemory()) {
boolean openNew = ci.removeProperty("OPEN_NEW", false);
if (openNew || ci.isUnnamedInMemory()) {
database = null;
} else {
database = (Database) databases.get(name);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论