Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
a7fbae73
提交
a7fbae73
authored
8月 16, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
19210759
全部展开
显示空白字符变更
内嵌
并排
正在显示
14 个修改的文件
包含
1290 行增加
和
1207 行删除
+1290
-1207
changelog.html
h2/src/docsrc/html/changelog.html
+7
-3
faq.html
h2/src/docsrc/html/faq.html
+3
-3
_docs_en.utf8.txt
h2/src/docsrc/text/_docs_en.utf8.txt
+410
-392
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+415
-397
_docs_en.properties
h2/src/docsrc/textbase/_docs_en.properties
+399
-393
Constants.java
h2/src/main/org/h2/engine/Constants.java
+4
-4
newsfeed.sql
h2/src/test/org/h2/samples/newsfeed.sql
+33
-2
ComplexObject.java
h2/src/test/org/h2/test/jaqu/ComplexObject.java
+1
-1
tools.sql
h2/src/test/org/h2/test/todo/tools.sql
+7
-0
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+2
-1
Condition.java
h2/src/tools/org/h2/jaqu/Condition.java
+1
-3
QueryCondition.java
h2/src/tools/org/h2/jaqu/QueryCondition.java
+6
-6
QueryJoinCondition.java
h2/src/tools/org/h2/jaqu/QueryJoinCondition.java
+1
-1
Utils.java
h2/src/tools/org/h2/jaqu/util/Utils.java
+1
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
a7fbae73
...
@@ -16,6 +16,10 @@ Change Log
...
@@ -16,6 +16,10 @@ 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.77 (2008-08-16)
</h2>
<ul><li>
JaQu is now using prepared statements and supports Date, Time, Timestamp.
<ul><li>
JaQu is now using prepared statements and supports Date, Time, Timestamp.
</li><li>
When using remote in-memory databases, large LOB objects did not work.
</li><li>
When using remote in-memory databases, large LOB objects did not work.
</li><li>
Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
</li><li>
Timestamp columns such as TIMESTAMP(6) were not compatible to other database.
...
...
h2/src/docsrc/html/faq.html
浏览文件 @
a7fbae73
h2/src/docsrc/text/_docs_en.utf8.txt
浏览文件 @
a7fbae73
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
a7fbae73
差异被折叠。
点击展开。
h2/src/docsrc/textbase/_docs_en.properties
浏览文件 @
a7fbae73
This source diff could not be displayed because it is too large. You can
view the blob
instead.
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
a7fbae73
...
@@ -80,22 +80,22 @@ public class Constants {
...
@@ -80,22 +80,22 @@ public class Constants {
/**
/**
* The build id is incremented for each public release.
* The build id is incremented for each public release.
*/
*/
public
static
final
int
BUILD_ID
=
7
6
;
public
static
final
int
BUILD_ID
=
7
7
;
/**
/**
* The build id of the previous release.
* The build id of the previous release.
*/
*/
public
static
final
int
BUILD_ID_PREVIOUS
=
7
5
;
public
static
final
int
BUILD_ID_PREVIOUS
=
7
6
;
/**
/**
* The build date is updated for each public release.
* The build date is updated for each public release.
*/
*/
public
static
final
String
BUILD_DATE
=
"2008-0
7-28
"
;
public
static
final
String
BUILD_DATE
=
"2008-0
8-16
"
;
/**
/**
* The build date is updated for each public release.
* The build date is updated for each public release.
*/
*/
public
static
final
String
BUILD_DATE_PREVIOUS
=
"2008-07-
14
"
;
public
static
final
String
BUILD_DATE_PREVIOUS
=
"2008-07-
28
"
;
/**
/**
* The TCP protocol version number 5. This protocol is used by the TCP
* The TCP protocol version number 5. This protocol is used by the TCP
...
...
h2/src/test/org/h2/samples/newsfeed.sql
浏览文件 @
a7fbae73
...
@@ -13,6 +13,37 @@ INSERT INTO CHANNEL VALUES('H2 Database Engine' ,
...
@@ -13,6 +13,37 @@ 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
(
47
,
'New version available: 1.0.77 (2008-08-16)'
,
'2008-08-16 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
>
JaQu
is
now
using
prepared
statements
and
supports
Date
,
Time
,
Timestamp
.
</
li
><
li
>
Support
a
comma
before
closing
a
list
,
as
in
:
create
table
test
(
id
int
,)
</
li
><
li
>
DB2
compatibility
:
the
DB2
fetch
-
first
-
clause
is
supported
.
</
li
><
li
>
ResultSet
.
setFetchSize
is
now
supported
.
</
li
></
ul
>
<
b
>
Bugfixes
:
</
b
>
<
ul
><
li
>
When
using
remote
in
-
memory
databases
,
large
LOB
objects
did
not
work
.
</
li
><
li
>
Timestamp
columns
such
as
TIMESTAMP
(
6
)
were
not
compatible
to
other
database
.
</
li
><
li
>
Opening
a
large
database
was
slow
if
there
was
a
problem
opening
the
previous
time
.
</
li
><
li
>
Oracle
compatibility
:
old
style
outer
join
syntax
using
(
+
)
did
work
correctly
sometimes
.
</
li
><
li
>
MySQL
compatibility
:
linked
tables
had
lower
case
column
names
on
some
systems
.
</
li
><
li
>
NOT
IN
(
SELECT
...)
was
incorrect
if
the
subquery
returns
no
rows
.
</
li
><
li
>
CREATE
TABLE
AS
SELECT
did
not
work
correctly
in
the
multi
-
version
concurrency
mode
.
</
li
><
li
>
It
has
been
reported
that
when
using
Install4j
on
some
Linux
systems
and
enabling
the
'pack200'
option
,
the
h2
.
jar
becomes
corrupted
by
the
install
process
,
causing
application
failure
.
A
workaround
is
to
add
an
empty
file
h2
.
jar
.
nopack
next
to
the
h2
.
jar
file
.
The
reason
for
this
problem
is
not
known
.
</
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
(
46
,
INSERT
INTO
ITEM
VALUES
(
46
,
'New version available: 1.0.76 (2008-07-27)'
,
'2008-07-27 12:00:00'
,
'New version available: 1.0.76 (2008-07-27)'
,
'2008-07-27 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
>
.
...
@@ -23,7 +54,7 @@ $$A new version of H2 is available for <a href="http://www.h2database.com">downl
...
@@ -23,7 +54,7 @@ $$A new version of H2 is available for <a href="http://www.h2database.com">downl
</
li
><
li
>
Changes
in
updatable
result
sets
are
now
always
visible
.
</
li
><
li
>
Changes
in
updatable
result
sets
are
now
always
visible
.
</
li
><
li
>
There
is
a
problem
with
Hibernate
when
using
Boolean
columns
,
see
</
li
><
li
>
There
is
a
problem
with
Hibernate
when
using
Boolean
columns
,
see
http
:
//
opensource
.
atlassian
.
com
/
projects
/
hibernate
/
browse
/
HHH
-
3401
http
:
//
opensource
.
atlassian
.
com
/
projects
/
hibernate
/
browse
/
HHH
-
3401
<
ul
><
li
>
The
comment
of
a
domain
(
user
defined
data
type
)
is
now
used
.
<
/
li
><
li
>
The
comment
of
a
domain
(
user
defined
data
type
)
is
now
used
.
</
li
></
ul
>
</
li
></
ul
>
<
b
>
Bugfixes
:
</
b
>
<
b
>
Bugfixes
:
</
b
>
<
ul
><
li
>
ResultSetMetaData
.
getColumnClassName
now
returns
the
correct
<
ul
><
li
>
ResultSetMetaData
.
getColumnClassName
now
returns
the
correct
...
...
h2/src/test/org/h2/test/jaqu/ComplexObject.java
浏览文件 @
a7fbae73
...
@@ -34,7 +34,7 @@ public class ComplexObject implements Table {
...
@@ -34,7 +34,7 @@ public class ComplexObject implements Table {
static
ComplexObject
build
(
Integer
id
,
boolean
isNull
)
{
static
ComplexObject
build
(
Integer
id
,
boolean
isNull
)
{
ComplexObject
obj
=
new
ComplexObject
();
ComplexObject
obj
=
new
ComplexObject
();
obj
.
id
=
id
;
obj
.
id
=
id
;
obj
.
amount
=
isNull
?
null
:
new
Long
(
1
);
obj
.
amount
=
isNull
?
null
:
Long
.
valueOf
(
1
);
obj
.
name
=
isNull
?
null
:
"hello"
;
obj
.
name
=
isNull
?
null
:
"hello"
;
obj
.
value
=
isNull
?
null
:
new
BigDecimal
(
"1"
);
obj
.
value
=
isNull
?
null
:
new
BigDecimal
(
"1"
);
obj
.
birthday
=
isNull
?
null
:
java
.
sql
.
Date
.
valueOf
(
"2001-01-01"
);
obj
.
birthday
=
isNull
?
null
:
java
.
sql
.
Date
.
valueOf
(
"2001-01-01"
);
...
...
h2/src/test/org/h2/test/todo/tools.sql
浏览文件 @
a7fbae73
/*
* Copyright 2004-2008 H2 Group. Multiple-Licensed under the H2 License,
* Version 1.0, and under the Eclipse Public License, Version 1.0
* (http://h2database.com/html/license.html).
* Initial Developer: H2 Group
*/
-- update all rows in all tables
-- update all rows in all tables
select
'update '
||
table_schema
||
'.'
||
table_name
||
' set '
||
column_name
||
'='
||
column_name
||
';'
select
'update '
||
table_schema
||
'.'
||
table_name
||
' set '
||
column_name
||
'='
||
column_name
||
';'
from
information_schema
.
columns
where
ORDINAL_POSITION
=
1
and
table_schema
<>
'INFORMATION_SCHEMA'
;
from
information_schema
.
columns
where
ORDINAL_POSITION
=
1
and
table_schema
<>
'INFORMATION_SCHEMA'
;
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
a7fbae73
...
@@ -555,3 +555,4 @@ pdfurl upate pagebreak ren echo atlassian buggy submitted xcopy invention
...
@@ -555,3 +555,4 @@ pdfurl upate pagebreak ren echo atlassian buggy submitted xcopy invention
harbor generics pojo annotations ecl subclipse jmx bean plugins team cha emma
harbor generics pojo annotations ecl subclipse jmx bean plugins team cha emma
nullsoft annotation cover scriptable guidelines consider batis coding
nullsoft annotation cover scriptable guidelines consider batis coding
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
anlytc art orafusion ery ideas jequel indices quaere dsl accumulated vary
causing nopack
h2/src/tools/org/h2/jaqu/Condition.java
浏览文件 @
a7fbae73
...
@@ -13,12 +13,10 @@ package org.h2.jaqu;
...
@@ -13,12 +13,10 @@ package org.h2.jaqu;
*/
*/
//## Java 1.5 begin ##
//## Java 1.5 begin ##
class
Condition
<
A
>
implements
Token
{
class
Condition
<
A
>
implements
Token
{
Query
<
?
>
query
;
CompareType
compareType
;
CompareType
compareType
;
A
x
,
y
;
A
x
,
y
;
Condition
(
Query
<
?
>
query
,
A
x
,
A
y
,
CompareType
compareType
)
{
Condition
(
A
x
,
A
y
,
CompareType
compareType
)
{
this
.
query
=
query
;
this
.
compareType
=
compareType
;
this
.
compareType
=
compareType
;
this
.
x
=
x
;
this
.
x
=
x
;
this
.
y
=
y
;
this
.
y
=
y
;
...
...
h2/src/tools/org/h2/jaqu/QueryCondition.java
浏览文件 @
a7fbae73
...
@@ -25,37 +25,37 @@ public class QueryCondition<T, A> {
...
@@ -25,37 +25,37 @@ public class QueryCondition<T, A> {
public
QueryWhere
<
T
>
is
(
A
y
)
{
public
QueryWhere
<
T
>
is
(
A
y
)
{
query
.
addConditionToken
(
query
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
y
,
CompareType
.
EQUAL
));
new
Condition
<
A
>(
x
,
y
,
CompareType
.
EQUAL
));
return
new
QueryWhere
<
T
>(
query
);
return
new
QueryWhere
<
T
>(
query
);
}
}
public
QueryWhere
<
T
>
bigger
(
A
y
)
{
public
QueryWhere
<
T
>
bigger
(
A
y
)
{
query
.
addConditionToken
(
query
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
y
,
CompareType
.
BIGGER
));
new
Condition
<
A
>(
x
,
y
,
CompareType
.
BIGGER
));
return
new
QueryWhere
<
T
>(
query
);
return
new
QueryWhere
<
T
>(
query
);
}
}
public
QueryWhere
<
T
>
biggerEqual
(
A
y
)
{
public
QueryWhere
<
T
>
biggerEqual
(
A
y
)
{
query
.
addConditionToken
(
query
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
y
,
CompareType
.
BIGGER_EQUAL
));
new
Condition
<
A
>(
x
,
y
,
CompareType
.
BIGGER_EQUAL
));
return
new
QueryWhere
<
T
>(
query
);
return
new
QueryWhere
<
T
>(
query
);
}
}
public
QueryWhere
<
T
>
smaller
(
A
y
)
{
public
QueryWhere
<
T
>
smaller
(
A
y
)
{
query
.
addConditionToken
(
query
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
y
,
CompareType
.
SMALLER
));
new
Condition
<
A
>(
x
,
y
,
CompareType
.
SMALLER
));
return
new
QueryWhere
<
T
>(
query
);
return
new
QueryWhere
<
T
>(
query
);
}
}
public
QueryWhere
<
T
>
smallerEqual
(
A
y
)
{
public
QueryWhere
<
T
>
smallerEqual
(
A
y
)
{
query
.
addConditionToken
(
query
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
y
,
CompareType
.
SMALLER_EQUAL
));
new
Condition
<
A
>(
x
,
y
,
CompareType
.
SMALLER_EQUAL
));
return
new
QueryWhere
<
T
>(
query
);
return
new
QueryWhere
<
T
>(
query
);
}
}
public
QueryWhere
<
T
>
like
(
A
pattern
)
{
public
QueryWhere
<
T
>
like
(
A
pattern
)
{
query
.
addConditionToken
(
query
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
pattern
,
CompareType
.
LIKE
));
new
Condition
<
A
>(
x
,
pattern
,
CompareType
.
LIKE
));
return
new
QueryWhere
<
T
>(
query
);
return
new
QueryWhere
<
T
>(
query
);
}
}
...
...
h2/src/tools/org/h2/jaqu/QueryJoinCondition.java
浏览文件 @
a7fbae73
...
@@ -25,7 +25,7 @@ public class QueryJoinCondition<A> {
...
@@ -25,7 +25,7 @@ public class QueryJoinCondition<A> {
}
}
public
Query
<
?
>
is
(
A
y
)
{
public
Query
<
?
>
is
(
A
y
)
{
join
.
addConditionToken
(
new
Condition
<
A
>(
query
,
x
,
y
,
CompareType
.
EQUAL
));
join
.
addConditionToken
(
new
Condition
<
A
>(
x
,
y
,
CompareType
.
EQUAL
));
return
query
;
return
query
;
}
}
}
}
...
...
h2/src/tools/org/h2/jaqu/util/Utils.java
浏览文件 @
a7fbae73
...
@@ -129,7 +129,7 @@ public class Utils {
...
@@ -129,7 +129,7 @@ public class Utils {
return
null
;
return
null
;
}
}
Class
currentType
=
o
.
getClass
();
Class
currentType
=
o
.
getClass
();
if
(
currentType
==
curren
tType
)
{
if
(
currentType
==
targe
tType
)
{
return
o
;
return
o
;
}
}
if
(
targetType
==
String
.
class
)
{
if
(
targetType
==
String
.
class
)
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论