Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d9714d21
提交
d9714d21
authored
8月 24, 2007
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
5feca64f
全部展开
隐藏空白字符变更
内嵌
并排
正在显示
13 个修改的文件
包含
76 行增加
和
2247 行删除
+76
-2247
ant-build.properties
h2/ant-build.properties
+2
-2
faq.html
h2/src/docsrc/html/faq.html
+2
-1
history.html
h2/src/docsrc/html/history.html
+1
-1
_docs_de.utf8.txt
h2/src/docsrc/text/_docs_de.utf8.txt
+0
-1083
_docs_ja.utf8.txt
h2/src/docsrc/text/_docs_ja.utf8.txt
+0
-1083
ErrorCode.java
h2/src/main/org/h2/constant/ErrorCode.java
+1
-2
Constants.java
h2/src/main/org/h2/engine/Constants.java
+3
-3
DbObject.java
h2/src/main/org/h2/engine/DbObject.java
+34
-35
Index.java
h2/src/main/org/h2/index/Index.java
+27
-31
_messages_ja.properties
h2/src/main/org/h2/res/_messages_ja.properties
+1
-1
SchemaObject.java
h2/src/main/org/h2/schema/SchemaObject.java
+3
-3
Table.java
h2/src/main/org/h2/table/Table.java
+1
-1
CacheObject.java
h2/src/main/org/h2/util/CacheObject.java
+1
-1
没有找到文件。
h2/ant-build.properties
浏览文件 @
d9714d21
#
Sun Jul 29 20:39:45
CEST 2007
#
Fri Aug 24 22:06:59
CEST 2007
javac
=
javac
benchmark.drivers.dir
=
C
\:
/data/java
path.servlet.jar
=
C
\:
/data/classpath/servlet-api.jar
version.name.maven
=
1.0.200
70712
version.name.maven
=
1.0.200
80825
jdk
=
1.4
h2/src/docsrc/html/faq.html
浏览文件 @
d9714d21
...
...
@@ -39,11 +39,12 @@ 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-08-
02
:
2007-08-
25
:
</p>
<ul>
<li>
Some problems have been found with right outer join. Internally, it is converted to left outer join, which
does not always produce the same results as other databases when used in combination with other joins.
</li><li>
Using a CAST in a GROUP BY expression that is used in a view does not always work.
</li></ul>
<br
/><a
name=
"open_source"
></a>
...
...
h2/src/docsrc/html/history.html
浏览文件 @
d9714d21
...
...
@@ -39,7 +39,7 @@ Hypersonic SQL or HSQLDB. H2 is built from scratch.
<h3>
Version 1.0 (Current)
</h3>
<h3>
Version 1.0 /
TODO (Build xx
)
</h3><ul>
<h3>
Version 1.0 /
2008-08-25 (Build 57
)
</h3><ul>
<li>
New experimental feature MVCC (multi version concurrency control).
Can be set as a option when opening the database (jdbc:h2:test;MVCC=TRUE)
or as a system property (-Dh2.mvcc=true). This is work-in-progress, use it at your own risk. Feedback is welcome.
...
...
h2/src/docsrc/text/_docs_de.utf8.txt
浏览文件 @
d9714d21
差异被折叠。
点击展开。
h2/src/docsrc/text/_docs_ja.utf8.txt
浏览文件 @
d9714d21
差异被折叠。
点击展开。
h2/src/main/org/h2/constant/ErrorCode.java
浏览文件 @
d9714d21
...
...
@@ -122,11 +122,10 @@ public class ErrorCode {
* conn = null;
* The connection was not closed by the application and is garbage collected
* </pre>
*
* Correct:
*
* <pre>
* conn.close();
* </pre>
*
*/
public
static
final
int
TRACE_CONNECTION_NOT_CLOSED
=
90018
;
...
...
h2/src/main/org/h2/engine/Constants.java
浏览文件 @
d9714d21
...
...
@@ -30,7 +30,7 @@ import org.h2.constant.SysProperties;
* - Maybe increase TCP_DRIVER_VERSION
* - Check code coverage
* - No " Message.getInternalError" (must be "throw Message.getInternalError")
* - No TODO in the docs
* - No TODO in the docs
, remove @~ in .utf8.txt files
* - Run regression test with JDK 1.4 and 1.5
* - Change version(s) in performance.html; use latest versions of other databases
* - Run 'ant benchmark' (with JDK 1.4 currently)
...
...
@@ -66,8 +66,8 @@ import org.h2.constant.SysProperties;
*/
public
class
Constants
{
public
static
final
int
BUILD_ID
=
5
6
;
private
static
final
String
BUILD
=
"2007-08-
02
"
;
public
static
final
int
BUILD_ID
=
5
7
;
private
static
final
String
BUILD
=
"2007-08-
25
"
;
public
static
final
int
VERSION_MAJOR
=
1
;
public
static
final
int
VERSION_MINOR
=
0
;
...
...
h2/src/main/org/h2/engine/DbObject.java
浏览文件 @
d9714d21
...
...
@@ -9,57 +9,56 @@ import org.h2.table.Table;
import
org.h2.util.ObjectArray
;
public
interface
DbObject
{
public
static
final
int
INDEX
=
1
;
public
static
final
int
SEQUENCE
=
3
;
public
static
final
int
TABLE_OR_VIEW
=
0
;
public
static
final
int
TRIGGER
=
4
;
public
static
final
int
USER
=
2
;
public
static
final
int
CONSTRAINT
=
5
;
public
static
final
int
FUNCTION_ALIAS
=
9
;
public
static
final
int
RIGHT
=
8
;
public
static
final
int
ROLE
=
7
;
public
static
final
int
SETTING
=
6
;
public
static
final
int
CONSTANT
=
11
;
public
static
final
int
SCHEMA
=
10
;
public
static
final
int
COMMENT
=
13
;
public
static
final
int
USER_DATATYPE
=
12
;
int
INDEX
=
1
;
int
SEQUENCE
=
3
;
int
TABLE_OR_VIEW
=
0
;
int
TRIGGER
=
4
;
int
USER
=
2
;
int
CONSTRAINT
=
5
;
int
FUNCTION_ALIAS
=
9
;
int
RIGHT
=
8
;
int
ROLE
=
7
;
int
SETTING
=
6
;
int
CONSTANT
=
11
;
int
SCHEMA
=
10
;
int
COMMENT
=
13
;
int
USER_DATATYPE
=
12
;
public
abstract
void
setModified
();
void
setModified
();
public
abstract
long
getModificationId
();
long
getModificationId
();
public
abstract
String
getSQL
();
String
getSQL
();
public
abstract
ObjectArray
getChildren
();
ObjectArray
getChildren
();
public
abstract
Database
getDatabase
();
Database
getDatabase
();
public
abstract
int
getId
();
int
getId
();
public
abstract
String
getName
();
String
getName
();
public
abstract
String
getCreateSQLForCopy
(
Table
table
,
String
quotedName
);
String
getCreateSQLForCopy
(
Table
table
,
String
quotedName
);
public
abstract
String
getCreateSQL
();
String
getCreateSQL
();
public
abstract
String
getDropSQL
();
String
getDropSQL
();
public
abstract
int
getType
();
int
getType
();
public
abstract
void
removeChildrenAndResources
(
Session
session
)
throws
SQLException
;
void
removeChildrenAndResources
(
Session
session
)
throws
SQLException
;
public
abstract
void
checkRename
()
throws
SQLException
;
void
checkRename
()
throws
SQLException
;
public
abstract
void
rename
(
String
newName
)
throws
SQLException
;
void
rename
(
String
newName
)
throws
SQLException
;
public
abstract
boolean
getTemporary
();
boolean
getTemporary
();
public
abstract
void
setTemporary
(
boolean
temporary
);
void
setTemporary
(
boolean
temporary
);
public
abstract
void
setComment
(
String
comment
);
void
setComment
(
String
comment
);
public
abstract
String
getComment
();
String
getComment
();
public
abstract
int
getHeadPos
();
}
\ No newline at end of file
int
getHeadPos
();
}
h2/src/main/org/h2/index/Index.java
浏览文件 @
d9714d21
...
...
@@ -5,6 +5,7 @@
package
org
.
h2
.
index
;
import
java.sql.SQLException
;
import
org.h2.engine.Session
;
import
org.h2.result.Row
;
import
org.h2.result.SearchRow
;
...
...
@@ -14,59 +15,54 @@ import org.h2.table.Table;
public
interface
Index
extends
SchemaObject
{
public
static
final
int
EMPTY_HEAD
=
-
1
;
int
EMPTY_HEAD
=
-
1
;
public
abstract
SQLException
getDuplicateKeyException
();
SQLException
getDuplicateKeyException
();
public
abstract
String
getPlanSQL
();
String
getPlanSQL
();
public
abstract
void
close
(
Session
session
)
throws
SQLException
;
void
close
(
Session
session
)
throws
SQLException
;
public
abstract
void
add
(
Session
session
,
Row
row
)
throws
SQLException
;
void
add
(
Session
session
,
Row
row
)
throws
SQLException
;
public
abstract
void
remove
(
Session
session
,
Row
row
)
throws
SQLException
;
void
remove
(
Session
session
,
Row
row
)
throws
SQLException
;
public
abstract
Cursor
find
(
Session
session
,
SearchRow
first
,
SearchRow
last
)
throws
SQLException
;
Cursor
find
(
Session
session
,
SearchRow
first
,
SearchRow
last
)
throws
SQLException
;
public
abstract
double
getCost
(
Session
session
,
int
[]
masks
)
throws
SQLException
;
double
getCost
(
Session
session
,
int
[]
masks
)
throws
SQLException
;
public
abstract
void
remove
(
Session
session
)
throws
SQLException
;
void
remove
(
Session
session
)
throws
SQLException
;
public
abstract
void
truncate
(
Session
session
)
throws
SQLException
;
void
truncate
(
Session
session
)
throws
SQLException
;
public
abstract
boolean
canGetFirstOrLast
(
boolean
first
);
boolean
canGetFirstOrLast
(
boolean
first
);
public
abstract
SearchRow
findFirstOrLast
(
Session
session
,
boolean
first
)
throws
SQLException
;
SearchRow
findFirstOrLast
(
Session
session
,
boolean
first
)
throws
SQLException
;
public
abstract
boolean
needRebuild
();
boolean
needRebuild
();
public
abstract
long
getRowCount
(
Session
session
);
long
getRowCount
(
Session
session
);
public
abstract
int
getLookupCost
(
long
rowCount
);
int
getLookupCost
(
long
rowCount
);
public
abstract
long
getCostRangeIndex
(
int
[]
masks
,
long
rowCount
)
throws
SQLException
;
long
getCostRangeIndex
(
int
[]
masks
,
long
rowCount
)
throws
SQLException
;
public
abstract
int
compareRows
(
SearchRow
rowData
,
SearchRow
compare
)
throws
SQLException
;
int
compareRows
(
SearchRow
rowData
,
SearchRow
compare
)
throws
SQLException
;
public
abstract
boolean
isNull
(
Row
newRow
);
boolean
isNull
(
Row
newRow
);
public
abstract
int
compareKeys
(
SearchRow
rowData
,
SearchRow
compare
);
int
compareKeys
(
SearchRow
rowData
,
SearchRow
compare
);
public
abstract
int
getColumnIndex
(
Column
col
);
int
getColumnIndex
(
Column
col
);
public
abstract
String
getColumnListSQL
();
String
getColumnListSQL
();
public
abstract
Column
[]
getColumns
();
Column
[]
getColumns
();
public
abstract
IndexType
getIndexType
();
IndexType
getIndexType
();
public
abstract
Table
getTable
();
Table
getTable
();
public
abstract
void
commit
(
int
operation
,
Row
row
)
throws
SQLException
;
void
commit
(
int
operation
,
Row
row
)
throws
SQLException
;
}
\ No newline at end of file
}
h2/src/main/org/h2/res/_messages_ja.properties
浏览文件 @
d9714d21
...
...
@@ -155,4 +155,4 @@
HY000=
\u
4e00
\u
822c
\u
30a8
\u
30e9
\u
30fc
\:
{0}
HY004
=
\u
4e0d
\u
660e
\u
306a
\u
30c7
\u
30fc
\u
30bf
\u
578b
\:
{0}
HYC00
=
\u
6a5f
\u
80fd
\u
306f
\u
30b5
\u
30dd
\u
30fc
\u
30c8
\u3055\u
308c
\u3066\u3044\u
307e
\u
305b
\u3093
HYT00
=
\u
30c6
\u
30fc
\u
30d6
\u
30eb {0}
\u
306e
\u
30ed
\u
30c3
\u
30af
\u
8a66
\u
884c
\u
304c
\u
30bf
\u
30a4
\u
30e0
\u
30a2
\u
30a6
\u
30c8
\u3057\u
307e
\u3057\u
305f
\ No newline at end of file
HYT00
=
\u
30c6
\u
30fc
\u
30d6
\u
30eb {0}
\u
306e
\u
30ed
\u
30c3
\u
30af
\u
8a66
\u
884c
\u
304c
\u
30bf
\u
30a4
\u
30e0
\u
30a2
\u
30a6
\u
30c8
\u3057\u
307e
\u3057\u
305f
h2/src/main/org/h2/schema/SchemaObject.java
浏览文件 @
d9714d21
...
...
@@ -7,7 +7,7 @@ package org.h2.schema;
import
org.h2.engine.DbObject
;
public
interface
SchemaObject
extends
DbObject
{
public
abstract
Schema
getSchema
();
Schema
getSchema
();
public
abstract
String
getSQL
();
}
\ No newline at end of file
String
getSQL
();
}
h2/src/main/org/h2/table/Table.java
浏览文件 @
d9714d21
...
...
@@ -451,7 +451,7 @@ public abstract class Table extends SchemaObjectBase {
public
void
setCheckForeignKeyConstraints
(
Session
session
,
boolean
enabled
,
boolean
checkExisting
)
throws
SQLException
{
if
(
enabled
&&
checkExisting
)
{
for
(
int
i
=
0
;
i
<
constraints
.
size
();
i
++)
{
for
(
int
i
=
0
;
constraints
!=
null
&&
i
<
constraints
.
size
();
i
++)
{
Constraint
c
=
(
Constraint
)
constraints
.
get
(
i
);
c
.
checkExistingData
(
session
);
}
...
...
h2/src/main/org/h2/util/CacheObject.java
浏览文件 @
d9714d21
...
...
@@ -58,7 +58,7 @@ public abstract class CacheObject {
return
false
;
}
abstract
public
boolean
canRemove
();
public
abstract
boolean
canRemove
();
/*
* Get the estimated memory size.
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论