Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
bd3ced2d
提交
bd3ced2d
authored
10月 14, 2008
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
--no commit message
--no commit message
上级
c6a5cfc3
显示空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
46 行增加
和
10 行删除
+46
-10
changelog.html
h2/src/docsrc/html/changelog.html
+4
-1
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+1
-9
TestBitField.java
h2/src/test/org/h2/test/unit/TestBitField.java
+41
-0
没有找到文件。
h2/src/docsrc/html/changelog.html
浏览文件 @
bd3ced2d
...
@@ -18,7 +18,10 @@ Change Log
...
@@ -18,7 +18,10 @@ Change Log
<h1>
Change Log
</h1>
<h1>
Change Log
</h1>
<h2>
Next Version (unreleased)
</h2>
<h2>
Next Version (unreleased)
</h2>
<ul><li>
The wrong parameters were bound to subqueries with parameters, specially
<ul><li>
Opening large database is now faster.
</li><li>
New system property h2.socketConnectTimeout, the timeout in milliseconds
to connect to a server. The default is 2000 (2 seconds).
</li><li>
The wrong parameters were bound to subqueries with parameters, specially
when using IN(SELECT ...) and IN(...).
when using IN(SELECT ...) and IN(...).
</li><li>
Unset parameters were not detected when the query was re-compiled.
</li><li>
Unset parameters were not detected when the query was re-compiled.
</li><li>
New functions ISO_YEAR, ISO_WEEK, ISO_DAY_OF_WEEK.
</li><li>
New functions ISO_YEAR, ISO_WEEK, ISO_DAY_OF_WEEK.
...
...
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
bd3ced2d
...
@@ -279,14 +279,6 @@ java org.h2.test.TestAll timer
...
@@ -279,14 +279,6 @@ java org.h2.test.TestAll timer
/*
/*
java -Xmx3m
create table test(name varchar);
set max_log_size 1024;
@LOOP 20000 insert into test values(space(10000));
delete from test;
SELECT * FROM TEST where name like 'a';
test with 1.0
test with 1.0
document shared connections for linked tables
document shared connections for linked tables
...
...
h2/src/test/org/h2/test/unit/TestBitField.java
浏览文件 @
bd3ced2d
...
@@ -17,11 +17,52 @@ import org.h2.util.BitField;
...
@@ -17,11 +17,52 @@ import org.h2.util.BitField;
*/
*/
public
class
TestBitField
extends
TestBase
{
public
class
TestBitField
extends
TestBase
{
/**
* Run just this test.
*
* @param a ignored
*/
public
static
void
main
(
String
[]
a
)
throws
Exception
{
TestBase
.
createCaller
().
init
().
test
();
}
public
void
test
()
{
public
void
test
()
{
testByteOperations
();
testRandom
();
testRandom
();
testGetSet
();
testGetSet
();
}
}
private
void
testByteOperations
()
{
BitField
used
=
new
BitField
();
testSetFast
(
used
,
false
);
testSetFast
(
used
,
true
);
}
private
void
testSetFast
(
BitField
used
,
boolean
init
)
{
int
len
=
10000
;
Random
random
=
new
Random
(
1
);
for
(
int
i
=
0
,
x
=
0
;
i
<
len
/
8
;
i
++)
{
int
mask
=
random
.
nextInt
()
&
255
;
if
(
init
)
{
assertEquals
(
mask
,
used
.
getByte
(
x
));
x
+=
8
;
// for (int j = 0; j < 8; j++, x++) {
// if (used.get(x) != ((mask & (1 << j)) != 0)) {
// throw Message.getInternalError("Redo failure, block: " + x + " expected in-use bit: " + used.get(x));
// }
// }
}
else
{
used
.
setByte
(
x
,
mask
);
x
+=
8
;
// for (int j = 0; j < 8; j++, x++) {
// if ((mask & (1 << j)) != 0) {
// used.set(x);
// }
// }
}
}
}
private
void
testRandom
()
{
private
void
testRandom
()
{
BitField
bits
=
new
BitField
();
BitField
bits
=
new
BitField
();
BitSet
set
=
new
BitSet
();
BitSet
set
=
new
BitSet
();
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论