Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
cf363b47
提交
cf363b47
authored
6月 01, 2017
作者:
StuMc
提交者:
GitHub
6月 01, 2017
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into Issue#479
上级
30d0ab60
8d00445d
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
34 行增加
和
14 行删除
+34
-14
pom.xml
h2/pom.xml
+1
-1
changelog.html
h2/src/docsrc/html/changelog.html
+4
-0
Parser.java
h2/src/main/org/h2/command/Parser.java
+14
-2
Session.java
h2/src/main/org/h2/engine/Session.java
+3
-2
IndexType.java
h2/src/main/org/h2/index/IndexType.java
+1
-0
MVTable.java
h2/src/main/org/h2/mvstore/db/MVTable.java
+0
-1
LinkSchema.java
h2/src/main/org/h2/table/LinkSchema.java
+3
-2
TestFunctions.java
h2/src/test/org/h2/test/db/TestFunctions.java
+2
-1
TestTableEngines.java
h2/src/test/org/h2/test/db/TestTableEngines.java
+2
-2
CheckJavadoc.java
h2/src/tools/org/h2/build/code/CheckJavadoc.java
+2
-2
CheckTextFiles.java
h2/src/tools/org/h2/build/code/CheckTextFiles.java
+1
-1
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-0
没有找到文件。
h2/pom.xml
浏览文件 @
cf363b47
...
...
@@ -4,7 +4,7 @@
<groupId>
com.h2database
</groupId>
<artifactId>
h2
</artifactId>
<version>
1.4.19
4
-SNAPSHOT
</version>
<version>
1.4.19
5
-SNAPSHOT
</version>
<packaging>
jar
</packaging>
<name>
H2 Database Engine
</name>
<url>
http://www.h2database.com
</url>
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
cf363b47
...
...
@@ -21,6 +21,8 @@ Change Log
<h2>
Next Version (unreleased)
</h2>
<ul>
<li>
Fix startup issue when using "CHECK" as a column name.
</li>
<li>
Issue #423: ANALYZE performed multiple times on one table during execution of the same statement.
</li>
<li>
Issue #426: Support ANALYZE TABLE statement
...
...
@@ -199,6 +201,8 @@ changed from Types.OTHER (1111) to Types.TIMESTAMP_WITH_TIMEZONE (2014)
<h2>
Version 1.4.192 Beta (2016-05-26)
</h2>
<ul>
<li>
Java 6 is no longer supported (the jar files are compiled for Java 7).
</li>
<li>
Garbage collection of unused chunks should now be faster.
</li>
<li>
Prevent people using unsupported combination of auto-increment columns and clustering mode.
...
...
h2/src/main/org/h2/command/Parser.java
浏览文件 @
cf363b47
...
...
@@ -3887,7 +3887,11 @@ public class Parser {
private
static
int
getSaveTokenType
(
String
s
,
boolean
supportOffsetFetch
)
{
switch
(
s
.
charAt
(
0
))
{
case
'C'
:
if
(
s
.
equals
(
"CURRENT_TIMESTAMP"
))
{
if
(
s
.
equals
(
"CHECK"
))
{
return
KEYWORD
;
}
if
(
s
.
equals
(
"CONSTRAINT"
))
{
return
KEYWORD
;
}
else
if
(
s
.
equals
(
"CURRENT_TIMESTAMP"
))
{
return
CURRENT_TIMESTAMP
;
}
else
if
(
s
.
equals
(
"CURRENT_TIME"
))
{
return
CURRENT_TIME
;
...
...
@@ -3907,6 +3911,8 @@ public class Parser {
return
KEYWORD
;
}
else
if
(
"FOR"
.
equals
(
s
))
{
return
KEYWORD
;
}
else
if
(
"FOREIGN"
.
equals
(
s
))
{
return
KEYWORD
;
}
else
if
(
"FULL"
.
equals
(
s
))
{
return
KEYWORD
;
}
else
if
(
supportOffsetFetch
&&
"FETCH"
.
equals
(
s
))
{
...
...
@@ -3918,7 +3924,9 @@ public class Parser {
case
'H'
:
return
getKeywordOrIdentifier
(
s
,
"HAVING"
,
KEYWORD
);
case
'I'
:
if
(
"INNER"
.
equals
(
s
))
{
if
(
"INDEX"
.
equals
(
s
))
{
return
KEYWORD
;
}
if
(
"INNER"
.
equals
(
s
))
{
return
KEYWORD
;
}
else
if
(
"INTERSECT"
.
equals
(
s
))
{
return
KEYWORD
;
...
...
@@ -3926,6 +3934,8 @@ public class Parser {
return
getKeywordOrIdentifier
(
s
,
"IS"
,
KEYWORD
);
case
'J'
:
return
getKeywordOrIdentifier
(
s
,
"JOIN"
,
KEYWORD
);
case
'K'
:
return
getKeywordOrIdentifier
(
s
,
"KEY"
,
KEYWORD
);
case
'L'
:
if
(
"LIMIT"
.
equals
(
s
))
{
return
KEYWORD
;
...
...
@@ -3936,6 +3946,8 @@ public class Parser {
case
'N'
:
if
(
"NOT"
.
equals
(
s
))
{
return
KEYWORD
;
}
else
if
(
"NOCHECK"
.
equals
(
s
))
{
return
KEYWORD
;
}
else
if
(
"NATURAL"
.
equals
(
s
))
{
return
KEYWORD
;
}
...
...
h2/src/main/org/h2/engine/Session.java
浏览文件 @
cf363b47
...
...
@@ -1696,8 +1696,9 @@ public class Session extends SessionWithState {
}
/**
* Marks a table as changed, needing re-analysis.
* @param table the table to be marked
* Mark that the given table needs to be analyzed on commit.
*
* @param table the table
*/
public
void
markTableForAnalyze
(
Table
table
)
{
if
(
tablesToAnalyze
==
null
)
{
...
...
h2/src/main/org/h2/index/IndexType.java
浏览文件 @
cf363b47
...
...
@@ -74,6 +74,7 @@ public class IndexType {
/**
* Create an affinity index.
*
* @return the index type
*/
public
static
IndexType
createAffinity
()
{
IndexType
type
=
new
IndexType
();
...
...
h2/src/main/org/h2/mvstore/db/MVTable.java
浏览文件 @
cf363b47
...
...
@@ -735,7 +735,6 @@ public class MVTable extends TableBase {
if
(
n
>
0
)
{
nextAnalyze
=
n
;
}
int
rows
=
session
.
getDatabase
().
getSettings
().
analyzeSample
/
10
;
session
.
markTableForAnalyze
(
this
);
}
...
...
h2/src/main/org/h2/table/LinkSchema.java
浏览文件 @
cf363b47
...
...
@@ -52,9 +52,10 @@ public class LinkSchema {
stat
=
conn
.
createStatement
();
stat
.
execute
(
"CREATE SCHEMA IF NOT EXISTS "
+
StringUtils
.
quoteIdentifier
(
targetSchema
));
//Workaround for PostgreSQL to avoid index names
//Workaround for PostgreSQL to avoid index names
if
(
url
.
startsWith
(
"jdbc:postgresql:"
))
{
rs
=
c2
.
getMetaData
().
getTables
(
null
,
sourceSchema
,
null
,
new
String
[]{
"TABLE"
,
"LINKED TABLE"
,
"VIEW"
,
"EXTERNAL"
});
rs
=
c2
.
getMetaData
().
getTables
(
null
,
sourceSchema
,
null
,
new
String
[]
{
"TABLE"
,
"LINKED TABLE"
,
"VIEW"
,
"EXTERNAL"
});
}
else
{
rs
=
c2
.
getMetaData
().
getTables
(
null
,
sourceSchema
,
null
,
null
);
}
...
...
h2/src/test/org/h2/test/db/TestFunctions.java
浏览文件 @
cf363b47
...
...
@@ -2018,7 +2018,8 @@ public class TestFunctions extends TestBase implements AggregateFunction {
Statement
stat
=
conn
.
createStatement
();
final
ResultSet
rs
=
stat
.
executeQuery
(
"select ROUND(-1.2), ROUND(-1.5), ROUND(-1.6), ROUND(2), ROUND(1.5), ROUND(1.8), ROUND(1.1) from dual"
);
"select ROUND(-1.2), ROUND(-1.5), ROUND(-1.6), "
+
"ROUND(2), ROUND(1.5), ROUND(1.8), ROUND(1.1) from dual"
);
rs
.
next
();
assertEquals
(-
1
,
rs
.
getInt
(
1
));
...
...
h2/src/test/org/h2/test/db/TestTableEngines.java
浏览文件 @
cf363b47
...
...
@@ -1173,8 +1173,8 @@ public class TestTableEngines extends TestBase {
@Override
public
double
getCost
(
Session
session
,
int
[]
masks
,
TableFilter
[]
filters
,
int
filter
,
SortOrder
sortOrder
,
HashSet
<
Column
>
allColumnsSet
)
{
TableFilter
[]
filters
,
int
filter
,
SortOrder
sortOrder
,
HashSet
<
Column
>
allColumnsSet
)
{
return
0
;
}
...
...
h2/src/tools/org/h2/build/code/CheckJavadoc.java
浏览文件 @
cf363b47
...
...
@@ -16,8 +16,8 @@ import java.io.RandomAccessFile;
*/
public
class
CheckJavadoc
{
private
static
final
int
MAX_COMMENT_LINE_SIZE
=
8
0
;
private
static
final
int
MAX_SOURCE_LINE_SIZE
=
1
0
0
;
private
static
final
int
MAX_COMMENT_LINE_SIZE
=
10
0
;
private
static
final
int
MAX_SOURCE_LINE_SIZE
=
1
2
0
;
private
int
errorCount
;
/**
...
...
h2/src/tools/org/h2/build/code/CheckTextFiles.java
浏览文件 @
cf363b47
...
...
@@ -17,7 +17,7 @@ import java.util.Arrays;
*/
public
class
CheckTextFiles
{
private
static
final
int
MAX_SOURCE_LINE_SIZE
=
1
0
0
;
private
static
final
int
MAX_SOURCE_LINE_SIZE
=
1
2
0
;
// must contain "+" otherwise this here counts as well
private
static
final
String
COPYRIGHT
=
"Copyright 2004-2014 "
+
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
cf363b47
...
...
@@ -735,3 +735,4 @@ optimisations roughly contractid succeeding tran fixme iters ovain orgid chosen
arbonaut exposing obscure determined turkey buildings indexhints acct
choosing optimise arte preparator katzyn bla jenkins tot artes pgserver npe
suffers closeablem mni significance vise identiy vitalus aka ilike uppercasing reentrant
aff ignite warm upstream producing sfu jit smtm affinity stashed tbl
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论