Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
fb564c82
提交
fb564c82
authored
10月 06, 2009
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
If a database in the old format exists, it is now used.
上级
59ed4567
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
1190 行增加
和
1165 行删除
+1190
-1165
changelog.html
h2/src/docsrc/html/changelog.html
+11
-4
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+386
-383
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+386
-383
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+384
-383
Database.java
h2/src/main/org/h2/engine/Database.java
+23
-9
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+0
-3
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
fb564c82
...
...
@@ -18,12 +18,19 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
New system property h2.pageStoreTrim to disable shrinking the database size when closing
<ul><li>
If a database in the old format exists, it is now used.
The system property is used for new databases, or if databases exist
in both formats. In any case, the flag in the URL overrides this logic.
</li><li>
Page store: large values in indexed columns could corrupt the index.
</li><li>
The page store did not work when using Retrotranslator (because the Retrotranslator doesn't
support Integer.reverse and Long.reverse).
</li><li>
New system property h2.pageStoreTrim to disable shrinking the database size when closing
(disabled by default, meaning by default the database is trimmed).
</li></ul>
<h2>
Version 1.2.120 (2009-09-26)
</h2>
<ul><li>
This is a beta version.
</li><li>
Large updates could throw an ArrayIndexOutOfBoundsException in RowList.writeRow.
</li><li>
In version 1.2, the following system properties are now enabled by default:
h2.pageStore, h2.nullConcatIsNull, h2.optimizeInList. The default value for
h2.defaultMaxLengthInplaceLob is now 4096 (it was 1024 with version 1.1).
...
...
@@ -89,7 +96,7 @@ Change Log
This is no longer required.
</li><li>
Better support GaeVFS (Google App Engine Virtual File System).
</li><li>
JaQu: the plan is to support natural (pure Java / Scala) conditions such as
(id == 1
&
&
name.equals("Test")). A proof of concept decompiler is now included (it doesn't work yet).
(id == 1
&
amp;&
name.equals("Test")). A proof of concept decompiler is now included (it doesn't work yet).
</li><li>
Various bugfixes and improvements in the page store mechanism (still experimental).
</li><li>
PreparedStatement.setObject now converts a java.lang.Character to a string.
</li><li>
H2 Console: PierPaolo Ucchino has completed the Italian translation. Thanks a lot!
...
...
@@ -431,7 +438,7 @@ Change Log
</li><li>
H2 Console: Cmd+Enter executes the current statement, Alt+Space for autocomplete.
</li><li>
JaQu: the maximum length of a column can now be defined using maxLength.
For an example, see Product.java (maxLength(category, 255)).
</li><li>
R
&
\#305;
dvan A
&\
#287;
ar has completed the Turkish translation of the H2 Console. Thanks a lot!
</li><li>
R
&
#305;
dvan A
&
#287;
ar has completed the Turkish translation of the H2 Console. Thanks a lot!
</li></ul>
<h2>
Version 1.1.104 (2008-11-28)
</h2>
...
...
@@ -625,7 +632,7 @@ Change Log
is required before those features can be used together.
</li><li>
The data type JAVA_OBJECT could not be used in updatable result sets.
</li><li>
The system property h2.optimizeInJoin did not work correctly.
</li><li>
Conditions such as ID=? AND ID
>
? were slow.
</li><li>
Conditions such as ID=? AND ID
<
? were slow.
</li></ul>
<h2>
Version 1.0.78 (2008-08-28)
</h2>
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
fb564c82
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
fb564c82
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
fb564c82
差异被折叠。
点击展开。
h2/src/main/org/h2/engine/Database.java
浏览文件 @
fb564c82
...
...
@@ -164,7 +164,7 @@ public class Database implements DataHandler {
private
HashMap
<
TableLinkConnection
,
TableLinkConnection
>
linkConnections
;
private
TempFileDeleter
tempFileDeleter
=
TempFileDeleter
.
getInstance
();
private
PageStore
pageStore
;
private
boolean
usePageStore
;
private
boolean
usePageStore
Set
,
usePageStore
;
private
Properties
reconnectLastLock
;
private
volatile
long
reconnectCheckNext
;
...
...
@@ -182,6 +182,7 @@ public class Database implements DataHandler {
this
.
accessModeLog
=
ci
.
getProperty
(
"ACCESS_MODE_LOG"
,
"rw"
).
toLowerCase
();
this
.
accessModeData
=
ci
.
getProperty
(
"ACCESS_MODE_DATA"
,
"rw"
).
toLowerCase
();
this
.
autoServerMode
=
ci
.
getProperty
(
"AUTO_SERVER"
,
false
);
this
.
usePageStoreSet
=
ci
.
getProperty
(
"PAGE_STORE"
)
!=
null
;
this
.
usePageStore
=
ci
.
getProperty
(
"PAGE_STORE"
,
SysProperties
.
getPageStore
());
this
.
cacheSize
=
ci
.
getProperty
(
"CACHE_SIZE"
,
SysProperties
.
CACHE_SIZE_DEFAULT
);
if
(
"r"
.
equals
(
accessModeData
))
{
...
...
@@ -547,22 +548,35 @@ public class Database implements DataHandler {
private
synchronized
void
open
(
int
traceLevelFile
,
int
traceLevelSystemOut
)
throws
SQLException
{
if
(
persistent
)
{
String
pageFileName
=
databaseName
+
Constants
.
SUFFIX_PAGE_FILE
;
boolean
exists
=
FileUtils
.
exists
(
pageFileName
);
if
(
exists
)
{
usePageStore
=
true
;
boolean
existsPage
=
FileUtils
.
exists
(
pageFileName
);
String
dataFileName
=
databaseName
+
Constants
.
SUFFIX_DATA_FILE
;
boolean
existsData
=
FileUtils
.
exists
(
dataFileName
);
if
(!
usePageStoreSet
)
{
// if the URL flag is not set
if
(
existsData
&&
!
existsPage
)
{
// only an old database exists
usePageStore
=
false
;
}
else
if
(
existsPage
&&
!
existsData
)
{
// only an new database exists
usePageStore
=
true
;
}
else
{
// for new databases, or if both exists:
// use the system property
usePageStore
=
SysProperties
.
getPageStore
();
}
}
if
(
usePageStore
)
{
if
(
exists
&&
FileUtils
.
isReadOnly
(
pageFileName
))
{
readOnly
=
true
;
if
(
existsPage
&&
FileUtils
.
isReadOnly
(
pageFileName
))
{
// if it is already read-only because ACCESS_MODE_DATA=r
readOnly
=
readOnly
|
FileUtils
.
isReadOnly
(
pageFileName
);
}
}
else
{
String
dataFileName
=
databaseName
+
Constants
.
SUFFIX_DATA_FILE
;
exists
=
FileUtils
.
exists
(
dataFileName
);
if
(
FileUtils
.
exists
(
dataFileName
))
{
if
(
existsData
)
{
// if it is already read-only because ACCESS_MODE_DATA=r
readOnly
=
readOnly
|
FileUtils
.
isReadOnly
(
dataFileName
);
}
}
boolean
exists
=
existsData
||
existsPage
;
if
(
readOnly
)
{
traceSystem
=
new
TraceSystem
(
null
,
false
);
}
else
{
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
fb564c82
...
...
@@ -297,9 +297,6 @@ java org.h2.test.TestAll timer
/*
disable translation in download
<span class="notranslate"></span>
mvcc merge problem
System.setProperty("h2.optimizeInList", "true");
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论