mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
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.
This commit is contained in:
@@ -1755,6 +1755,22 @@ 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 #
|
||||
|
||||
Reference in New Issue
Block a user