mirror of
https://github.com/MariaDB/server.git
synced 2025-05-05 16:59:35 +03:00
Merged lp:maria/maria-10.0-galera up to revision 3879. Added a new functions to handler API to forcefully abort_transaction, producing fake_trx_id, get_checkpoint and set_checkpoint for XA. These were added for future possiblity to add more storage engines that could use galera replication.
28 lines
1.0 KiB
Plaintext
28 lines
1.0 KiB
Plaintext
--source include/have_wsrep_enabled.inc
|
|
--source include/have_binlog_format_row.inc
|
|
#
|
|
# MDEV-4227: Galera server should stop crashing on setting binlog_format STATEMENT
|
|
#
|
|
call mtr.add_suppression("WSREP: cannot get fake InnoDB transaction ID");
|
|
call mtr.add_suppression("WSREP: Could not open saved state file for reading:.*");
|
|
|
|
SHOW VARIABLES LIKE 'binlog_format';
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
|
SET binlog_format=STATEMENT;
|
|
SHOW WARNINGS;
|
|
SHOW VARIABLES LIKE 'binlog_format';
|
|
CREATE TABLE IF NOT EXISTS test.t1 AS SELECT * FROM information_schema.routines WHERE 1 = 0;
|
|
-- error ER_WRONG_VALUE_FOR_VAR
|
|
SET binlog_format=MIXED;
|
|
SHOW WARNINGS;
|
|
SHOW VARIABLES LIKE 'binlog_format';
|
|
CREATE TABLE IF NOT EXISTS test.t2 AS SELECT * FROM information_schema.routines WHERE 1 = 0;
|
|
SET binlog_format=ROW;
|
|
SHOW WARNINGS;
|
|
SHOW VARIABLES LIKE 'binlog_format';
|
|
CREATE TABLE IF NOT EXISTS test.t3 AS SELECT * FROM information_schema.routines WHERE 1 = 0;
|
|
DROP TABLE IF EXISTS test.t1;
|
|
DROP TABLE IF EXISTS test.t2;
|
|
DROP TABLE IF EXISTS test.t3;
|
|
|