summaryrefslogtreecommitdiff
path: root/mysql-test
diff options
context:
space:
mode:
authorRohit Kalhans <rohit.kalhans@oracle.com>2012-02-13 15:37:50 +0530
committerRohit Kalhans <rohit.kalhans@oracle.com>2012-02-13 15:37:50 +0530
commitba7d726c4812ebba43ad138d67b10e38f81b0b79 (patch)
tree998ad5e054b8de955f46617652f0890d0a8808bd /mysql-test
parent701cef2d35c700e8bef1735703a71c48a09c6238 (diff)
downloadmariadb-git-ba7d726c4812ebba43ad138d67b10e38f81b0b79.tar.gz
fixing test failure on pb2.
Diffstat (limited to 'mysql-test')
-rw-r--r--mysql-test/r/multi_update.result4
-rw-r--r--mysql-test/t/multi_update.test2
2 files changed, 2 insertions, 4 deletions
diff --git a/mysql-test/r/multi_update.result b/mysql-test/r/multi_update.result
index 9b66ddb37b4..3ea832852f6 100644
--- a/mysql-test/r/multi_update.result
+++ b/mysql-test/r/multi_update.result
@@ -126,8 +126,6 @@ ID ParId tst tst1
2 2 NULL NULL
3 3 NULL NULL
UPDATE t2, t1 SET t2.tst = t1.tst, t2.tst1 = t1.tst1 WHERE t2.ParId = t1.Id;
-Warnings:
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave.
select * from t2;
ID ParId tst tst1
1 1 MySQL MySQL AB
@@ -352,8 +350,6 @@ drop table t1,t2;
create table t1 (a int not null auto_increment primary key, b int not null);
insert into t1 (b) values (1),(2),(3),(4);
update t1, t1 as t2 set t1.b=t2.b+1 where t1.a=t2.a;
-Warnings:
-Note 1592 Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT. Statements writing to a table with an auto-increment column after selecting from another table are unsafe because the order in which rows are retrieved determines what (if any) rows will be written. This order cannot be predicted and may differ on master and the slave.
select * from t1;
a b
1 2
diff --git a/mysql-test/t/multi_update.test b/mysql-test/t/multi_update.test
index 6742b2c7b94..e5f5f5806ef 100644
--- a/mysql-test/t/multi_update.test
+++ b/mysql-test/t/multi_update.test
@@ -140,6 +140,7 @@ INSERT INTO t2(ParId) VALUES(1), (2), (3);
select * from t2;
+--disable_warnings ONCE
UPDATE t2, t1 SET t2.tst = t1.tst, t2.tst1 = t1.tst1 WHERE t2.ParId = t1.Id;
select * from t2;
@@ -297,6 +298,7 @@ drop table t1,t2;
create table t1 (a int not null auto_increment primary key, b int not null);
insert into t1 (b) values (1),(2),(3),(4);
+--disable_warnings ONCE
update t1, t1 as t2 set t1.b=t2.b+1 where t1.a=t2.a;
select * from t1;
drop table t1;