mirror of
https://github.com/MariaDB/server.git
synced 2025-01-23 07:14:17 +01:00
6a7925a262
Replacing binlog_row_based_if_mixed with variable binlog_stmt_flags holding several flags and adding member functions to manipulate the flags. Added code to generate a warning when an attempt to log an unsafe statement to the binary log was made. The warning is both pushed to the SHOW WARNINGS table and written to the error log. The prevent flooding the error log, the warning is just written to the error log once per open session.
16 lines
397 B
Text
16 lines
397 B
Text
# Test to check that a warning is generated for unsafe statements
|
|
# executed under statement mode logging.
|
|
|
|
SET BINLOG_FORMAT=STATEMENT;
|
|
|
|
CREATE TABLE t1 (a CHAR(40));
|
|
CREATE TABLE t2 (a INT AUTO_INCREMENT PRIMARY KEY);
|
|
CREATE TABLE t3 (b INT AUTO_INCREMENT PRIMARY KEY);
|
|
CREATE VIEW v1(a,b) AS SELECT a,b FROM t2,t3;
|
|
|
|
INSERT INTO t1 SELECT UUID();
|
|
query_vertical SHOW WARNINGS;
|
|
|
|
DROP TABLE t1;
|
|
|
|
|