Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
2c045835
提交
2c045835
authored
3月 18, 2016
作者:
Noel Grandin
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
some tests were not closing their connections
上级
e96c3246
显示空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
7 行增加
和
2 行删除
+7
-2
TestRowFactory.java
h2/src/test/org/h2/test/db/TestRowFactory.java
+1
-0
TestTableEngines.java
h2/src/test/org/h2/test/db/TestTableEngines.java
+4
-1
TestDataSource.java
h2/src/test/org/h2/test/jdbcx/TestDataSource.java
+1
-0
TestMvcc2.java
h2/src/test/org/h2/test/mvcc/TestMvcc2.java
+1
-1
没有找到文件。
h2/src/test/org/h2/test/db/TestRowFactory.java
浏览文件 @
2c045835
...
@@ -41,6 +41,7 @@ public class TestRowFactory extends TestBase {
...
@@ -41,6 +41,7 @@ public class TestRowFactory extends TestBase {
stat
.
execute
(
"insert into t1 values("
+
i
+
", 'name')"
);
stat
.
execute
(
"insert into t1 values("
+
i
+
", 'name')"
);
}
}
assertTrue
(
MyTestRowFactory
.
COUNTER
.
get
()
>=
1000
);
assertTrue
(
MyTestRowFactory
.
COUNTER
.
get
()
>=
1000
);
conn
.
close
();
deleteDb
(
"rowFactory"
);
deleteDb
(
"rowFactory"
);
}
}
...
...
h2/src/test/org/h2/test/db/TestTableEngines.java
浏览文件 @
2c045835
...
@@ -345,7 +345,7 @@ public class TestTableEngines extends TestBase {
...
@@ -345,7 +345,7 @@ public class TestTableEngines extends TestBase {
return
"0"
.
equals
(
b
)
&&
a
!=
null
&&
a
<
2
;
return
"0"
.
equals
(
b
)
&&
a
!=
null
&&
a
<
2
;
}
}
},
null
);
},
null
);
conn
.
close
();
deleteDb
(
"tableEngine"
);
deleteDb
(
"tableEngine"
);
}
}
...
@@ -362,6 +362,7 @@ public class TestTableEngines extends TestBase {
...
@@ -362,6 +362,7 @@ public class TestTableEngines extends TestBase {
+
"(select id from QUERY_EXPR_TEST)"
);
+
"(select id from QUERY_EXPR_TEST)"
);
stat
.
executeQuery
(
"select 1 from QUERY_EXPR_TEST_NO n "
stat
.
executeQuery
(
"select 1 from QUERY_EXPR_TEST_NO n "
+
"where exists(select 1 from QUERY_EXPR_TEST y where y.id = n.id)"
);
+
"where exists(select 1 from QUERY_EXPR_TEST y where y.id = n.id)"
);
conn
.
close
();
deleteDb
(
"testQueryExpressionFlag"
);
deleteDb
(
"testQueryExpressionFlag"
);
}
}
...
@@ -401,6 +402,7 @@ public class TestTableEngines extends TestBase {
...
@@ -401,6 +402,7 @@ public class TestTableEngines extends TestBase {
checkPlan
(
stat
,
"select * from (select (select id from test_plan "
checkPlan
(
stat
,
"select * from (select (select id from test_plan "
+
"where name = 'z') from dual)"
,
+
"where name = 'z') from dual)"
,
"MY_NAME_INDEX"
);
"MY_NAME_INDEX"
);
conn
.
close
();
deleteDb
(
"testSubQueryInfo"
);
deleteDb
(
"testSubQueryInfo"
);
}
}
...
@@ -469,6 +471,7 @@ public class TestTableEngines extends TestBase {
...
@@ -469,6 +471,7 @@ public class TestTableEngines extends TestBase {
forceJoinOrder
(
stat
,
false
);
forceJoinOrder
(
stat
,
false
);
TreeSetIndex
.
exec
.
shutdownNow
();
TreeSetIndex
.
exec
.
shutdownNow
();
}
}
conn
.
close
();
deleteDb
(
"testBatchedJoin"
);
deleteDb
(
"testBatchedJoin"
);
}
}
...
...
h2/src/test/org/h2/test/jdbcx/TestDataSource.java
浏览文件 @
2c045835
...
@@ -187,6 +187,7 @@ public class TestDataSource extends TestBase {
...
@@ -187,6 +187,7 @@ public class TestDataSource extends TestBase {
conn
=
ds
.
getConnection
(
getUser
(),
getPassword
());
conn
=
ds
.
getConnection
(
getUser
(),
getPassword
());
stat
=
conn
.
createStatement
();
stat
=
conn
.
createStatement
();
stat
.
execute
(
"SELECT * FROM DUAL"
);
stat
.
execute
(
"SELECT * FROM DUAL"
);
conn
.
close
();
}
}
}
}
h2/src/test/org/h2/test/mvcc/TestMvcc2.java
浏览文件 @
2c045835
...
@@ -10,7 +10,6 @@ import java.sql.ResultSet;
...
@@ -10,7 +10,6 @@ import java.sql.ResultSet;
import
java.sql.SQLException
;
import
java.sql.SQLException
;
import
java.sql.Statement
;
import
java.sql.Statement
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
java.util.concurrent.atomic.AtomicBoolean
;
import
org.h2.api.ErrorCode
;
import
org.h2.api.ErrorCode
;
import
org.h2.test.TestBase
;
import
org.h2.test.TestBase
;
import
org.h2.util.Task
;
import
org.h2.util.Task
;
...
@@ -151,6 +150,7 @@ public class TestMvcc2 extends TestBase {
...
@@ -151,6 +150,7 @@ public class TestMvcc2 extends TestBase {
assertThrows
(
ErrorCode
.
LOCK_TIMEOUT_1
,
conn2
.
createStatement
()).
assertThrows
(
ErrorCode
.
LOCK_TIMEOUT_1
,
conn2
.
createStatement
()).
execute
(
"select * from test where id = 3 for update"
);
execute
(
"select * from test where id = 3 for update"
);
conn
.
close
();
conn
.
close
();
conn2
.
close
();
}
}
private
void
testInsertUpdateRollback
()
throws
SQLException
{
private
void
testInsertUpdateRollback
()
throws
SQLException
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论