Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
08d3f1a5
提交
08d3f1a5
authored
5月 10, 2010
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Documentation.
上级
1013fede
隐藏空白字符变更
内嵌
并排
正在显示
5 个修改的文件
包含
46 行增加
和
7 行删除
+46
-7
changelog.html
h2/src/docsrc/html/changelog.html
+2
-1
Trigger.java
h2/src/main/org/h2/api/Trigger.java
+1
-0
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+5
-2
TestBase.java
h2/src/test/org/h2/test/TestBase.java
+37
-3
dictionary.txt
h2/src/tools/org/h2/build/doc/dictionary.txt
+1
-1
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
08d3f1a5
...
...
@@ -18,7 +18,8 @@ Change Log
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
The H2 Console can now be used within another application, in a frame or iframe. Issue 197.
<ul><li>
Profiler: improved message if there was no stack trace.
</li><li>
The H2 Console can now be used within another application, in a frame or iframe. Issue 197.
</li><li>
Recover tool: the statistics section now includes page type counts again.
</li><li>
Queries with multiple IN(...) conditions sometimes return the wrong results when there was a multi-column index for the column.
</li><li>
Queries with IN(..., NULL) did sometimes return the wrong results when there was a index for the column.
...
...
h2/src/main/org/h2/api/Trigger.java
浏览文件 @
08d3f1a5
...
...
@@ -62,6 +62,7 @@ public interface Trigger {
* The row arrays contain all columns of the table, in the same order
* as defined in the table.
* </p>
*
* @param conn a connection to the database
* @param oldRow the old row, or null if no old row is available (for
* INSERT)
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
08d3f1a5
...
...
@@ -301,11 +301,14 @@ java org.h2.test.TestAll timer
// System.setProperty("h2.syncMethod", "");
/*
test with small freeList pages, page size 64
change or remove documentation for FILE_LOCK=NO
comparative sql tests
ValueDecimal.getMemory() is slow
reopen org.h2.test.unit.TestPageStore
-Xmx1500m -D reopenOffset=3 -D reopenShift=1
test with small freeList pages, page size 64
power failure test
power failure test: MULTI_THREADED=TRUE
...
...
h2/src/test/org/h2/test/TestBase.java
浏览文件 @
08d3f1a5
...
...
@@ -599,15 +599,16 @@ public abstract class TestBase {
/**
* Check if two values are equal, and if not throw an exception.
*
* @param message the message to use if the check fails
* @param expected the expected value
* @param actual the actual value
* @throws AssertionError if the values are not equal
*/
protected
void
assertEquals
(
String
expected
,
String
actual
)
{
protected
void
assertEquals
(
String
message
,
String
expected
,
String
actual
)
{
if
(
expected
==
null
&&
actual
==
null
)
{
return
;
}
else
if
(
expected
==
null
||
actual
==
null
)
{
fail
(
"Expected: "
+
expected
+
" Actual: "
+
actual
);
fail
(
"Expected: "
+
expected
+
" Actual: "
+
actual
+
" "
+
message
);
}
if
(!
expected
.
equals
(
actual
))
{
for
(
int
i
=
0
;
i
<
expected
.
length
();
i
++)
{
...
...
@@ -625,8 +626,41 @@ public abstract class TestBase {
if
(
bl
>
4000
)
{
actual
=
actual
.
substring
(
0
,
4000
);
}
fail
(
"Expected: "
+
expected
+
" ("
+
al
+
") actual: "
+
actual
+
" ("
+
bl
+
")"
);
fail
(
"Expected: "
+
expected
+
" ("
+
al
+
") actual: "
+
actual
+
" ("
+
bl
+
") "
+
message
);
}
}
/**
* Check if two values are equal, and if not throw an exception.
*
* @param expected the expected value
* @param actual the actual value
* @throws AssertionError if the values are not equal
*/
protected
void
assertEquals
(
String
expected
,
String
actual
)
{
assertEquals
(
""
,
expected
,
actual
);
}
/**
* Check if two result sets are equal, and if not throw an exception.
*
* @param message the message to use if the check fails
* @param rs0 the first result set
* @param rs1 the second result set
* @throws AssertionError if the values are not equal
*/
protected
void
assertEquals
(
String
message
,
ResultSet
rs0
,
ResultSet
rs1
)
throws
SQLException
{
ResultSetMetaData
meta
=
rs0
.
getMetaData
();
int
columns
=
meta
.
getColumnCount
();
assertEquals
(
columns
,
rs1
.
getMetaData
().
getColumnCount
());
while
(
rs0
.
next
())
{
assertTrue
(
message
,
rs1
.
next
());
for
(
int
i
=
0
;
i
<
columns
;
i
++)
{
assertEquals
(
message
,
rs0
.
getString
(
i
+
1
),
rs1
.
getString
(
i
+
1
));
}
}
assertFalse
(
message
,
rs0
.
next
());
assertFalse
(
message
,
rs1
.
next
());
}
/**
...
...
h2/src/tools/org/h2/build/doc/dictionary.txt
浏览文件 @
08d3f1a5
...
...
@@ -644,4 +644,4 @@ pulakka pagination collide visual aejaks simulation joonas finland minneapolis
determine timestampdiff harmony doap shortdesc wireless iceland sigurdsson
darri chunks bjorn chunked watson regardless usefulinc represented pushd
recorder grajciar recording slovensky uninitialized arriving lubomir unchanged
erik dick
erik dick
calculations
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论