mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
29 lines
1.1 KiB
Text
29 lines
1.1 KiB
Text
|
SET @old_log_warnings = @@log_warnings;
|
||
|
SET @old_suppress_log_warning_1592 = @@suppress_log_warning_1592;
|
||
|
DROP TABLE IF EXISTS t1;
|
||
|
CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20));
|
||
|
SET GLOBAL SUPPRESS_LOG_WARNING_1592 = 0;
|
||
|
SET GLOBAL LOG_WARNINGS = 0;
|
||
|
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
|
||
|
Warnings:
|
||
|
Note 1592 Statement may not be safe to log in statement format.
|
||
|
SET GLOBAL LOG_WARNINGS = 1;
|
||
|
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
|
||
|
Warnings:
|
||
|
Note 1592 Statement may not be safe to log in statement format.
|
||
|
SET GLOBAL SUPPRESS_LOG_WARNING_1592 = 1;
|
||
|
SET GLOBAL LOG_WARNINGS = 0;
|
||
|
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
|
||
|
Warnings:
|
||
|
Note 1592 Statement may not be safe to log in statement format.
|
||
|
SET GLOBAL LOG_WARNINGS = 1;
|
||
|
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
|
||
|
Warnings:
|
||
|
Note 1592 Statement may not be safe to log in statement format.
|
||
|
DROP TABLE t1;
|
||
|
SET GLOBAL log_warnings = @old_log_warnings;
|
||
|
SET GLOBAL suppress_log_warning_1592 = @old_suppress_log_warning_1592;
|
||
|
# Count the number of times the "Unsafe" message was printed
|
||
|
# to the error log.
|
||
|
Occurrences: 1
|