Debian Codegraph @

mysql-test/suite/rpl/t/rpl_alter_nonexisting.test

raw
1 --echo #
2 --echo # Bug #22086705: ALTER NOT EXISTING DATABASE BREAKS REPLICATION
3 --echo #
4 --echo # Problem: Binlog is written before doing the change in the dd.
5 --echo # Checking for existence is part of the dd update.
6 --echo #
7 --echo # Fix: Do the change in the dd before writing binlog. Non-existing
8 --echo # databases will cause an early exit prior to writing binlog.
9 --echo #
10 --echo # Test written by Matthias Leich.
11
12 --source include/master-slave.inc
13 --disable_abort_on_error
14 --connection master
15 ALTER DATABASE does_not_exist CHARACTER SET utf8;
16 --source include/sync_slave_sql_with_master.inc
17 --connection master
18 --source include/sync_slave_sql_with_master.inc
19 --connection master
20 --source include/rpl_end.inc