Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
bcab5835
提交
bcab5835
authored
8月 05, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add SysProperties.PREVIEW
上级
bb83267f
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
48 行增加
和
19 行删除
+48
-19
SysProperties.java
h2/src/main/org/h2/engine/SysProperties.java
+48
-19
没有找到文件。
h2/src/main/org/h2/engine/SysProperties.java
浏览文件 @
bcab5835
...
...
@@ -71,6 +71,16 @@ public class SysProperties {
public
static
final
String
USER_HOME
=
Utils
.
getProperty
(
"user.home"
,
""
);
/**
* System property {@code h2.preview} (default: false).
* <p>
* Controls default values of other properties. If {@code true} default
* values of other properties are changed to planned defaults for the 1.5.x
* versions of H2. Some other functionality may be also enabled or disabled.
* </p>
*/
public
static
final
boolean
PREVIEW
=
Utils
.
getProperty
(
"h2.preview"
,
false
);
/**
* System property <code>h2.allowedClasses</code> (default: *).<br />
* Comma separated list of class names or prefixes.
...
...
@@ -325,34 +335,53 @@ public class SysProperties {
Utils
.
getProperty
(
"h2.oldStyleOuterJoin"
,
false
);
/**
* System property {@code h2.oldResultSetGetObject}, {@code true} by default.
* Return {@code Byte} and {@code Short} instead of {@code Integer} from
* {@code ResultSet#getObject(...)} for {@code TINYINT} and {@code SMALLINT}
* values.
* System property {@code h2.oldResultSetGetObject}, {@code true} by default
* unless {@code h2.preview} is enabled.
* <p>
* If {@code true} return {@code Byte} and {@code Short} from
* {@code ResultSet#getObject(int)} and {@code ResultSet#getObject(String)}
* for {@code TINYINT} and {@code SMALLINT} values.
* </p>
* <p>
* If {@code false} return {@code Integer} for them as specified in JDBC
* specification (see Mapping from JDBC Types to Java Object Types).
* </p>
*/
public
static
final
boolean
OLD_RESULT_SET_GET_OBJECT
=
Utils
.
getProperty
(
"h2.oldResultSetGetObject"
,
true
);
public
static
final
boolean
OLD_RESULT_SET_GET_OBJECT
=
Utils
.
getProperty
(
"h2.oldResultSetGetObject"
,
!
PREVIEW
);
/**
* System property {@code h2.bigDecimalIsDecimal}, {@code true} by default. If
* {@code true} map {@code BigDecimal} to {@code DECIMAL} type, if {@code false}
* map it to {@code NUMERIC} as specified in JDBC specification (see Mapping
* from Java Object Types to JDBC Types).
* System property {@code h2.bigDecimalIsDecimal}, {@code true} by default
* unless {@code h2.preview} is enabled.
* <p>
* If {@code true} map {@code BigDecimal} to {@code DECIMAL} type.
* <p>
* <p>
* If {@code false} map {@code BigDecimal} to {@code NUMERIC} as specified
* in JDBC specification (see Mapping from Java Object Types to JDBC Types).
* </p>
*/
public
static
final
boolean
BIG_DECIMAL_IS_DECIMAL
=
Utils
.
getProperty
(
"h2.bigDecimalIsDecimal"
,
true
);
public
static
final
boolean
BIG_DECIMAL_IS_DECIMAL
=
Utils
.
getProperty
(
"h2.bigDecimalIsDecimal"
,
!
PREVIEW
);
/**
* System property {@code h2.returnOffsetDateTime}, {@code false} by
* default. If {@code true}, {@link java.sql.ResultSet#getObject(int)} and
* System property {@code h2.returnOffsetDateTime}, {@code false} by default
* unless {@code h2.preview} is enabled.
* <p>
* If {@code true} {@link java.sql.ResultSet#getObject(int)} and
* {@link java.sql.ResultSet#getObject(String)} return
* {@code TIMESTAMP WITH TIME ZONE} values as
* {@code java.time.OffsetDateTime} instead of
* {@code org.h2.api.TimestampWithTimeZone}. This property has effect only
* on Java 8 / Android API 26 and later versions.
* {@code java.time.OffsetDateTime}.
* </p>
* <p>
* If {@code false} return them as {@code org.h2.api.TimestampWithTimeZone}
* instead.
* </p>
* <p>
* This property has effect only on Java 8 / Android API 26 and later
* versions. Without JSR-310 {@code org.h2.api.TimestampWithTimeZone} is
* used unconditionally.
* </p>
*/
public
static
final
boolean
RETURN_OFFSET_DATE_TIME
=
Utils
.
getProperty
(
"h2.returnOffsetDateTime"
,
false
);
public
static
final
boolean
RETURN_OFFSET_DATE_TIME
=
Utils
.
getProperty
(
"h2.returnOffsetDateTime"
,
PREVIEW
);
/**
* System property {@code h2.unlimitedTimeRange}, {@code false} by default.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论