Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
80154b50
提交
80154b50
authored
7月 12, 2007
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
37b497e2
隐藏空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
80 行增加
和
78 行删除
+80
-78
ant-build.properties
h2/ant-build.properties
+1
-1
download.html
h2/src/docsrc/html/download.html
+3
-3
faq.html
h2/src/docsrc/html/faq.html
+1
-1
history.html
h2/src/docsrc/html/history.html
+2
-2
mainWeb_text_.html
h2/src/docsrc/html/mainWeb_text_.html
+5
-5
AlterTableAlterColumn.java
h2/src/main/org/h2/command/ddl/AlterTableAlterColumn.java
+14
-14
Constants.java
h2/src/main/org/h2/engine/Constants.java
+1
-1
Comparison.java
h2/src/main/org/h2/expression/Comparison.java
+1
-1
ConditionAndOr.java
h2/src/main/org/h2/expression/ConditionAndOr.java
+2
-2
ConditionIn.java
h2/src/main/org/h2/expression/ConditionIn.java
+1
-1
TcpServerThread.java
h2/src/main/org/h2/server/TcpServerThread.java
+1
-1
newsfeed.sql
h2/src/test/org/h2/samples/newsfeed.sql
+41
-41
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+2
-0
TestPattern.java
h2/src/test/org/h2/test/unit/TestPattern.java
+5
-5
没有找到文件。
h2/ant-build.properties
浏览文件 @
80154b50
#Sat Jun 16 21:45:09 CEST 2007
javac
=
javac
benchmark.drivers.dir
=
D
\:
/data/java
version.name.maven
=
1.0.20070
617
version.name.maven
=
1.0.20070
712
path.servlet.jar
=
C
\:
/data/classpath/servlet-api.jar
jdk
=
1.4
h2/src/docsrc/html/download.html
浏览文件 @
80154b50
...
...
@@ -11,10 +11,10 @@ H2 Database Engine
<h1>
Downloads
</h1>
<h3>
Version 1.0 / 2007-0
6-17
(Current)
</h3>
<h3>
Version 1.0 / 2007-0
7-12
(Current)
</h3>
<p>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
6-17
.exe"
>
Windows Installer (2.9 MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-0
6-17
.zip"
>
Platform-Independent Zip (3.8 MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
7-12
.exe"
>
Windows Installer (2.9 MB)
</a><br
/>
<a
href=
"http://www.h2database.com/h2-2007-0
7-12
.zip"
>
Platform-Independent Zip (3.8 MB)
</a><br
/>
</p>
<h3>
Version 1.0 / 2007-03-04 (Last Stable)
</h3>
...
...
h2/src/docsrc/html/faq.html
浏览文件 @
80154b50
...
...
@@ -36,7 +36,7 @@ Frequently Asked Questions
<p>
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
2007-0
6-17
:
2007-0
7-12
:
</p>
<ul>
<li>
Can not build using the test cases ant with JDK 1.3 at the moment. However most things are fixed.
...
...
h2/src/docsrc/html/history.html
浏览文件 @
80154b50
...
...
@@ -36,9 +36,9 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
<h3>
Version 1.0 (Current)
</h3>
<h3>
Version 1.0 /
TODO (Build TODO
)
</h3><ul>
<h3>
Version 1.0 /
2007-07-12 (Build 55
)
</h3><ul>
<li>
Support for the system property baseDir. This works for embedded databases as well. The setting is supported
by the H2 Console using -Dh2.baseDir or -baseDir
by the H2 Console using -Dh2.baseDir or -baseDir
</li><li>
LIKE ESCAPE did not work correctly if the pattern was % or _, followed by an escape character, followed by %. Fixed.
</li><li>
PostgreSQL compatibility: SET SEARCH_PATH, SERIAL, CURRENT_USER, E'text', $1.
</li><li>
In some situations, when many tables with LOB columns were modified (ALTER TABLE), large objects were deleted. Fixed.
...
...
h2/src/docsrc/html/mainWeb_text_.html
浏览文件 @
80154b50
...
...
@@ -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;"
>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<h3>
Download
</h3>
Version 1.0 / 2007-0
6-17
:
Version 1.0 / 2007-0
7-12
:
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
6-17
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
7-12
.exe"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
6-17
.exe"
>
Windows Installer (2.9 MB)
</a>
<a
href=
"http://www.h2database.com/h2-setup-2007-0
7-12
.exe"
>
Windows Installer (2.9 MB)
</a>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-2007-0
6-17
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
<a
href=
"http://www.h2database.com/h2-2007-0
7-12
.zip"
><img
border=
"1"
src=
"images/download.png"
alt=
"download"
/></a>
</td><td
style=
"vertical-align: middle; border: 0px; background-color: #eee;"
>
<a
href=
"http://www.h2database.com/h2-2007-0
6-17
.zip"
>
Platform-Independent Zip (3.8 MB)
</a>
<a
href=
"http://www.h2database.com/h2-2007-0
7-12
.zip"
>
Platform-Independent Zip (3.8 MB)
</a>
</td></tr>
<tr><td
style=
"border: 0px; background-color: #eee;"
colspan=
"2"
>
<a
href=
"download.html"
>
All Downloads
</a>
...
...
h2/src/main/org/h2/command/ddl/AlterTableAlterColumn.java
浏览文件 @
80154b50
...
...
@@ -259,20 +259,20 @@ public class AlterTableAlterColumn extends SchemaCommand {
}
*/
StringBuffer
buff
=
new
StringBuffer
();
buff
.
append
(
"INSERT INTO "
);
buff
.
append
(
newTable
.
getSQL
());
buff
.
append
(
"("
);
buff
.
append
(
columnList
);
buff
.
append
(
") SELECT "
);
if
(
columnList
.
length
()
==
0
)
{
// special case insert into test select * from test
buff
.
append
(
"*"
);
}
else
{
buff
.
append
(
columnList
);
}
buff
.
append
(
" FROM "
);
buff
.
append
(
table
.
getSQL
());
String
sql
=
buff
.
toString
();
buff
.
append
(
"INSERT INTO "
);
buff
.
append
(
newTable
.
getSQL
());
buff
.
append
(
"("
);
buff
.
append
(
columnList
);
buff
.
append
(
") SELECT "
);
if
(
columnList
.
length
()
==
0
)
{
// special case insert into test select * from test
buff
.
append
(
"*"
);
}
else
{
buff
.
append
(
columnList
);
}
buff
.
append
(
" FROM "
);
buff
.
append
(
table
.
getSQL
());
String
sql
=
buff
.
toString
();
newTable
.
setCheckForeignKeyConstraints
(
false
);
try
{
execute
(
sql
);
...
...
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
80154b50
...
...
@@ -69,7 +69,7 @@ import org.h2.message.TraceSystem;
*/
public
class
Constants
{
public
static
final
int
BUILD_ID
=
5
4
;
public
static
final
int
BUILD_ID
=
5
5
;
private
static
final
String
BUILD
=
"2007-07-12"
;
public
static
final
int
VERSION_MAJOR
=
1
;
public
static
final
int
VERSION_MINOR
=
0
;
...
...
h2/src/main/org/h2/expression/Comparison.java
浏览文件 @
80154b50
...
...
@@ -21,7 +21,7 @@ import org.h2.value.ValueNull;
* @author Thomas
*/
public
class
Comparison
extends
Condition
{
public
static
final
int
EQUAL
=
0
,
BIGGER_EQUAL
=
1
,
BIGGER
=
2
,
SMALLER_EQUAL
=
3
,
SMALLER
=
4
,
NOT_EQUAL
=
5
,
IS_NULL
=
6
,
IS_NOT_NULL
=
7
;
...
...
h2/src/main/org/h2/expression/ConditionAndOr.java
浏览文件 @
80154b50
...
...
@@ -19,9 +19,9 @@ import org.h2.value.ValueNull;
* @author Thomas
*/
public
class
ConditionAndOr
extends
Condition
{
// TODO optimization: we could extend (ID=1 AND ID=B) to (ID=1 AND ID=B AND B=1)
public
static
final
int
AND
=
0
,
OR
=
1
;
private
final
int
andOrType
;
...
...
h2/src/main/org/h2/expression/ConditionIn.java
浏览文件 @
80154b50
...
...
@@ -23,7 +23,7 @@ import org.h2.value.ValueNull;
*/
public
class
ConditionIn
extends
Condition
{
private
final
Database
database
;
private
Expression
left
;
private
final
ObjectArray
values
;
...
...
h2/src/main/org/h2/server/TcpServerThread.java
浏览文件 @
80154b50
...
...
@@ -59,7 +59,7 @@ public class TcpServerThread implements Runnable {
String
originalURL
=
transfer
.
readString
();
String
baseDir
=
server
.
getBaseDir
();
if
(
baseDir
==
null
)
{
baseDir
=
Constants
.
BASE_DIR
;
baseDir
=
Constants
.
BASE_DIR
;
}
ConnectionInfo
ci
=
new
ConnectionInfo
(
db
);
if
(
baseDir
!=
null
)
{
...
...
h2/src/test/org/h2/samples/newsfeed.sql
浏览文件 @
80154b50
...
...
@@ -10,6 +10,47 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
CREATE
TABLE
ITEM
(
ID
INT
PRIMARY
KEY
,
TITLE
VARCHAR
,
ISSUED
TIMESTAMP
,
DESC
VARCHAR
);
INSERT
INTO
ITEM
VALUES
(
25
,
'New version available: 1.0 / 2007-07-12'
,
'2007-07-12 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>The H2 Console can run as a standalone web application.
</li><li>The default database name is now jdbc:h2:~/test.
</li><li>The new view implementation is now enabled by default.
</li><li>The Polish translation is available. Thanks a lot to Tomek!
</li><li>Support for the system property baseDir.
</li><li>Improved PostgreSQL compatibility.
</li><li>New column ID in INFORMATION_SCHEMA tables.
</li><li>PreparedStatement.getMetaData is now implemented.
</li><li>New setting h2.allowBigDecimalExtensions.
</li><li>The SQL statement SET ASSERT has been deprecated.
</li><li>The trace level for JdbcDataSourceFactory is now ERROR.
</li><li>Referential integrity violation: Two SQL states are now used.
</li><li>DatabaseEventListener.exceptionThrown is changed.
</li><li>The catalog name can now be used in queries.
</li><li>The default result set type is now FETCH_FORWARD.
</li>
</ul>
<b>Bugfixes:</b>
<ul>
</li><li>Views did not work in some cases.
</li><li>LIKE ESCAPE did not work correctly in some cases.
</li><li>In some situations, large objects were deleted.
</li><li>CREATE TABLE AS SELECT .. UNION .. did not work.
</li><li>Sometimes temp files were not deleted.
</li><li>PooledConnection.getConnection is now faster.
</li><li>Deleting databases in the root directory now works.
</li><li>Windows service: the CLASSPATH was not included.
</li><li>For READ_COMMITTED, when the multi-threaded
kernel is enabled, read locks are now acquired but released
immediately after a query.
</ul>
For future plans, see the new
''
Roadmap
''
page on the web site.
</ul>
'
);
INSERT
INTO
ITEM
VALUES
(
24
,
'New version available: 1.0 / 2007-06-17'
,
'2007-06-17 12:00:00'
,
'A new version of H2 is available for <a href="http://www.h2database.com">download</a>.
...
...
@@ -615,47 +656,6 @@ The plans for version 1.0 are:
</li></ul>
'
);
INSERT
INTO
ITEM
VALUES
(
8
,
'New proposed license'
,
'2006-08-25 12:00:00'
,
'A new proposed license is available at
<a href="http://www.h2database.com/html/proposed_license.html">h2database.com/html/proposed_license.html</a>.
This is still open for discussion at the <a href="http://www.h2database.com/ipowerb">license forum</a>.
'
);
INSERT
INTO
ITEM
VALUES
(
7
,
'New version available: 0.9 RC 1 / 2006-08-23'
,
'2006-08-23 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>Date and time constants outside the valid range (February 31 and so on) are no longer accepted.
</li><li>Improvements in the autocomplete feature. Thanks a lot to James Devenish for his very valuable feedback and testing!
</li></ul>
<b>New Functionality (but currently disabled):</b>
These features are currently disabled. They will be enabled after release 1.0.
See the history for more details.
<li>Optimization for IN(value list) and IN(subquery).
</li><li>Very large transactions are now supported.
</li><li>Arithmetic overflows in can now be detected for integer types.
</li></ul>
<b>Bugfixes:</b>
<ul>
<li>Bugfix for an outer join problem (too many rows where returned for a combined inner join / outer join).
</li><li>Local temporary tables where not included in the meta data.
</li><li>Database opening: Sometimes opening a database was very slow because indexes were re-created.
</li><li>Referential integrity: Fixed a stack overflow problem when using cascade delete.
</li><li>LIKE: If collation was set (SET COLLATION ...), it was ignored when using LIKE.
</li></ul>
For details see also the history. Release 1.0 is planned for 2006-08-28.
There will be another release candidate (RC 2) before.
The plans for the next release (RC 2) are:
<ul>
<li>Change the license to MPL.
</li><li>Write more tests, bugfixes.
</li><li>For plans after release 1.0, see the new
''
Roadmap
''
page on the web site.
</li></ul>
'
);
SELECT
'newsfeed-rss.xml'
FILE
,
XMLSTARTDOC
()
||
XMLNODE
(
'rss'
,
XMLATTR
(
'version'
,
'2.0'
),
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
80154b50
...
...
@@ -94,6 +94,8 @@ java -Xmx512m -Xrunhprof:cpu=samples,depth=8 org.h2.tools.RunScript -url jdbc:h2
/*
check trace.db/ number of files, limit to 1000 or so
storages should be an int hash map
Test with newest Hibernate
...
...
h2/src/test/org/h2/test/unit/TestPattern.java
浏览文件 @
80154b50
...
...
@@ -52,12 +52,12 @@ public class TestPattern extends TestBase {
int
len
=
(
int
)(
Math
.
random
()
*
4
);
String
s
=
"A%_\\"
;
for
(
int
i
=
0
;
i
<
len
;
i
++)
{
char
c
=
s
.
charAt
((
int
)(
Math
.
random
()*
s
.
length
()));
if
((
c
==
'_'
||
c
==
'%'
)
&&
Math
.
random
()
>
0.5
)
{
char
c
=
s
.
charAt
((
int
)(
Math
.
random
()*
s
.
length
()));
if
((
c
==
'_'
||
c
==
'%'
)
&&
Math
.
random
()
>
0.5
)
{
buff
.
append
(
'\\'
);
}
else
if
(
c
==
'\\'
)
{
}
else
if
(
c
==
'\\'
)
{
buff
.
append
(
c
);
}
}
buff
.
append
(
c
);
}
return
buff
.
toString
();
...
...
@@ -70,7 +70,7 @@ public class TestPattern extends TestBase {
char
c
=
pattern
.
charAt
(
i
);
if
(
escape
==
c
)
{
if
(
i
>=
len
)
{
error
(
"escape can't be last char"
);
error
(
"escape can't be last char"
);
}
c
=
pattern
.
charAt
(++
i
);
buff
.
append
(
'\\'
);
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论