提交 36b59a65 authored 作者: Thomas Mueller's avatar Thomas Mueller

New system property h2.nullConcatIsNull

上级 63cab718
......@@ -363,6 +363,19 @@ public class SysProperties {
*/
public static final boolean NIO_CLEANER_HACK = getBooleanSetting("h2.nioCleanerHack", true);
/**
* System property <code>h2.nullConcatIsNull</code>.<br />
* Concatenation with NULL results in NULL. Usually, NULL is treated as an
* empty string if only one of the operands is NULL, and NULL is only
* returned if both operands are NULL.
* <p>
* In version 1.1, it is disabled by default.
* </p><p>
* In version 1.2, it is enabled by default.
* </p>
*/
public static final boolean NULL_CONCAT_IS_NULL = getBooleanSetting("h2.nullConcatIsNull", Constants.VERSION >= 1.2);
/**
* System property <code>h2.objectCache</code> (default: true).<br />
* Cache commonly used objects (integers, strings).
......@@ -446,8 +459,13 @@ public class SysProperties {
* Optimize IN(...) and IN(SELECT ...) comparisons. This includes
* optimization for SELECT, DELETE, and UPDATE. Overrides h2.optimizeIn and
* h2.optimizeInJoin if enabled.
* <p>
* In version 1.1, it is disabled by default.
* </p><p>
* In version 1.2, it is enabled by default.
* </p>
*/
public static final boolean OPTIMIZE_IN_LIST = getBooleanSetting("h2.optimizeInList", false);
public static final boolean OPTIMIZE_IN_LIST = getBooleanSetting("h2.optimizeInList", Constants.VERSION >= 1.2);
/**
* System property <code>h2.optimizeInJoin</code> (default: false).<br />
......@@ -497,6 +515,17 @@ public class SysProperties {
*/
public static final boolean OVERFLOW_EXCEPTIONS = getBooleanSetting("h2.overflowExceptions", true);
/**
* System property <code>h2.pageStore</code>.<br />
* Use the 'page store' database file format for new databases.
* <p>
* In version 1.1, it is disabled by default.
* </p><p>
* In version 1.2, it is enabled by default.
* </p>
*/
public static final boolean PAGE_STORE = getBooleanSetting(H2_PAGE_STORE, Constants.VERSION >= 1.2);
/**
* System property <code>h2.pgClientEncoding</code> (default: UTF-8).<br />
* Default client encoding for PG server. It is used if the client does not
......@@ -752,7 +781,7 @@ public class SysProperties {
* INTERNAL
*/
public static boolean getPageStore() {
return getBooleanSetting(H2_PAGE_STORE, false);
return getBooleanSetting(H2_PAGE_STORE, PAGE_STORE);
}
private static Character getEscapeChar(String s) {
......
......@@ -107,6 +107,7 @@ public class Mode {
static {
Mode mode = new Mode(REGULAR);
mode.aliasColumnName = SysProperties.ALIAS_COLUMN_NAME;
mode.nullConcatIsNull = SysProperties.NULL_CONCAT_IS_NULL;
add(mode);
mode = new Mode("DB2");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论