Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
为 GitLab 提交贡献
登录/注册
切换导航
H
h2database
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
Administrator
h2database
Commits
d6b8497f
提交
d6b8497f
authored
3月 04, 2018
作者:
Evgenij Ryazanov
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix test failures
上级
0deebe1e
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
9 行删除
+9
-9
TestRights.java
h2/src/test/org/h2/test/db/TestRights.java
+2
-2
testSimple.in.txt
h2/src/test/org/h2/test/scripts/testSimple.in.txt
+7
-7
没有找到文件。
h2/src/test/org/h2/test/db/TestRights.java
浏览文件 @
d6b8497f
...
@@ -388,7 +388,7 @@ public class TestRights extends TestBase {
...
@@ -388,7 +388,7 @@ public class TestRights extends TestBase {
execute
(
"alter user test1 admin false"
);
execute
(
"alter user test1 admin false"
);
assertThrows
(
ErrorCode
.
CANNOT_DROP_2
,
stat
).
assertThrows
(
ErrorCode
.
CANNOT_DROP_2
,
stat
).
execute
(
"drop user test1"
);
execute
(
"drop user test1"
);
stat
.
execute
(
"drop schema b"
);
stat
.
execute
(
"drop schema b
cascade
"
);
stat
.
execute
(
"alter user test1 admin false"
);
stat
.
execute
(
"alter user test1 admin false"
);
stat
.
execute
(
"drop user test1"
);
stat
.
execute
(
"drop user test1"
);
conn
.
close
();
conn
.
close
();
...
@@ -451,7 +451,7 @@ public class TestRights extends TestBase {
...
@@ -451,7 +451,7 @@ public class TestRights extends TestBase {
executeSuccess
(
"INSERT INTO S.TEST (ID, NAME) VALUES (42, 'Adams')"
);
executeSuccess
(
"INSERT INTO S.TEST (ID, NAME) VALUES (42, 'Adams')"
);
executeSuccess
(
"UPDATE S.TEST Set NAME = 'Douglas'"
);
executeSuccess
(
"UPDATE S.TEST Set NAME = 'Douglas'"
);
executeSuccess
(
"DELETE FROM S.TEST"
);
executeSuccess
(
"DELETE FROM S.TEST"
);
executeSuccess
(
"DROP SCHEMA S"
);
executeSuccess
(
"DROP SCHEMA S
CASCADE
"
);
// ...and on other schemata
// ...and on other schemata
executeSuccess
(
"CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR)"
);
executeSuccess
(
"CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR)"
);
...
...
h2/src/test/org/h2/test/scripts/testSimple.in.txt
浏览文件 @
d6b8497f
...
@@ -258,7 +258,7 @@ select nextval('"test"."report_id_seq"');
...
@@ -258,7 +258,7 @@ select nextval('"test"."report_id_seq"');
> 2;
> 2;
select nextval('test.report_id_seq');
select nextval('test.report_id_seq');
> 3;
> 3;
drop schema test;
drop schema test
cascade
;
create table master(id int primary key);
create table master(id int primary key);
create table detail(id int primary key, x bigint, foreign key(x) references master(id) on delete cascade);
create table detail(id int primary key, x bigint, foreign key(x) references master(id) on delete cascade);
...
@@ -346,14 +346,14 @@ create schema Contact;
...
@@ -346,14 +346,14 @@ create schema Contact;
CREATE TABLE Account (id BIGINT);
CREATE TABLE Account (id BIGINT);
CREATE TABLE Person (id BIGINT, FOREIGN KEY (id) REFERENCES Account(id));
CREATE TABLE Person (id BIGINT, FOREIGN KEY (id) REFERENCES Account(id));
CREATE TABLE Contact.Contact (id BIGINT, FOREIGN KEY (id) REFERENCES public.Person(id));
CREATE TABLE Contact.Contact (id BIGINT, FOREIGN KEY (id) REFERENCES public.Person(id));
drop schema contact;
drop schema contact
cascade
;
drop table account, person;
drop table account, person;
create schema Contact;
create schema Contact;
CREATE TABLE Account (id BIGINT primary key);
CREATE TABLE Account (id BIGINT primary key);
CREATE TABLE Person (id BIGINT primary key, FOREIGN KEY (id) REFERENCES Account);
CREATE TABLE Person (id BIGINT primary key, FOREIGN KEY (id) REFERENCES Account);
CREATE TABLE Contact.Contact (id BIGINT primary key, FOREIGN KEY (id) REFERENCES public.Person);
CREATE TABLE Contact.Contact (id BIGINT primary key, FOREIGN KEY (id) REFERENCES public.Person);
drop schema contact;
drop schema contact
cascade
;
drop table account, person;
drop table account, person;
select extract(hour from timestamp '2001-02-03 14:15:16');
select extract(hour from timestamp '2001-02-03 14:15:16');
...
@@ -554,8 +554,8 @@ create table b.test(id int);
...
@@ -554,8 +554,8 @@ create table b.test(id int);
insert into b.test values(2);
insert into b.test values(2);
select a.test.id + b.test.id from a.test, b.test;
select a.test.id + b.test.id from a.test, b.test;
> 3;
> 3;
drop schema a;
drop schema a
cascade
;
drop schema b;
drop schema b
cascade
;
select date '+0011-01-01';
select date '+0011-01-01';
> 0011-01-01;
> 0011-01-01;
...
@@ -575,7 +575,7 @@ select TEST_SCHEMA.TEST_SEQ.CURRVAL;
...
@@ -575,7 +575,7 @@ select TEST_SCHEMA.TEST_SEQ.CURRVAL;
> 0;
> 0;
select TEST_SCHEMA.TEST_SEQ.nextval;
select TEST_SCHEMA.TEST_SEQ.nextval;
> 1;
> 1;
drop schema TEST_SCHEMA;
drop schema TEST_SCHEMA
cascade
;
create table test(id int);
create table test(id int);
create trigger TEST_TRIGGER before insert on test call "org.h2.test.db.TestTriggersConstraints";
create trigger TEST_TRIGGER before insert on test call "org.h2.test.db.TestTriggersConstraints";
...
@@ -635,7 +635,7 @@ select remarks from information_schema.schemata where schema_name = 'TESTS';
...
@@ -635,7 +635,7 @@ select remarks from information_schema.schemata where schema_name = 'TESTS';
> Test Schema;
> Test Schema;
select remarks from information_schema.sequences where sequence_name = 'WALK';
select remarks from information_schema.sequences where sequence_name = 'WALK';
> Walker;
> Walker;
drop schema tests;
drop schema tests
cascade
;
@reconnect;
@reconnect;
create constant abc value 1;
create constant abc value 1;
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论