summaryrefslogtreecommitdiff
path: root/mysql-test/t/mysqldump.test
diff options
context:
space:
mode:
authorgshchepa/uchum@gleb.loc <>2007-09-05 11:35:29 +0500
committergshchepa/uchum@gleb.loc <>2007-09-05 11:35:29 +0500
commitadfbea368dc13412d901f6dac2ef8e5ec6c0822a (patch)
tree54adc23f3906efe6fc933b722353efcb5c830e94 /mysql-test/t/mysqldump.test
parentc4811d67f7288ef74c795c9a6d7cf9aee2eab98b (diff)
downloadmariadb-git-adfbea368dc13412d901f6dac2ef8e5ec6c0822a.tar.gz
Fixed bug #29938.
mysqldump --skip-events --all-databases dumped data of the mysqld.event table, and during the restoration from this dump events were created in spite of the --skip-events option. The mysqldump client has been modified to ignore mysql.event table data in case of --skip-events options.
Diffstat (limited to 'mysql-test/t/mysqldump.test')
-rw-r--r--mysql-test/t/mysqldump.test16
1 files changed, 16 insertions, 0 deletions
diff --git a/mysql-test/t/mysqldump.test b/mysql-test/t/mysqldump.test
index 171434f9dfd..0440b0fb63a 100644
--- a/mysql-test/t/mysqldump.test
+++ b/mysql-test/t/mysqldump.test
@@ -1756,5 +1756,21 @@ DROP DATABASE mysqldump_test_db;
###########################################################################
--echo #
+--echo # BUG#29938: wrong behavior of mysqldump --skip-events
+--echo # with --all-databases
+--echo #
+
+TRUNCATE mysql.event;
+
+USE test;
+CREATE event e29938 ON SCHEDULE AT '2035-12-31 20:01:23' DO SET @bug29938=29938;
+SHOW EVENTS;
+--exec $MYSQL_DUMP --skip-events --all-databases > $MYSQLTEST_VARDIR/tmp/bug29938.sql
+
+TRUNCATE mysql.event;
+--exec $MYSQL < $MYSQLTEST_VARDIR/tmp/bug29938.sql
+SHOW EVENTS;
+
+--echo #
--echo # End of 5.1 tests
--echo #