summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqldump.test
diff options
context:
space:
mode:
authorunknown <msvensson@neptunus.(none)>2006-02-21 15:05:58 +0100
committerunknown <msvensson@neptunus.(none)>2006-02-21 15:05:58 +0100
commitc9d8cb49baff94e3647a38e80eb8cab9103592d6 (patch)
treeba955056052ab3fb775e78ce5c7a7981e2171025 /mysql-test/t/mysqldump.test
parent3a9f0e761709a876b509230d27833f82a260cdf2 (diff)
parent15c37025987829150a164ed93dcf0aa7f9c675cf (diff)
downloadmariadb-git-c9d8cb49baff94e3647a38e80eb8cab9103592d6.tar.gz
Merge neptunus.(none):/home/msvensson/mysql/bug14871/my50-bug14871
into neptunus.(none):/home/msvensson/mysql/mysql-5.0 client/mysqldump.c: Auto merged mysql-test/r/mysqldump.result: Auto merged mysql-test/t/mysqldump.test: Auto merged
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r--mysql-test/t/mysqldump.test30
1 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test
index 4e4dc882d4a..8521b160f5a 100644
--- a/mysql-test/t/mysqldump.test
+++ b/mysql-test/t/mysqldump.test
@@ -1036,3 +1036,33 @@ insert into t1 values ('','');
drop table t1;
# End of 4.1 tests
+
+#
+# Bug 14871 Invalid view dump output
+#
+
+create table t1 (a int);
+insert into t1 values (289), (298), (234), (456), (789);
+create definer = CURRENT_USER view v1 as select * from t1;
+create SQL SECURITY INVOKER view v2 as select * from t1;
+create view v3 as select * from t1 with local check option;
+create algorithm=merge view v4 as select * from t1 with cascaded check option;
+create algorithm =temptable view v5 as select * from t1;
+
+# dump tables and views
+--exec $MYSQL_DUMP test > var/tmp/bug14871.sql
+
+# drop the db, tables and views
+drop table t1;
+drop view v1, v2, v3, v4, v5;
+
+# Reload dump
+--exec $MYSQL test < var/tmp/bug14871.sql
+
+# check that all tables and views could be created
+show tables;
+select * from v3 order by a;
+
+drop table t1;
+drop view v1, v2, v3, v4, v5;
+