summaryrefslogtreecommitdiff
path: root/mysql-test/r/view.result
diff options
context:
space:
mode:
authorunknown <gkodinov/kgeorge@macbook.gmz>2006-07-31 20:56:06 +0300
committerunknown <gkodinov/kgeorge@macbook.gmz>2006-07-31 20:56:06 +0300
commitb74cb62348c2815c63452dd4d6c50c2510302a6e (patch)
tree28158b0884d43248238a4a64cea03976bb1963ee /mysql-test/r/view.result
parent667c73be65bc1c1a6f77d6e2bb140cdddae9ec73 (diff)
downloadmariadb-git-b74cb62348c2815c63452dd4d6c50c2510302a6e.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. mysql-test/r/view.result: Bug #11551: Asymmetric + undocumented behaviour of DROP VIEW and DROP TABLE - test case - changed error message mysql-test/t/view.test: Bug #11551: Asymmetric + undocumented behaviour of DROP VIEW and DROP TABLE - test case sql/sql_view.cc: Bug #11551: Asymmetric + undocumented behaviour of DROP VIEW and DROP TABLE - made DROP VIEW to continue on error and report an aggregated error
Diffstat (limited to 'mysql-test/r/view.result')
-rw-r--r--mysql-test/r/view.result21
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;