mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 13:32:33 +01:00
211383388e
DROP DATABASE statement writes changes to mysql.proc table under RBR When replicating a DROP DATABASE statement with a database holding stored procedures, the changes to the mysql.proc table was recorded in the binary log under row-based replication. With this patch, the thread uses statement-logging format for the duration of the DROP DATABASE statement. The logging format is (already) reset at the end of the statement, so no additional code for resetting the logging format is necessary. sql/sql_db.cc: Clearing the row-based statement flag for the DROP DATABASE statement since it should always be replicated as a statement. mysql-test/extra/binlog_tests/database.test: New BitKeeper file ``mysql-test/extra/binlog_tests/database.test'' mysql-test/suite/binlog/r/binlog_database.result: New BitKeeper file ``mysql-test/suite/binlog/r/binlog_database.result'' mysql-test/suite/binlog/t/binlog_database.test: New BitKeeper file ``mysql-test/suite/binlog/t/binlog_database.test''
12 lines
369 B
Text
12 lines
369 B
Text
# A wrapper to test that dropping a database is binlogged
|
|
# correctly. We test all three modes in the same file to avoid
|
|
# unecessary server restarts.
|
|
|
|
set binlog_format=statement;
|
|
source extra/binlog_tests/database.test;
|
|
set binlog_format=mixed;
|
|
source extra/binlog_tests/database.test;
|
|
set binlog_format=row;
|
|
source extra/binlog_tests/database.test;
|
|
|
|
show databases;
|