Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
0754add7
提交
0754add7
authored
16 年前
作者:
Thomas Mueller
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Running out of memory could result in incomplete transactions or corrupted databases
上级
078d94ce
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
60 行增加
和
19 行删除
+60
-19
TestAll.java
h2/src/test/org/h2/test/TestAll.java
+60
-19
没有找到文件。
h2/src/test/org/h2/test/TestAll.java
浏览文件 @
0754add7
...
...
@@ -37,6 +37,7 @@ import org.h2.test.db.TestMultiDimension;
import
org.h2.test.db.TestMultiThread
;
import
org.h2.test.db.TestOpenClose
;
import
org.h2.test.db.TestOptimizations
;
import
org.h2.test.db.TestOutOfMemory
;
import
org.h2.test.db.TestPowerOff
;
import
org.h2.test.db.TestReadOnly
;
import
org.h2.test.db.TestRights
;
...
...
@@ -269,30 +270,69 @@ java org.h2.test.TestAll timer
/*
automate a test:
drop all objects delete files;
<reconnect>
drop table stuff;
create table stuff (id identity, text varchar(3000),
created timestamp default current_timestamp);
@LOOP 1000000 insert into stuff (text) values
('This is record ' || ? || ' and this is it''s data');
update stuff set text = text || ' updated';
select count(*) from stuff;
-Xmx16m
drop view viewa;
drop table tablea;
drop table tableb;
drop table tablec;
CREATE TABLE tablea(id INT);
CREATE TABLE tableb(id INT);
CREATE TABLE tablec(id INT);
CREATE VIEW viewa AS
SELECT tablec.id FROM tablec
INNER JOIN tablea ON tablec.id = tablea.id
LEFT JOIN tableb ON tableb.id = tablea.id;
SELECT * FROM tablec INNER JOIN viewa ON tablec.id = viewa.id;
drop view view_a;
drop table table_a;
drop table table_b;
drop table table_c;
CREATE TABLE table_a(id INT, left_id INT);
CREATE TABLE table_b(id INT);
CREATE TABLE table_c(left_id INT);
CREATE VIEW view_a AS
SELECT table_c.left_id
FROM table_c
INNER JOIN table_a ON table_c.left_id = table_a.left_id
LEFT JOIN table_b ON table_b.id = table_a.id;
SELECT * FROM table_c INNER JOIN view_a ON table_c.left_id = view_a.left_id;
drop view view_a;
drop table table_a;
drop table table_b;
drop table table_c;
CREATE TABLE table_a(id INT, left_id INT);
CREATE TABLE table_b(id INT);
CREATE TABLE table_c(left_id INT, center_id INT);
CREATE VIEW view_a AS
SELECT table_c.center_id
FROM table_c
INNER JOIN table_a ON table_c.left_id = table_a.left_id
LEFT JOIN table_b ON table_b.id = table_a.id;
SELECT * FROM table_c INNER JOIN view_a ON table_c.center_id = view_a.center_id;
drop view view_b;
drop view view_a;
drop table table_a;
drop table table_b;
drop table table_c;
CREATE TABLE table_a(a_id INT PRIMARY KEY, left_id INT, right_id INT);
CREATE TABLE table_b(b_id INT PRIMARY KEY, a_id INT);
CREATE TABLE table_c(left_id INT, right_id INT, center_id INT);
CREATE VIEW view_a AS
SELECT table_c.center_id, table_a.a_id, table_b.b_id
FROM table_c
INNER JOIN table_a ON table_c.left_id = table_a.left_id AND table_c.right_id = table_a.right_id
LEFT JOIN table_b ON table_b.a_id = table_a.a_id;
SELECT * FROM table_c INNER JOIN view_a ON table_c.center_id = view_a.center_id;
Check Eclipse DTP, see also
https://bugs.eclipse.org/bugs/show_bug.cgi?id=137701
Support large updates (use the transaction log to undo).
document FTL_SEARCH, FTL_SEARCH_DATA
I will add a feature request to support DECODE,
and another feature request to support a variable
number of parameters for Java functions. I don't want
to use arrays because H2 also supports ARRAY as a base data type.
Varargs as in Java 1.5 would be an option however,
but then you can't support it in Java 1.4.
JaQu
row level locking
...
...
@@ -591,6 +631,7 @@ http://www.w3schools.com/sql/
new
TestMultiThread
().
runTest
(
this
);
new
TestOpenClose
().
runTest
(
this
);
new
TestOptimizations
().
runTest
(
this
);
new
TestOutOfMemory
().
runTest
(
this
);
new
TestPowerOff
().
runTest
(
this
);
new
TestReadOnly
().
runTest
(
this
);
new
TestRights
().
runTest
(
this
);
...
...
This diff is collapsed.
Click to expand it.
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论