diff options
author | gkodinov/kgeorge@macbook.gmz <> | 2006-07-31 20:56:06 +0300 |
---|---|---|
committer | gkodinov/kgeorge@macbook.gmz <> | 2006-07-31 20:56:06 +0300 |
commit | 8084a9e5fba2d3540dcb7766b6aedf5a31d133fa (patch) | |
tree | 28158b0884d43248238a4a64cea03976bb1963ee /mysql-test/r/view.result | |
parent | 21e6d13147446ccbf0dcb69ac1b99c286ee14d8a (diff) | |
download | mariadb-git-8084a9e5fba2d3540dcb7766b6aedf5a31d133fa.tar.gz |
Bug #11551: Asymmetric + undocumented behaviour of DROP VIEW and DROP TABLE
made DROP VIEW to continue on error and report an aggregated error
at its end. This makes it similar to DROP TABLE.
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r-- | mysql-test/r/view.result | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/mysql-test/r/view.result b/mysql-test/r/view.result index b2c65423b59..2cb2588428f 100644 --- a/mysql-test/r/view.result +++ b/mysql-test/r/view.result @@ -193,7 +193,7 @@ c d 2 5 3 10 drop view v100; -ERROR 42S02: Unknown table 'test.v100' +ERROR 42S02: Unknown table 'v100' drop view t1; ERROR HY000: 'test.t1' is not VIEW drop table v1; @@ -2820,3 +2820,22 @@ b c DROP VIEW v1, v2; DROP TABLE t1; +CREATE TABLE t1 (id INT); +CREATE VIEW v1 AS SELECT id FROM t1; +SHOW TABLES; +Tables_in_test +t1 +v1 +DROP VIEW v2,v1; +ERROR 42S02: Unknown table 'v2' +SHOW TABLES; +Tables_in_test +t1 +CREATE VIEW v1 AS SELECT id FROM t1; +DROP VIEW t1,v1; +ERROR HY000: 'test.t1' is not VIEW +SHOW TABLES; +Tables_in_test +t1 +DROP TABLE t1; +DROP VIEW IF EXISTS v1; |