提交 d6b8497f authored 作者: Evgenij Ryazanov's avatar Evgenij Ryazanov

Fix test failures

上级 0deebe1e
......@@ -388,7 +388,7 @@ public class TestRights extends TestBase {
execute("alter user test1 admin false");
assertThrows(ErrorCode.CANNOT_DROP_2, stat).
execute("drop user test1");
stat.execute("drop schema b");
stat.execute("drop schema b cascade");
stat.execute("alter user test1 admin false");
stat.execute("drop user test1");
conn.close();
......@@ -451,7 +451,7 @@ public class TestRights extends TestBase {
executeSuccess("INSERT INTO S.TEST (ID, NAME) VALUES (42, 'Adams')");
executeSuccess("UPDATE S.TEST Set NAME = 'Douglas'");
executeSuccess("DELETE FROM S.TEST");
executeSuccess("DROP SCHEMA S");
executeSuccess("DROP SCHEMA S CASCADE");
// ...and on other schemata
executeSuccess("CREATE TABLE TEST(ID INT PRIMARY KEY, NAME VARCHAR)");
......
......@@ -258,7 +258,7 @@ select nextval('"test"."report_id_seq"');
> 2;
select nextval('test.report_id_seq');
> 3;
drop schema test;
drop schema test cascade;
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);
......@@ -346,14 +346,14 @@ create schema Contact;
CREATE TABLE Account (id BIGINT);
CREATE TABLE Person (id BIGINT, FOREIGN KEY (id) REFERENCES Account(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;
create schema Contact;
CREATE TABLE Account (id BIGINT primary key);
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);
drop schema contact;
drop schema contact cascade;
drop table account, person;
select extract(hour from timestamp '2001-02-03 14:15:16');
......@@ -554,8 +554,8 @@ create table b.test(id int);
insert into b.test values(2);
select a.test.id + b.test.id from a.test, b.test;
> 3;
drop schema a;
drop schema b;
drop schema a cascade;
drop schema b cascade;
select date '+0011-01-01';
> 0011-01-01;
......@@ -575,7 +575,7 @@ select TEST_SCHEMA.TEST_SEQ.CURRVAL;
> 0;
select TEST_SCHEMA.TEST_SEQ.nextval;
> 1;
drop schema TEST_SCHEMA;
drop schema TEST_SCHEMA cascade;
create table test(id int);
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';
> Test Schema;
select remarks from information_schema.sequences where sequence_name = 'WALK';
> Walker;
drop schema tests;
drop schema tests cascade;
@reconnect;
create constant abc value 1;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论