~sergei.glushchenko/percona-server/55-tp

« back to all changes in this revision

Viewing changes to mysql-test/percona_suppress_log_warning_1592.result

  • Committer: Oleg Tsarev
  • Date: 2010-12-09 18:30:58 UTC
  • Revision ID: oleg.tsarev@percona.com-20101209183058-1mq1qrgjjkz3qxof
propogate Oleg's patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
SET @old_log_warnings = @@log_warnings;
 
2
SET @old_suppress_log_warning_1592 = @@suppress_log_warning_1592;
 
3
DROP TABLE IF EXISTS t1;
 
4
CREATE TABLE t1 (a VARCHAR(36), b VARCHAR(20));
 
5
SET GLOBAL SUPPRESS_LOG_WARNING_1592 = 0;
 
6
SET GLOBAL LOG_WARNINGS = 0;
 
7
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
 
8
Warnings:
 
9
Note    1592    Statement may not be safe to log in statement format.
 
10
SET GLOBAL LOG_WARNINGS = 1;
 
11
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
 
12
Warnings:
 
13
Note    1592    Statement may not be safe to log in statement format.
 
14
SET GLOBAL SUPPRESS_LOG_WARNING_1592 = 1;
 
15
SET GLOBAL LOG_WARNINGS = 0;
 
16
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
 
17
Warnings:
 
18
Note    1592    Statement may not be safe to log in statement format.
 
19
SET GLOBAL LOG_WARNINGS = 1;
 
20
INSERT INTO t1 VALUES(UUID(), 'suppress_1592');
 
21
Warnings:
 
22
Note    1592    Statement may not be safe to log in statement format.
 
23
DROP TABLE t1;
 
24
SET GLOBAL log_warnings = @old_log_warnings;
 
25
SET GLOBAL suppress_log_warning_1592 = @old_suppress_log_warning_1592;
 
26
# Count the number of times the "Unsafe" message was printed
 
27
# to the error log.
 
28
Occurrences: 1