~ubuntu-branches/ubuntu/precise/mysql-5.1/precise

« back to all changes in this revision

Viewing changes to mysql-test/suite/binlog/r/binlog_sql_mode.result

  • Committer: Bazaar Package Importer
  • Author(s): Norbert Tretkowski
  • Date: 2010-03-17 14:56:02 UTC
  • Revision ID: james.westby@ubuntu.com-20100317145602-x7e30l1b2sb5s6w6
Tags: upstream-5.1.45
ImportĀ upstreamĀ versionĀ 5.1.45

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
stop slave;
 
2
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
3
reset master;
 
4
reset slave;
 
5
drop table if exists t1,t2,t3,t4,t5,t6,t7,t8,t9;
 
6
start slave;
 
7
SET @old_sql_mode=  @@global.sql_mode;
 
8
SET @old_binlog_format=@@session.binlog_format;
 
9
SET SESSION sql_mode=8;
 
10
Initialization 
 
11
RESET MASTER;
 
12
CREATE TABLE t1 (id INT);
 
13
CREATE PROCEDURE testProc() SELECT * FROM t1;
 
14
CREATE VIEW testView as SELECT * from t1;
 
15
CREATE FUNCTION testFunc()
 
16
RETURNS INT
 
17
BEGIN
 
18
return 1;
 
19
END;|
 
20
CREATE TRIGGER testTrig BEFORE INSERT ON t1
 
21
FOR EACH ROW BEGIN
 
22
UPDATE t1 SET id = id +1;
 
23
END;|
 
24
CREATE EVENT testEvent ON SCHEDULE
 
25
EVERY 1 DAY
 
26
DO
 
27
BEGIN
 
28
UPDATE t1 SET id = id +1;
 
29
END;|
 
30
Chceck Result
 
31
select
 
32
(@a:=load_file("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug39526.binlog"))
 
33
is not null;
 
34
(@a:=load_file("MYSQLTEST_VARDIR/tmp/mysqlbinlog_bug39526.binlog"))
 
35
is not null
 
36
1
 
37
*** String sql_mode=0 is found: 0 ***
 
38
Clean Up
 
39
DROP PROCEDURE testProc;
 
40
DROP FUNCTION testFunc;
 
41
DROP TRIGGER testTrig;
 
42
DROP EVENT testEvent;
 
43
DROP VIEW testView;
 
44
DROP TABLE t1;
 
45
SET @@global.sql_mode= @old_sql_mode;
 
46
SET @@session.binlog_format=@old_binlog_format;