提交 698487c3 authored 作者: Thomas Mueller's avatar Thomas Mueller

Feature flags for version 1.4

上级 cf5f5318
......@@ -100,7 +100,7 @@ public class Constants {
/**
* The minor version of this database.
*/
public static final int VERSION_MINOR = 3;
public static final int VERSION_MINOR = 4;
/**
* The lock mode that means no locking is used at all.
......
......@@ -235,7 +235,7 @@ public class Database implements DataHandler {
this.mode = Mode.getInstance(modeName);
}
this.multiVersion =
ci.getProperty("MVCC", Constants.VERSION_MINOR >= 4);
ci.getProperty("MVCC", dbSettings.mvStore);
this.logMode =
ci.getProperty("LOG", PageStore.LOG_MODE_SYNC);
this.javaObjectSerializerName =
......@@ -2245,7 +2245,7 @@ public class Database implements DataHandler {
public void setMultiThreaded(boolean multiThreaded) {
if (multiThreaded && this.multiThreaded != multiThreaded) {
if (multiVersion) {
if (multiVersion && mvStore == null) {
// currently the combination of MVCC and MULTI_THREADED is not
// supported
throw DbException.get(
......
......@@ -318,7 +318,7 @@ public class SysProperties {
* Limited support for the old-style Oracle outer join with "(+)".
*/
public static final boolean OLD_STYLE_OUTER_JOIN =
Utils.getProperty("h2.oldStyleOuterJoin",
Utils.getProperty("h2.oldStyleOuterJoin",
Constants.VERSION_MINOR >= 4 ? false : true);
/**
......@@ -401,7 +401,7 @@ public class SysProperties {
* taken into account.
*/
public static final boolean STORE_LOCAL_TIME =
Utils.getProperty("h2.storeLocalTime",
Utils.getProperty("h2.storeLocalTime",
Constants.VERSION_MINOR >= 4 ? true : false);
/**
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论