Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
434f9449
提交
434f9449
authored
3月 29, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
0789a984
全部展开
显示空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
1178 行增加
和
2320 行删除
+1178
-2320
ant-build.properties
h2/ant-build.properties
+2
-2
advanced.html
h2/src/docsrc/html/advanced.html
+1
-1
build.html
h2/src/docsrc/html/build.html
+1
-1
changelog.html
h2/src/docsrc/html/changelog.html
+20
-12
download.html
h2/src/docsrc/html/download.html
+6
-6
mainWeb.html
h2/src/docsrc/html/mainWeb.html
+5
-5
roadmap.html
h2/src/docsrc/html/roadmap.html
+2
-0
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+348
-330
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+348
-1524
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+335
-329
Constants.java
h2/src/main/org/h2/engine/Constants.java
+2
-2
Session.java
h2/src/main/org/h2/engine/Session.java
+1
-1
tools.jsp
h2/src/main/org/h2/server/web/res/tools.jsp
+75
-75
Tool.java
h2/src/main/org/h2/util/Tool.java
+0
-1
newsfeed.sql
h2/src/test/org/h2/samples/newsfeed.sql
+32
-0
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+0
-31
没有找到文件。
h2/ant-build.properties
浏览文件 @
434f9449
#
Thu Mar 20 17:07:30
CET 2008
#
Sat Mar 29 10:53:56
CET 2008
benchmark.drivers.dir
=
C
\:
/data/java
benchmark.drivers.dir
=
C
\:
/data/java
javac
=
javac
javac
=
javac
jdk
=
1.4
jdk
=
1.4
path.lucene.jar
=
C
\:
/data/classpath/lucene-core-2.2.0.jar
path.lucene.jar
=
C
\:
/data/classpath/lucene-core-2.2.0.jar
path.servlet.jar
=
C
\:
/data/classpath/servlet-api.jar
path.servlet.jar
=
C
\:
/data/classpath/servlet-api.jar
version.name.maven
=
1.0.6
8
version.name.maven
=
1.0.6
9
h2/src/docsrc/html/advanced.html
浏览文件 @
434f9449
...
@@ -491,7 +491,7 @@ The database can be used from Microsoft .NET even without using Java, by using I
...
@@ -491,7 +491,7 @@ The database can be used from Microsoft .NET even without using Java, by using I
<code>
ikvmc -target:winexe h2.jar
</code>
.
<code>
ikvmc -target:winexe h2.jar
</code>
.
You may ignore the warnings.
You may ignore the warnings.
</li><li>
Create a .dll file using (change the version accordingly):
</li><li>
Create a .dll file using (change the version accordingly):
<code>
ikvmc.exe -target:library -version:1.0.6
8
.0 h2.jar
</code>
<code>
ikvmc.exe -target:library -version:1.0.6
9
.0 h2.jar
</code>
</li></ul>
</li></ul>
<p>
<p>
If you want your C# application use H2, you need to add the h2.dll and the
If you want your C# application use H2, you need to add the h2.dll and the
...
...
h2/src/docsrc/html/build.html
浏览文件 @
434f9449
...
@@ -78,7 +78,7 @@ Example:
...
@@ -78,7 +78,7 @@ Example:
<
dependency
>
<
dependency
>
<
groupId
>
com.h2database
<
/groupId
>
<
groupId
>
com.h2database
<
/groupId
>
<
artifactId
>
h2
<
/artifactId
>
<
artifactId
>
h2
<
/artifactId
>
<
version
>
1.0.6
8
<
/version
>
<
version
>
1.0.6
9
<
/version
>
<
/dependency
>
<
/dependency
>
</pre>
</pre>
<p>
<p>
...
...
h2/src/docsrc/html/changelog.html
浏览文件 @
434f9449
...
@@ -14,24 +14,28 @@ Change Log
...
@@ -14,24 +14,28 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
.
</li></ul>
<h2>
Version 1.0.69 (2008-03-29)
</h2>
<ul>
<ul>
<li>
When a log file switch occured in the middle of a sequence flush
<li>
Most command line tools can now be called from within the H2 Console.
(sequences are only flushed every 32 values by default), the sequence
</li><li>
A new Shell tools is now included (org.h2.tools.Shell) to query a
was lost. Fixed.
</li><li>
When a log file switch occured just after a truncate table or drop table
statement, the database could not be started normally (RECOVER=1
was required). Fixed.
</li><li>
There was a bug in the recovery code that would stop recovery sometimes when
there are multiple log files to recover.
</li><li>
A new Shell tools is now included (org.h2.tools.Shell) query a
database from the command line.
database from the command line.
</li><li>
The command line options in the tools have changed:
instead of '-log true' now '-trace' is used.
Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed:
now the 'true' is no longer needed.
The old behavior is still supported.
</li><li>
New system property h2.sortNullsHigh to invert the default sorting behavior
for NULL. The default didn't change.
</li><li>
Performance was very slow when using LOG=2 and deleting or
</li><li>
Performance was very slow when using LOG=2 and deleting or
updating all rows of a table in a loop. Fixed.
updating all rows of a table in a loop. Fixed.
</li><li>
ALTER TABLE or CREATE TABLE now support parameters for the password field.
</li><li>
ALTER TABLE or CREATE TABLE now support parameters for the password field.
</li><li>
The linear hash has been removed. It was always slower than the b-tree index,
</li><li>
The linear hash has been removed. It was always slower than the b-tree index,
and there were some bugs that would be hard to fix.
and there were some bugs that would be hard to fix.
</li><li>
TRACE_LEVEL_ settings are no longer persistent. This was a problem
</li><li>
TRACE_LEVEL_ settings are no longer persistent. This was a problem
when database initialization code caused a lot of
logging
.
when database initialization code caused a lot of
trace output
.
</li><li>
Fulltext search (native implementation): The words table is no longer
</li><li>
Fulltext search (native implementation): The words table is no longer
an in-memory table because this caused memory problems in some cases.
an in-memory table because this caused memory problems in some cases.
</li><li>
It was possible to create a role with the name as an existing user
</li><li>
It was possible to create a role with the name as an existing user
...
@@ -40,8 +44,12 @@ Change Log
...
@@ -40,8 +44,12 @@ Change Log
</li><li>
For years below 1, the YEAR method didn't return the correct value,
</li><li>
For years below 1, the YEAR method didn't return the correct value,
and the conversion from date and timestamp to varchar was incorrect.
and the conversion from date and timestamp to varchar was incorrect.
</li><li>
CSVWRITE caused a NullPointerException when not specifying a nullString.
</li><li>
CSVWRITE caused a NullPointerException when not specifying a nullString.
</li><li>
New system property h2.sortNullsHigh to invert the default sorting behavior
</li><li>
When a log file switch occured just after a truncate table or drop table
for NULL. The default didn't change.
statement, the database could not be started normally (RECOVER=1
was required). Fixed.
</li><li>
When a log file switch occured in the middle of a sequence flush
(sequences are only flushed every 32 values by default), the sequence
value was lost. Fixed.
</li><li>
Altering a sequence didn't unlock the system table
</li><li>
Altering a sequence didn't unlock the system table
when autocommit switched off.
when autocommit switched off.
</li></ul>
</li></ul>
...
...
h2/src/docsrc/html/download.html
浏览文件 @
434f9449
...
@@ -15,16 +15,16 @@ H2 Database Engine
...
@@ -15,16 +15,16 @@ H2 Database Engine
<h1>
Downloads
</h1>
<h1>
Downloads
</h1>
<h3>
Version 1.0.6
7 (2008-03-15
, Current)
</h3>
<h3>
Version 1.0.6
9 (2008-03-29
, Current)
</h3>
<p>
<p>
<a
href=
"http://www.h2database.com/h2-setup-2008-03-
15
.exe"
>
Windows Installer
</a><br
/>
<a
href=
"http://www.h2database.com/h2-setup-2008-03-
29
.exe"
>
Windows Installer
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2008-03-
15
.zip"
>
Platform-Independent Zip
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2008-03-
29
.zip"
>
Platform-Independent Zip
</a><br
/>
</p>
</p>
<h3>
Version 1.0.6
6 (2008-02-22
, Last Stable)
</h3>
<h3>
Version 1.0.6
8 (2008-03-15
, Last Stable)
</h3>
<p>
<p>
<a
href=
"http://www.h2database.com/h2-setup-2008-0
2-22
.exe"
>
Windows Installer
</a><br
/>
<a
href=
"http://www.h2database.com/h2-setup-2008-0
3-15
.exe"
>
Windows Installer
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2008-0
2-22
.zip"
>
Platform-Independent Zip
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2008-0
3-15
.zip"
>
Platform-Independent Zip
</a><br
/>
</p>
</p>
<h3>
Download Mirror and Older Versions
</h3>
<h3>
Download Mirror and Older Versions
</h3>
...
...
h2/src/docsrc/html/mainWeb.html
浏览文件 @
434f9449
...
@@ -32,17 +32,17 @@ Welcome to H2, the Java SQL database. The main feature of H2 are:
...
@@ -32,17 +32,17 @@ Welcome to H2, the Java SQL database. The main feature of H2 are:
<table
style=
"border: 0px; margin: 5px; background-color: #eee;"
>
<table
style=
"border: 0px; margin: 5px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<h3>
Download
</h3>
<h3>
Download
</h3>
Version 1.0.6
8 (2008-03-15
):
Version 1.0.6
9 (2008-03-29
):
</td></tr>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-2008-03-
15
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-setup-2008-03-
29
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-2008-03-
15
.exe"
>
Windows Installer (2.9 MB)
</a>
<a
href=
"http://www.h2database.com/h2-setup-2008-03-
29
.exe"
>
Windows Installer (2.9 MB)
</a>
</td></tr>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-2008-03-
15
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-2008-03-
29
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-2008-03-
15
.zip"
>
All platforms (zip, 4.1 MB)
</a>
<a
href=
"http://www.h2database.com/h2-2008-03-
29
.zip"
>
All platforms (zip, 4.1 MB)
</a>
</td></tr>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<a
href=
"download.html"
>
All Downloads
</a>
<a
href=
"download.html"
>
All Downloads
</a>
...
...
h2/src/docsrc/html/roadmap.html
浏览文件 @
434f9449
...
@@ -398,6 +398,8 @@ Roadmap
...
@@ -398,6 +398,8 @@ Roadmap
</li><li>
Fluent API for tools: Server.createTcpServer().setPort(9081).setPassword(password).start();
</li><li>
Fluent API for tools: Server.createTcpServer().setPort(9081).setPassword(password).start();
</li><li>
MySQL compatibility: SHOW TABLES, DESCRIBE TEST (then remove from Shell)
</li><li>
MySQL compatibility: SHOW TABLES, DESCRIBE TEST (then remove from Shell)
</li><li>
Use a default delay of 1 second before closing a database.
</li><li>
Use a default delay of 1 second before closing a database.
</li><li>
Maven: upload source code and javadocs as well
</li><li>
Write (log) to system table before adding to internal data structures
</li></ul>
</li></ul>
<h2>
Not Planned
</h2>
<h2>
Not Planned
</h2>
...
...
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
434f9449
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
434f9449
This source diff could not be displayed because it is too large. You can
view the blob
instead.
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
434f9449
差异被折叠。
点击展开。
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
434f9449
...
@@ -76,8 +76,8 @@ package org.h2.engine;
...
@@ -76,8 +76,8 @@ package org.h2.engine;
*/
*/
public
class
Constants
{
public
class
Constants
{
public
static
final
int
BUILD_ID
=
6
8
;
public
static
final
int
BUILD_ID
=
6
9
;
private
static
final
String
BUILD
=
"2008-03-
15
"
;
private
static
final
String
BUILD
=
"2008-03-
29
"
;
public
static
final
boolean
ALLOW_EMPTY_BTREE_PAGES
=
true
;
public
static
final
boolean
ALLOW_EMPTY_BTREE_PAGES
=
true
;
public
static
final
int
ALLOW_LITERALS_NONE
=
0
;
public
static
final
int
ALLOW_LITERALS_NONE
=
0
;
...
...
h2/src/main/org/h2/engine/Session.java
浏览文件 @
434f9449
...
@@ -691,7 +691,7 @@ public class Session implements SessionInterface {
...
@@ -691,7 +691,7 @@ public class Session implements SessionInterface {
/**
/**
* Remove a procedure from this session.
* Remove a procedure from this session.
*
*
* @param
procedure
the procedure to remove
* @param
name the name of
the procedure to remove
*/
*/
public
void
removeProcedure
(
String
name
)
{
public
void
removeProcedure
(
String
name
)
{
if
(
procedures
!=
null
)
{
if
(
procedures
!=
null
)
{
...
...
h2/src/main/org/h2/server/web/res/tools.jsp
浏览文件 @
434f9449
h2/src/main/org/h2/util/Tool.java
浏览文件 @
434f9449
...
@@ -29,7 +29,6 @@ public abstract class Tool {
...
@@ -29,7 +29,6 @@ public abstract class Tool {
/**
/**
* Run the tool with the given output stream and arguments.
* Run the tool with the given output stream and arguments.
*
*
* @param out the print stream, for example System.out
* @param args the argument list
* @param args the argument list
*/
*/
public
abstract
void
run
(
String
[]
args
)
throws
SQLException
;
public
abstract
void
run
(
String
[]
args
)
throws
SQLException
;
...
...
h2/src/test/org/h2/samples/newsfeed.sql
浏览文件 @
434f9449
...
@@ -10,6 +10,38 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
...
@@ -10,6 +10,38 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
CREATE
TABLE
ITEM
(
ID
INT
PRIMARY
KEY
,
TITLE
VARCHAR
,
ISSUED
TIMESTAMP
,
DESC
VARCHAR
);
CREATE
TABLE
ITEM
(
ID
INT
PRIMARY
KEY
,
TITLE
VARCHAR
,
ISSUED
TIMESTAMP
,
DESC
VARCHAR
);
INSERT
INTO
ITEM
VALUES
(
39
,
'New version available: 1.0.69 (2008-03-29)'
,
'2008-03-29 12:00:00'
,
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
(You may have to click
''
Refresh
''
).
<br />
<b>Changes and new functionality:</b>
<ul><li>Most command line tools can now be called within the H2 Console.
</li><li>A new Shell tools is now included to query a database from the command line.
</li><li>Some command line options have changed (the old behavior is still supported).
</li><li>New system property h2.sortNullsHigh to invert the default NULL sorting.
</li><li>ALTER TABLE or CREATE TABLE now support parameters.
</li><li>TRACE_LEVEL_ settings are no longer persistent.
</li></ul>
<b>Bugfixes:</b>
<ul><li>When a log file switch occured in the middle of certain operations,
the database could not be started normally (RECOVER=1 was required).
</li><li>Altering a sequence didn
''
t unlock the system table with autocommit disabled.
</li><li>CSVWRITE caused a NullPointerException when not specifying a nullString.
</li><li>Years below 1 were not supported correctly.
</li><li>The recovery tool didn
''
t work correctly for tables without rows.
</li><li>It is no longer possible to create a role with the name of an existing user.
</li><li>The memory usage of native fulltext search has been improved.
</li><li>Performance was very slow when using LOG=2.
</li><li>The linear hash has been removed because it was slow and sometimes incorrect.
</li></ul>
For details, see the
''
Change Log
''
at
http://www.h2database.com/html/changelog.html
<br />
For future plans, see the
''
Roadmap
''
page at
http://www.h2database.com/html/roadmap.html
'
);
INSERT
INTO
ITEM
VALUES
(
38
,
INSERT
INTO
ITEM
VALUES
(
38
,
'New version available: 1.0.68 (2008-03-15)'
,
'2008-03-15 12:00:00'
,
'New version available: 1.0.68 (2008-03-15)'
,
'2008-03-15 12:00:00'
,
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
434f9449
...
@@ -159,35 +159,10 @@ java org.h2.test.TestAll timer
...
@@ -159,35 +159,10 @@ java org.h2.test.TestAll timer
/*
/*
server problem : only log error the last iteration
output.zip
function table called twice: document:
Yes. The first call is to get the list of columns, and the second call is to get the data.
maven: upload source code and javadocs as well
Browser problems:
Browser problems:
The H2 Console doesn't work.
Try with another browser.
There has been a reported incompatibility with the
There has been a reported incompatibility with the
RealPlayer Browser Record Plugin 1.0 when using Firefox 2.0 and Vista
RealPlayer Browser Record Plugin 1.0 when using Firefox 2.0 and Vista
web server: support trace
remove 'log true' everywhere
tools
cd ....
add a shell script
add %DRIVERS% if required
how to quote quotes in command line (windows, linux)
simplify command line options (no 'true' settings)
better command line help
should write (log) to system table before adding to internal data structures
//new TestCrashAPI().init(test).testCase(2046453618);
--------------
--------------
scheduler: what if invoke takes more than...
scheduler: what if invoke takes more than...
...
@@ -225,15 +200,9 @@ Can sometimes not delete log file? need test case
...
@@ -225,15 +200,9 @@ Can sometimes not delete log file? need test case
Add where required // TODO: change in version 1.1
Add where required // TODO: change in version 1.1
History:
History:
The command line options in the tools have changed:
instead of '-log true' now '-trace' is used.
Also, '-ifExists', '-tcpSSL' and '-tcpAllowOthers' and so on have changed:
now the 'true' is no longer needed.
The old behavior is still supported.
Roadmap:
Roadmap:
*/
*/
if
(
args
.
length
>
0
)
{
if
(
args
.
length
>
0
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论