Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
20606ab5
提交
20606ab5
authored
3月 19, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into range_table
# Conflicts: # h2/src/main/org/h2/engine/ConnectionInfo.java
上级
8f54beff
c8a861bb
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
23 行增加
和
8 行删除
+23
-8
changelog.html
h2/src/docsrc/html/changelog.html
+6
-0
ConnectionInfo.java
h2/src/main/org/h2/engine/ConnectionInfo.java
+4
-2
Constants.java
h2/src/main/org/h2/engine/Constants.java
+4
-4
DateTimeFunctions.java
h2/src/main/org/h2/util/DateTimeFunctions.java
+1
-1
DateTimeUtils.java
h2/src/main/org/h2/util/DateTimeUtils.java
+7
-0
newsfeed.sql
h2/src/test/org/h2/samples/newsfeed.sql
+1
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
20606ab5
...
...
@@ -21,6 +21,12 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul>
<li>
-
</li>
</ul>
<h2>
Version 1.4.197 (2018-03-18)
</h2>
<ul>
<li>
PR #984: Minor refactorings in Parser
</li>
<li>
Issue #933: MVStore background writer endless loop
...
...
h2/src/main/org/h2/engine/ConnectionInfo.java
浏览文件 @
20606ab5
...
...
@@ -376,8 +376,10 @@ public class ConnectionInfo implements Cloneable {
if
(
nameNormalized
==
null
)
{
if
(!
SysProperties
.
IMPLICIT_RELATIVE_PATH
)
{
if
(!
FileUtils
.
isAbsolute
(
name
))
{
if
(!
name
.
contains
(
"./"
)
&&
!
name
.
contains
(
".\\"
)
&&
!
name
.
contains
(
":/"
)
&&
!
name
.
contains
(
":\\"
))
{
if
(!
name
.
contains
(
"./"
)
&&
!
name
.
contains
(
".\\"
)
&&
!
name
.
contains
(
":/"
)
&&
!
name
.
contains
(
":\\"
))
{
// the name could start with "./", or
// it could start with a prefix such as "nio:./"
// for Windows, the path "\test" is not considered
...
...
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
20606ab5
...
...
@@ -15,22 +15,22 @@ public class Constants {
/**
* The build date is updated for each public release.
*/
public
static
final
String
BUILD_DATE
=
"201
7-06-10
"
;
public
static
final
String
BUILD_DATE
=
"201
8-03-18
"
;
/**
* The build date of the last stable release.
*/
public
static
final
String
BUILD_DATE_STABLE
=
"2017-0
4-23
"
;
public
static
final
String
BUILD_DATE_STABLE
=
"2017-0
6-10
"
;
/**
* The build id is incremented for each public release.
*/
public
static
final
int
BUILD_ID
=
19
6
;
public
static
final
int
BUILD_ID
=
19
7
;
/**
* The build id of the last stable release.
*/
public
static
final
int
BUILD_ID_STABLE
=
19
5
;
public
static
final
int
BUILD_ID_STABLE
=
19
6
;
/**
* Whether this is a snapshot version.
...
...
h2/src/main/org/h2/util/DateTimeFunctions.java
浏览文件 @
20606ab5
...
...
@@ -385,7 +385,7 @@ public final class DateTimeFunctions {
* Truncate the given date to the unit specified
*
* @param datePartStr the time unit (e.g. 'DAY', 'HOUR', etc.)
* @param value the date
* @param value
Date
the date
* @return date truncated to 'day'
*/
public
static
Value
truncateDate
(
String
datePartStr
,
Value
valueDate
)
{
...
...
h2/src/main/org/h2/util/DateTimeUtils.java
浏览文件 @
20606ab5
...
...
@@ -729,6 +729,13 @@ public class DateTimeUtils {
return
getDayOfWeekFromAbsolute
(
absoluteDayFromDateValue
(
dateValue
),
firstDayOfWeek
);
}
/**
* Get the day of the week from the absolute day value.
*
* @param absoluteValue the absolute day
* @param firstDayOfWeek the first day of the week
* @return the day of week
*/
public
static
int
getDayOfWeekFromAbsolute
(
long
absoluteValue
,
int
firstDayOfWeek
)
{
return
absoluteValue
>=
0
?
(
int
)
((
absoluteValue
-
firstDayOfWeek
+
11
)
%
7
)
+
1
:
(
int
)
((
absoluteValue
-
firstDayOfWeek
-
2
)
%
7
)
+
7
;
...
...
h2/src/test/org/h2/samples/newsfeed.sql
浏览文件 @
20606ab5
...
...
@@ -7,6 +7,7 @@
CREATE
TABLE
VERSION
(
ID
INT
PRIMARY
KEY
,
VERSION
VARCHAR
,
CREATED
VARCHAR
);
INSERT
INTO
VERSION
VALUES
(
147
,
'1.4.198'
,
'2018-03-18'
),
(
146
,
'1.4.197'
,
'2017-06-10'
),
(
145
,
'1.4.195'
,
'2017-04-23'
),
(
144
,
'1.4.194'
,
'2017-03-10'
),
...
...
@@ -23,7 +24,6 @@ INSERT INTO VERSION VALUES
(
133
,
'1.4.183'
,
'2014-12-13'
),
(
132
,
'1.4.182'
,
'2014-10-17'
),
(
131
,
'1.4.181'
,
'2014-08-06'
),
(
130
,
'1.4.180'
,
'2014-07-13'
),
;
CREATE
TABLE
CHANNEL
(
TITLE
VARCHAR
,
LINK
VARCHAR
,
DESC
VARCHAR
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论