mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 11:01:52 +01:00
6f65d2d114
Do not allow server to start if binlog_format is set to a format other than ROW. Also restrict the change of GLOBAL/SESSION binlog_format value at runtime.
23 lines
597 B
Text
23 lines
597 B
Text
#
|
|
# MDEV-6924 : Server crashed on CREATE TABLE ... SELECT
|
|
#
|
|
SET @wsrep_forced_binlog_format_saved=@@GLOBAL.wsrep_forced_binlog_format;
|
|
SET @@GLOBAL.wsrep_forced_binlog_format=STATEMENT;
|
|
SHOW VARIABLES LIKE '%log%bin%';
|
|
Variable_name Value
|
|
log_bin OFF
|
|
log_bin_trust_function_creators ON
|
|
sql_log_bin ON
|
|
USE test;
|
|
CREATE TABLE t1(i INT) ENGINE=INNODB;
|
|
INSERT INTO t1 VALUES(1);
|
|
CREATE TEMPORARY TABLE `t1_temp` AS SELECT * FROM `t1` WHERE i = 1;
|
|
SELECT * FROM t1;
|
|
i
|
|
1
|
|
SELECT * FROM t1_temp;
|
|
i
|
|
1
|
|
DROP TABLE t1;
|
|
SET @@GLOBAL.wsrep_forced_binlog_format=@wsrep_forced_binlog_format_saved;
|
|
# End of tests
|