Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
36b59a65
提交
36b59a65
authored
15 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
New system property h2.nullConcatIsNull
上级
63cab718
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
32 行增加
和
2 行删除
+32
-2
SysProperties.java
h2/src/main/org/h2/constant/SysProperties.java
+31
-2
Mode.java
h2/src/main/org/h2/engine/Mode.java
+1
-0
没有找到文件。
h2/src/main/org/h2/constant/SysProperties.java
浏览文件 @
36b59a65
...
...
@@ -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
)
{
...
...
This diff is collapsed.
Click to expand it.
h2/src/main/org/h2/engine/Mode.java
浏览文件 @
36b59a65
...
...
@@ -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"
);
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论