summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqldump.test
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2006-05-19 16:21:32 +0500
committerunknown <ramil@mysql.com>2006-05-19 16:21:32 +0500
commitc41b767a264ba74cd571d9ce0d9983643a4e1c86 (patch)
tree9e734af56bdce072437cc346b2dfd2483a69bf22 /mysql-test/t/mysqldump.test
parent0138267b45b8447ec263294302391179bc9c216e (diff)
downloadmariadb-git-c41b767a264ba74cd571d9ce0d9983643a4e1c86.tar.gz
Fix for bug #18536: mysqldump does not maintain table orders as per --tables option
client/mysqldump.c: Fix for bug #18536: mysqldump does not maintain table orders as per --tables option - use list to store table names instead of hash. mysql-test/r/mysqldump.result: Fix for bug #18536: mysqldump does not maintain table orders as per --tables option - test result. mysql-test/t/mysqldump.test: Fix for bug #18536: mysqldump does not maintain table orders as per --tables option - test case.
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r--mysql-test/t/mysqldump.test13
1 files changed, 12 insertions, 1 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test
index 3b83f8fea01..f24899fd8ae 100644
--- a/mysql-test/t/mysqldump.test
+++ b/mysql-test/t/mysqldump.test
@@ -2,7 +2,7 @@
--source include/not_embedded.inc
--disable_warnings
-DROP TABLE IF EXISTS t1, `"t"1`;
+DROP TABLE IF EXISTS t1, `"t"1`, t2, t3;
--enable_warnings
# XML output
@@ -677,4 +677,15 @@ show create table `t1`;
drop table `t1`;
+#
+# Bug #18536: wrong table order
+#
+
+create table t1(a int);
+create table t2(a int);
+create table t3(a int);
+--error 6
+--exec $MYSQL_DUMP --skip-comments --force --no-data test t3 t1 non_existing t2
+drop table t1, t2, t3;
+
--echo End of 4.1 tests