提交 fbcfd32b authored 作者: Thomas Mueller's avatar Thomas Mueller

The statement "script drop" create a script that couldn't be executed if a table…

The statement "script drop" create a script that couldn't be executed if a table contained a reference to a user defined function.
上级 24817dcb
......@@ -2758,7 +2758,7 @@ script NODATA NOPASSWORDS NOSETTINGS drop;
> -- 0 +/- SELECT COUNT(*) FROM PUBLIC.A;
> CREATE MEMORY TABLE PUBLIC.A( K10 BLOB(10240), M20 BLOB(20971520), G30 CLOB(32212254720) );
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN;
> DROP TABLE IF EXISTS PUBLIC.A;
> DROP TABLE IF EXISTS PUBLIC.A CASCADE;
> rows: 4
create table b();
......@@ -4058,7 +4058,7 @@ script NOPASSWORDS NOSETTINGS drop;
> CREATE SEQUENCE S.SEQ START WITH 10;
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN;
> DROP SEQUENCE IF EXISTS S.SEQ;
> DROP TABLE IF EXISTS S.TEST;
> DROP TABLE IF EXISTS S.TEST CASCADE;
> rows: 9
drop trigger s.test_trigger;
......@@ -4091,7 +4091,7 @@ script NOPASSWORDS NOSETTINGS drop;
> CREATE INDEX PUBLIC.IDX_N_ID ON PUBLIC.TEST(NAME, I);
> CREATE MEMORY TABLE PUBLIC.TEST( I INT NOT NULL, NAME VARCHAR(255), Y INT AS (I + 1) );
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN;
> DROP TABLE IF EXISTS PUBLIC.TEST;
> DROP TABLE IF EXISTS PUBLIC.TEST CASCADE;
> INSERT INTO PUBLIC.TEST(I, NAME, Y) VALUES (1, 'Hello', 2);
> rows: 8
......@@ -4439,7 +4439,7 @@ script NODATA NOPASSWORDS NOSETTINGS drop;
> CREATE SEQUENCE PUBLIC.TEST_SEQ START WITH 1;
> CREATE USER IF NOT EXISTS SA PASSWORD '' ADMIN;
> DROP SEQUENCE IF EXISTS PUBLIC.TEST_SEQ;
> DROP TABLE IF EXISTS PUBLIC.TEST;
> DROP TABLE IF EXISTS PUBLIC.TEST CASCADE;
> rows: 7
drop sequence test_seq;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论