Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
927afe2d
提交
927afe2d
authored
4月 29, 2007
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
fb598f3f
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
108 行增加
和
78 行删除
+108
-78
ant-build.properties
h2/ant-build.properties
+3
-3
build.html
h2/src/docsrc/html/build.html
+1
-1
download.html
h2/src/docsrc/html/download.html
+6
-6
faq.html
h2/src/docsrc/html/faq.html
+1
-1
history.html
h2/src/docsrc/html/history.html
+3
-3
mainWeb_text_.html
h2/src/docsrc/html/mainWeb_text_.html
+6
-6
performance.html
h2/src/docsrc/html/performance.html
+5
-2
classes.html
h2/src/docsrc/javadoc/classes.html
+1
-0
Constants.java
h2/src/main/org/h2/engine/Constants.java
+3
-3
newsfeed.sql
h2/src/test/org/h2/samples/newsfeed.sql
+64
-39
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+14
-14
dictionary.txt
h2/src/tools/org/h2/tools/doc/dictionary.txt
+1
-0
没有找到文件。
h2/ant-build.properties
浏览文件 @
927afe2d
#Sun Apr 22 05:14:53 CEST 2007
#Sun Apr 29 09:21:04 CEST 2007
benchmark.drivers.dir
=
D
\:
/data/java
javac
=
javac
javac
=
javac
version.name.maven
=
1.0.20070320
benchmark.drivers.dir
=
D
\:
/data/java
version.name.maven
=
1.0.20070304
jdk
=
1.4
jdk
=
1.4
h2/src/docsrc/html/build.html
浏览文件 @
927afe2d
...
@@ -65,7 +65,7 @@ The version is currently 1.0.<year><month><day>. Example:
...
@@ -65,7 +65,7 @@ The version is currently 1.0.<year><month><day>. Example:
<
dependency
>
<
dependency
>
<
groupId
>
com.h2database
<
/groupId
>
<
groupId
>
com.h2database
<
/groupId
>
<
artifactId
>
h2
<
/artifactId
>
<
artifactId
>
h2
<
/artifactId
>
<
version
>
1.0.200
61217
<
/version
>
<
version
>
1.0.200
70304
<
/version
>
<
/dependency
>
<
/dependency
>
</pre>
</pre>
...
...
h2/src/docsrc/html/download.html
浏览文件 @
927afe2d
...
@@ -11,16 +11,16 @@ H2 Database Engine
...
@@ -11,16 +11,16 @@ H2 Database Engine
<h1>
Downloads
</h1>
<h1>
Downloads
</h1>
<h3>
Version 1.0 / 2007-04-2
0
(Current)
</h3>
<h3>
Version 1.0 / 2007-04-2
9
(Current)
</h3>
<p>
<p>
<a
href=
"http://www.h2database.com/h2-setup-2007-04-2
0.exe"
>
Windows Installer (2.7
MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-setup-2007-04-2
9.exe"
>
Windows Installer (2.9
MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-04-2
0.zip"
>
Platform-Independent Zip (3.6
MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-04-2
9.zip"
>
Platform-Independent Zip (3.8
MB)
</a><br
/>
</p>
</p>
<h3>
Version 1.0 / 2007-0
4-20
(Last Stable)
</h3>
<h3>
Version 1.0 / 2007-0
3-04
(Last Stable)
</h3>
<p>
<p>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
4-20
.exe"
>
Windows Installer (2.7 MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
3-04
.exe"
>
Windows Installer (2.7 MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-0
4-20
.zip"
>
Platform-Independent Zip (3.6 MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-0
3-04
.zip"
>
Platform-Independent Zip (3.6 MB)
</a><br
/>
</p>
</p>
<p>
<p>
...
...
h2/src/docsrc/html/faq.html
浏览文件 @
927afe2d
...
@@ -15,7 +15,7 @@ Frequently Asked Questions
...
@@ -15,7 +15,7 @@ Frequently Asked Questions
<h3>
Are there any known bugs? When is the next release?
</h3>
<h3>
Are there any known bugs? When is the next release?
</h3>
Usually, bugs get fixes as they are found. There is a release every few weeks.
Usually, bugs get fixes as they are found. There is a release every few weeks.
Here is the list of known and confirmed issues as of
Here is the list of known and confirmed issues as of
2007-0
3-20
:
2007-0
4-29
:
<ul>
<ul>
<li>
Can not build using the test cases ant with JDK 1.3 at the moment. However most things are fixed.
<li>
Can not build using the test cases ant with JDK 1.3 at the moment. However most things are fixed.
</li><li>
Some problems have been found with right outer join. Internally, it is converted to left outer join, which
</li><li>
Some problems have been found with right outer join. Internally, it is converted to left outer join, which
...
...
h2/src/docsrc/html/history.html
浏览文件 @
927afe2d
...
@@ -36,7 +36,7 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
...
@@ -36,7 +36,7 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
<h3>
Version 1.0 (Current)
</h3>
<h3>
Version 1.0 (Current)
</h3>
<h3>
Version 1.0 / 2007-04-2
0 (Build 45) TODO
</h3><ul>
<h3>
Version 1.0 / 2007-04-2
9 (Build 46)
</h3><ul>
<li>
Unnamed private in-memory database (jdbc:h2:mem:) were not 'private' as documented. Fixed.
<li>
Unnamed private in-memory database (jdbc:h2:mem:) were not 'private' as documented. Fixed.
</li><li>
Autocomplete in the Console application: now the result frame scrolls to the top when the list is updated.
</li><li>
Autocomplete in the Console application: now the result frame scrolls to the top when the list is updated.
</li><li>
GROUP BY expressions did not work correctly in subqueries. Fixed.
</li><li>
GROUP BY expressions did not work correctly in subqueries. Fixed.
...
@@ -1166,7 +1166,8 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
...
@@ -1166,7 +1166,8 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
<h3>
Priority 1
</h3>
<h3>
Priority 1
</h3>
<ul>
<ul>
<li>
More tests with MULTI_THREADED=1
<li>
RECOVER=1 should automatically recover, =2 should run the recovery tool if required
</li><li>
More tests with MULTI_THREADED=1
</li><li>
Improve performance for create table (if this is possible)
</li><li>
Improve performance for create table (if this is possible)
</li><li>
Test with Spatial DB in a box / JTS (http://docs.codehaus.org/display/GEOS/SpatialDBBox)
</li><li>
Test with Spatial DB in a box / JTS (http://docs.codehaus.org/display/GEOS/SpatialDBBox)
</li><li>
Document how to use H2 with PHP (generic database API)
</li><li>
Document how to use H2 with PHP (generic database API)
...
@@ -1183,7 +1184,6 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
...
@@ -1183,7 +1184,6 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
</li><li>
Migrate database tool (also from other database engines)
</li><li>
Migrate database tool (also from other database engines)
</li><li>
Shutdown compact
</li><li>
Shutdown compact
</li><li>
Optimization of distinct with index: select distinct name from test
</li><li>
Optimization of distinct with index: select distinct name from test
</li><li>
RECOVER=1 automatically if a problem opening
</li><li>
Forum: email notification doesn't work? test or disable or document
</li><li>
Forum: email notification doesn't work? test or disable or document
</li><li>
Document server mode, embedded mode, web app mode, dual mode (server+embedded)
</li><li>
Document server mode, embedded mode, web app mode, dual mode (server+embedded)
</li><li>
Stop the server: close all open databases first
</li><li>
Stop the server: close all open databases first
...
...
h2/src/docsrc/html/mainWeb_text_.html
浏览文件 @
927afe2d
...
@@ -30,17 +30,17 @@ Welcome to H2, the free SQL database. The main feature of H2 are:
...
@@ -30,17 +30,17 @@ Welcome to H2, the free 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 / 2007-04-2
0
:
Version 1.0 / 2007-04-2
9
:
</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-2007-04-2
0
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-setup-2007-04-2
9
.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-2007-04-2
0.exe"
>
Windows Installer (2.7
MB)
</a>
<a
href=
"http://www.h2database.com/h2-setup-2007-04-2
9.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-2007-04-2
0
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-2007-04-2
9
.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-2007-04-2
0.zip"
>
Platform-Independent Zip (3.6
MB)
</a>
<a
href=
"http://www.h2database.com/h2-2007-04-2
9.zip"
>
Platform-Independent Zip (3.8
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>
...
@@ -52,7 +52,7 @@ Welcome to H2, the free SQL database. The main feature of H2 are:
...
@@ -52,7 +52,7 @@ Welcome to H2, the free SQL database. The main feature of H2 are:
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<h3>
Support
</h3>
<h3>
Support
</h3>
<p>
<p>
<a
href=
"http://
www.h2database.com/ipowerb"
target=
"_top"
>
Forums: Help and Open
Discussion
</a><br
/><br
/>
<a
href=
"http://
groups.google.com/group/h2-database"
target=
"_top"
>
Google Group: Help and
Discussion
</a><br
/><br
/>
Or send an e-mail to:
<br
/>
Or send an e-mail to:
<br
/>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
<!--
<!--
...
...
h2/src/docsrc/html/performance.html
浏览文件 @
927afe2d
...
@@ -22,7 +22,8 @@ Performance
...
@@ -22,7 +22,8 @@ Performance
<h2>
Performance Comparison
</h2>
<h2>
Performance Comparison
</h2>
In most cases H2 is a lot faster than all other
In most cases H2 is a lot faster than all other
(open source and not open source) database engines:
(open source and not open source) database engines.
Please note this is mostly a single connection benchmark run on one computer.
<h3>
Embedded
</h3>
<h3>
Embedded
</h3>
<table
border=
"1"
class=
"bar"
>
<table
border=
"1"
class=
"bar"
>
...
@@ -131,12 +132,14 @@ SQLite was not tested because the JDBC driver doesn't support transactions.
...
@@ -131,12 +132,14 @@ SQLite was not tested because the JDBC driver doesn't support transactions.
<h3>
About this Benchmark
</h3>
<h3>
About this Benchmark
</h3>
<h4>
Number of Connections
</h4>
<h4>
Number of Connections
</h4>
This is a single-connection benchmark.
This is mostly a single-connection benchmark.
BenchB uses multiple connections, the other tests one connection.
<h4>
Real-World Tests
</h4>
<h4>
Real-World Tests
</h4>
Good benchmarks emulate real-world use cases. This benchmark includes 3 test cases:
Good benchmarks emulate real-world use cases. This benchmark includes 3 test cases:
A simple test case with one table and many small updates / deletes.
A simple test case with one table and many small updates / deletes.
BenchA is similar to the TPC-A test, but single connection / single threaded (see also: www.tpc.org).
BenchA is similar to the TPC-A test, but single connection / single threaded (see also: www.tpc.org).
BenchB is similar to the TPC-B test, using multiple connections (one thread per connection).
BenchC is similar to the TPC-C test, but single connection / single threaded.
BenchC is similar to the TPC-C test, but single connection / single threaded.
<h4>
Comparing Embedded with Server Databases
</h4>
<h4>
Comparing Embedded with Server Databases
</h4>
...
...
h2/src/docsrc/javadoc/classes.html
浏览文件 @
927afe2d
...
@@ -49,6 +49,7 @@ Package org.h2.tools<br />
...
@@ -49,6 +49,7 @@ Package org.h2.tools<br />
<a
href=
"org/h2/tools/MultiDimension.html"
target=
"javadoc"
>
MultiDimension
</a><br
/>
<a
href=
"org/h2/tools/MultiDimension.html"
target=
"javadoc"
>
MultiDimension
</a><br
/>
<a
href=
"org/h2/tools/Script.html"
target=
"javadoc"
>
Script
</a><br
/>
<a
href=
"org/h2/tools/Script.html"
target=
"javadoc"
>
Script
</a><br
/>
<a
href=
"org/h2/tools/Recover.html"
target=
"javadoc"
>
Recover
</a><br
/>
<a
href=
"org/h2/tools/Recover.html"
target=
"javadoc"
>
Recover
</a><br
/>
<a
href=
"org/h2/tools/Restore.html"
target=
"javadoc"
>
Restore
</a><br
/>
<a
href=
"org/h2/tools/RunScript.html"
target=
"javadoc"
>
RunScript
</a><br
/>
<a
href=
"org/h2/tools/RunScript.html"
target=
"javadoc"
>
RunScript
</a><br
/>
<a
href=
"org/h2/tools/Server.html"
target=
"javadoc"
>
Server
</a><br
/>
<a
href=
"org/h2/tools/Server.html"
target=
"javadoc"
>
Server
</a><br
/>
<a
href=
"org/h2/tools/SimpleResultSet.html"
target=
"javadoc"
>
SimpleResultSet
</a><br
/>
<a
href=
"org/h2/tools/SimpleResultSet.html"
target=
"javadoc"
>
SimpleResultSet
</a><br
/>
...
...
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
927afe2d
...
@@ -49,7 +49,7 @@ package org.h2.engine;
...
@@ -49,7 +49,7 @@ package org.h2.engine;
* - Switch off auto-build
* - Switch off auto-build
* - ant all
* - ant all
* - Make sure odbc files are the
* - Make sure odbc files are the
* -
Make sure the pdf file is there
* -
Copy the pdf file to h2/docs
* - Make sure the build files are removed
* - Make sure the build files are removed
* - ant zip
* - ant zip
* - Windows installer (nsis)
* - Windows installer (nsis)
...
@@ -66,8 +66,8 @@ package org.h2.engine;
...
@@ -66,8 +66,8 @@ package org.h2.engine;
*/
*/
public
class
Constants
{
public
class
Constants
{
public
static
final
int
BUILD_ID
=
4
5
;
public
static
final
int
BUILD_ID
=
4
6
;
private
static
final
String
BUILD
=
"2007-0
3-20
"
;
private
static
final
String
BUILD
=
"2007-0
4-29
"
;
public
static
final
int
VERSION_MAJOR
=
1
;
public
static
final
int
VERSION_MAJOR
=
1
;
public
static
final
int
VERSION_MINOR
=
0
;
public
static
final
int
VERSION_MINOR
=
0
;
...
...
h2/src/test/org/h2/samples/newsfeed.sql
浏览文件 @
927afe2d
...
@@ -10,6 +10,70 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
...
@@ -10,6 +10,70 @@ 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
(
23
,
'New version available: 1.0 / 2007-04-29'
,
'2007-04-29 12:00:00'
,
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
<br />
<b>Changes and new functionality:</b>
<ul>
<li>New function TABLE to define ad-hoc (temporary) tables in a query.
This also solves problems with variable-size IN(...) queries:
instead of SELECT * FROM TEST WHERE ID IN(?, ?, ...) you can now write:
SELECT * FROM TABLE(ID INT=?) X, TEST WHERE X.ID=TEST.ID
In this case, the index is used.
</li><li>New data type ARRAY. Actually it was there before, but is now documented
and better tested (however it must still be considered experimental).
The java.sql.Array implementation is incomplete, but setObject(1, new Object[]{...})
and getObject(..) can be used. New functions ARRAY_GET and ARRAY_LENGTH.
</li><li>Autocomplete in the Console application: now the result frame scrolls to the top when the list is updated.
</li><li>SimpleResultSet now has some basic data type conversion features.
</li><li>The BACKUP command is better tested and documented.
This means hot backup (online backup) is now possible.
</li><li>The old
''
Backup
''
tool is now called
''
Script
''
(as the SQL statement).
</li><li>There are new
''
Backup
''
and
''
Restore
''
tools that work with database files directly.
</li><li>The new function LINK_SCHEMA simplifies linking all tables of a schema.
</li><li>SCRIPT DROP now also drops aliases (Java functions) if they exist.
</li><li>For encrypted databases, the trace option can no longer be enabled manually by creating a file.
</li><li>For linked tables, NULL in the unique key is now supported.
</li><li>For read-only databases, temp files are now created in the default temp directory instead
of the database directory.
</li><li>CSVWRITE now returns the number of rows written.
</li><li>The Portuguese (Europe) translation is available. Thanks a lot to Antonio Casqueiro!
</li><li>The error message for invalid views has been improved (the root cause is included in the message now).
</li><li>SQLException.getCause of the now works for JDK 1.4 and higher.
</li>
</ul>
<b>Bugfixes:</b>
<ul>
<li>Unnamed private in-memory database (jdbc:h2:mem:) were not
''
private
''
as documented. Fixed.
</li><li>GROUP BY expressions did not work correctly in subqueries. Fixed.
</li><li>When using JDK 1.5 or later, and switching on h2.lobFilesInDirectories,
the performance for creating LOBs was bad. This has been fixed, however
creating lots of LOBs it is still faster when the setting is switched off.
</li><li>A problem with multiple unnamed dynamic tables (FROM (SELECT...)) has been fixed.
</li><li>Appending
''
Z
''
to a timestamp did not have an effect. Now it is interpreted as +00:00 (GMT).
</li><li>The complete syntax for referential and check constraints is now supported
when written as part of the column definition, behind PRIMARY KEY.
</li><li>CASE WHEN ... returned the wrong result when the condition evaluated to NULL.
</li><li>Sending CLOB data was slow in some systems when using the server version. Fixed.
</li><li>The data type of NULLIF was NULL if the first expression was a column. Now the data type is set correctly.
</li><li>Indexes (and other related objects) for local temporary tables where not dropped
when the session was closed. Fixed.
</li><li>ALTER TABLE did not work for tables with computed columns.
</li><li>If the index file was deleted, an error was logged in the .trace.db file. This is no longer done.
</li><li>IN(SELECT ...) was not working correctly if the subquery returned a NULL value. Fixed.
</li><li>DROP ALL OBJECTS did not drop constants.
</li><li>DROP ALL OBJECTS dropped the role PUBLIC, which was wrong. Fixed.
</li><li>CASE was parsed as a function if the expression was in (). Fixed.
</li><li>When ORDER BY was used together with DISTINCT, it was required to type the column
name exactly in the select list and the order list exactly in the same way.
This is not required any longer.
</li>
</ul>
For future plans, see the new
''
Roadmap
''
page on the web site.
</ul>
'
);
INSERT
INTO
ITEM
VALUES
(
22
,
INSERT
INTO
ITEM
VALUES
(
22
,
'New version available: 1.0 / 2007-03-04'
,
'2007-03-04 12:00:00'
,
'New version available: 1.0 / 2007-03-04'
,
'2007-03-04 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>.
...
@@ -546,45 +610,6 @@ The plans for the next release are:
...
@@ -546,45 +610,6 @@ The plans for the next release are:
</li></ul>
</li></ul>
'
);
'
);
INSERT
INTO
ITEM
VALUES
(
5
,
'New version available: 0.9 Beta / 2006-07-29'
,
'2006-07-30 12:00:00'
,
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
<br />
<b>Changes and new functionality:</b>
<ul>
<li>ParameterMetaData is now implemented
</li><li>Experimental auto-complete functionality in the H2 Console.
Does not yet work for all cases.
Press [Ctrl]+[Space] to activate, and [Esc] to deactivate it.
</li><li>1.0/3.0 is now 0.33333... and not 0.3 as before.
The scale of a DECIMAL division is adjusted automatically (up to current scale + 25).
</li><li>
''
SELECT * FROM TEST
''
can now be written as
''
FROM TEST SELECT *
''
</li><li>New parameter schemaName in Trigger.init.
</li><li>New method DatabaseEventListener.init to pass the database URL.
</li><li> Opening a database that was not closed previously is now faster
(specially if using a database URL of the form jdbc:h2:test;LOG=2)
</li><li>Improved performance for Statement.getGeneratedKeys
</li></ul>
<b>Bugfixes:</b>
<ul>
<li>SCRIPT: The system generated indexes are not any more included in the script file.
Also, the drop statements for generated sequences are not included in the script any longer.
</li><li>Bugfix: IN(NULL) didn
''
t return NULL in every case. Fixed.
</li><li>Bugfix: DATEDIFF didn
''
t work correctly for hour, minute and second if one of the dates was before 1970.
</li><li>SELECT EXCEPT (or MINUS) did not work for some cases. Fixed.
</li><li>DATEDIFF now returns a BIGINT and not an INT
</li><li>DATEADD didn
''
t work for milliseconds.
</li><li>Could not connect to a database that was closing at the same time.
</li><li>C-style block comments /* */ are not parsed correctly when they contain * or /
</li></ul>
For details see also the history. The plans for the next release are:
<ul>
<li>Bugfixes, write more tests, more bugfixes, more tests.
</li><li>Proposal for changed license.
</li><li>For other plans, see the new
''
Roadmap
''
part on the web site.
</li></ul>
'
);
SELECT
'newsfeed-rss.xml'
FILE
,
SELECT
'newsfeed-rss.xml'
FILE
,
XMLSTARTDOC
()
||
XMLSTARTDOC
()
||
XMLNODE
(
'rss'
,
XMLATTR
(
'version'
,
'2.0'
),
XMLNODE
(
'rss'
,
XMLATTR
(
'version'
,
'2.0'
),
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
927afe2d
...
@@ -10,8 +10,6 @@ import java.util.Properties;
...
@@ -10,8 +10,6 @@ import java.util.Properties;
import
org.h2.server.TcpServer
;
import
org.h2.server.TcpServer
;
import
org.h2.test.jdbc.*
;
import
org.h2.test.jdbc.*
;
import
org.h2.test.jdbc.xa.TestXA
;
import
org.h2.test.jdbc.xa.TestXA
;
import
org.h2.test.cases.TestBlobDir
;
import
org.h2.test.cases.TestCalendar
;
import
org.h2.test.db.*
;
import
org.h2.test.db.*
;
import
org.h2.test.server.TestNestedLoop
;
import
org.h2.test.server.TestNestedLoop
;
import
org.h2.test.synth.TestBtreeIndex
;
import
org.h2.test.synth.TestBtreeIndex
;
...
@@ -88,8 +86,8 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
...
@@ -88,8 +86,8 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
public
static
void
main
(
String
[]
args
)
throws
Exception
{
public
static
void
main
(
String
[]
args
)
throws
Exception
{
long
time
=
System
.
currentTimeMillis
();
long
time
=
System
.
currentTimeMillis
();
TestAll
test
=
new
TestAll
();
TestAll
test
=
new
TestAll
();
test
.
printSystem
();
test
.
printSystem
();
/*
/*
how to make -baseDir work for H2 Console?
how to make -baseDir work for H2 Console?
*/
*/
...
@@ -98,6 +96,13 @@ how to make -baseDir work for H2 Console?
...
@@ -98,6 +96,13 @@ how to make -baseDir work for H2 Console?
Pavel Ganelin
Pavel Ganelin
Integrate patches www.dullesopen.com/software/h2-database-03-04-07-mod.src.zip
Integrate patches www.dullesopen.com/software/h2-database-03-04-07-mod.src.zip
*/
*/
/*
Fix Quickstart
h2.linkedTableUpdates to send update statements instead of delete-insert pairs
Test Eclipse DTP 1.5 (HSQLDB / H2 connection bug fixed)
Automate power off tests
*/
/*
/*
drop all objects;
drop all objects;
...
@@ -105,14 +110,16 @@ create table parent(id int primary key, parent int);
...
@@ -105,14 +110,16 @@ create table parent(id int primary key, parent int);
insert into parent values(1, null), (2, 1), (3, 1);
insert into parent values(1, null), (2, 1), (3, 1);
with test_view(id, parent) as
with test_view(id, parent) as
select id, parent from parent where
parent is null
select id, parent from parent where
id = ?
union all
union all
select parent.id, parent.parent from test_view, parent
select parent.id, parent.parent from test_view, parent
where parent.parent = test_view.id
where parent.parent = test_view.id
select * from test_view;
select * from test_view {1: 1};
drop view test_view;
with test_view(id, parent) as
with test_view(id, parent) as
select id, parent from parent where id =
2
select id, parent from parent where id =
1
union all
union all
select parent.id, parent.parent from test_view, parent
select parent.id, parent.parent from test_view, parent
where parent.parent = test_view.id
where parent.parent = test_view.id
...
@@ -120,13 +127,6 @@ select * from test_view;
...
@@ -120,13 +127,6 @@ select * from test_view;
drop view test_view;
drop view test_view;
@LOOP 10 with test_view(id, parent) as
select id, parent from parent where id = ?
union all
select parent.id, parent.parent from test_view, parent
where parent.parent = test_view.id
select * from test_view;
drop table parent;
drop table parent;
*/
*/
...
...
h2/src/tools/org/h2/tools/doc/dictionary.txt
浏览文件 @
927afe2d
...
@@ -458,6 +458,7 @@ wanted thoughts europeu astonished acceptable blobtable retrieval wasn demonstra
...
@@ -458,6 +458,7 @@ wanted thoughts europeu astonished acceptable blobtable retrieval wasn demonstra
incidentally brutal carefully pervasive testlob mydatetime antonio casqueiro sybase fourth
incidentally brutal carefully pervasive testlob mydatetime antonio casqueiro sybase fourth
pad microsystems dullesopen rpad spot lpad ganelin sssz testabc pst dumping lots
pad microsystems dullesopen rpad spot lpad ganelin sssz testabc pst dumping lots
chdh biz inventec
chdh biz inventec
enclosing mostly dtp scrolls cars splitting replay incomplete automate
### evaluatable > evaluable
### evaluatable > evaluable
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论