| 1 |
--source include/have_innodb.inc |
| 2 |
--source include/have_wsrep_provider.inc |
| 3 |
--source include/have_binlog_format_row.inc |
| 4 |
|
| 5 |
call mtr.add_suppression("WSREP: MariaDB Galera does not support binlog format"); |
| 6 |
call mtr.add_suppression("WSREP: Cannot get fake transaction ID from storage engine."); |
| 7 |
|
| 8 |
--echo # |
| 9 |
--echo # MDEV-4227: Galera server should stop crashing on setting binlog_format STATEMENT |
| 10 |
--echo # |
| 11 |
|
| 12 |
SHOW VARIABLES LIKE 'binlog_format'; |
| 13 |
SET binlog_format=STATEMENT; |
| 14 |
SHOW WARNINGS; |
| 15 |
SHOW VARIABLES LIKE 'binlog_format'; |
| 16 |
CREATE TABLE IF NOT EXISTS test.t1 AS SELECT * FROM information_schema.routines WHERE 1 = 0; |
| 17 |
SET binlog_format=MIXED; |
| 18 |
SHOW WARNINGS; |
| 19 |
SHOW VARIABLES LIKE 'binlog_format'; |
| 20 |
CREATE TABLE IF NOT EXISTS test.t2 AS SELECT * FROM information_schema.routines WHERE 1 = 0; |
| 21 |
SET binlog_format=ROW; |
| 22 |
SHOW WARNINGS; |
| 23 |
SHOW VARIABLES LIKE 'binlog_format'; |
| 24 |
CREATE TABLE IF NOT EXISTS test.t3 AS SELECT * FROM information_schema.routines WHERE 1 = 0; |
| 25 |
DROP TABLE IF EXISTS test.t1; |
| 26 |
DROP TABLE IF EXISTS test.t2; |
| 27 |
DROP TABLE IF EXISTS test.t3; |
| 28 |
|
| 29 |
--echo # |
| 30 |
--echo # MDEV-7322: Option to allow setting the binlog_format with Galera |
| 31 |
--echo # |
| 32 |
|
| 33 |
-- error ER_WRONG_VALUE_FOR_VAR |
| 34 |
SET @@GLOBAL.binlog_format=STATEMENT; |
| 35 |
SHOW GLOBAL VARIABLES LIKE 'binlog_format'; |
| 36 |
|
| 37 |
-- error ER_WRONG_VALUE_FOR_VAR |
| 38 |
SET @@GLOBAL.binlog_format=MIXED; |
| 39 |
SHOW GLOBAL VARIABLES LIKE 'binlog_format'; |
| 40 |
|
| 41 |
-- error ER_WRONG_VALUE_FOR_VAR |
| 42 |
SET @@GLOBAL.binlog_format=DEFAULT; |
| 43 |
SHOW GLOBAL VARIABLES LIKE 'binlog_format'; |
| 44 |
|
| 45 |
SET @@GLOBAL.binlog_format=ROW; |
| 46 |
SHOW GLOBAL VARIABLES LIKE 'binlog_format'; |
| 47 |
|
| 48 |
--echo # End of test. |