From: Sergey Vojtovich Date: February 5 2009 1:23pm Subject: bzr commit into mysql-6.0-falcon-team branch (svoj:3004) Bug#34182 List-Archive: http://lists.mysql.com/commits/65353 X-Bug: 34182 Message-Id: <20090205132339.CA16A41CED9@june.myoffice.izhnet.ru> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7BIT #At file:///home/svoj/devel/bzr-mysql/mysql-6.0-falcon-team/ based on revid:olav@stripped 3004 Sergey Vojtovich 2009-02-05 Test case fixes. It should pass, when BUG#34182 is fixed. modified: mysql-test/suite/falcon_team/r/falcon_deadlock.result mysql-test/suite/falcon_team/t/falcon_deadlock.test === modified file 'mysql-test/suite/falcon_team/r/falcon_deadlock.result' --- a/mysql-test/suite/falcon_team/r/falcon_deadlock.result 2008-12-18 10:49:29 +0000 +++ b/mysql-test/suite/falcon_team/r/falcon_deadlock.result 2009-02-05 13:23:27 +0000 @@ -26,6 +26,7 @@ id x 0 1 COMMIT; # Switch to connection conn2 +ERROR HY000: Record has changed since last read in table 't1' ROLLBACK; # Switch to connection conn1 SELECT * FROM t1; @@ -50,10 +51,10 @@ a b 0 10 1 20 2 30 -UPDATE t2 SET a = 100 WHERE b = (SELECT x FROM t1 WHERE id = b FOR UPDATE); +UPDATE t2 SET b = 100 WHERE a = (SELECT x FROM t1 WHERE id = a FOR UPDATE); SELECT * FROM t2; a b -0 10 +0 100 1 20 2 30 SELECT * FROM t1; @@ -70,11 +71,12 @@ id x 300 300 COMMIT; # Switch to connection conn2 +ERROR HY000: Record has changed since last read in table 't1' COMMIT; # Switch to connection conn1 SELECT * FROM t1; id x -0 2 +0 1 300 300 COMMIT; DROP TABLE t1; @@ -121,11 +123,12 @@ id x 300 300 COMMIT; # Switch to connection conn2 +ERROR HY000: Record has changed since last read in table 't1' COMMIT; # Switch to connection conn1 SELECT * FROM t1; id x -0 2 +0 1 300 300 COMMIT; SELECT count(*) FROM t1; === modified file 'mysql-test/suite/falcon_team/t/falcon_deadlock.test' --- a/mysql-test/suite/falcon_team/t/falcon_deadlock.test 2008-12-18 10:49:29 +0000 +++ b/mysql-test/suite/falcon_team/t/falcon_deadlock.test 2009-02-05 13:23:27 +0000 @@ -98,7 +98,7 @@ INSERT INTO t2 VALUES (0, 10), (1, 20), COMMIT; SELECT * FROM t2; -UPDATE t2 SET a = 100 WHERE b = (SELECT x FROM t1 WHERE id = b FOR UPDATE); +UPDATE t2 SET b = 100 WHERE a = (SELECT x FROM t1 WHERE id = a FOR UPDATE); SELECT * FROM t2; SELECT * FROM t1; @@ -117,6 +117,14 @@ COMMIT; --echo # Switch to connection conn2 connection conn2; +# If we set Falcon to +# falcon_consistent_read = off +# +# we should get a +# Record has changed since last read in table 't1' +# here. Please note that falcon_consistent_read = off +# is the default setting. +--error ER_CHECKREAD --reap COMMIT; @@ -166,6 +174,14 @@ COMMIT; --echo # Switch to connection conn2 connection conn2; +# If we set Falcon to +# falcon_consistent_read = off +# +# we should get a +# Record has changed since last read in table 't1' +# here. Please note that falcon_consistent_read = off +# is the default setting. +--error ER_CHECKREAD --reap COMMIT;