Fix for bug #418
Increased skygw_query_type_t to 16 bits, and corrected the way how those bit fields are checked. Added tests for cases where autocommit is disabled and corrected old tests.
This commit is contained in:
@ -1,10 +1,7 @@
|
||||
-- Read from slave after implicit COMMIT
|
||||
USE test;
|
||||
SET autocommit = 0;
|
||||
START TRANSACTION;
|
||||
CREATE TABLE IF NOT EXISTS myCity (a int, b char(20));
|
||||
INSERT INTO myCity VALUES (1, 'Milan');
|
||||
INSERT INTO myCity VALUES (2, 'London');
|
||||
COMMIT;
|
||||
DELETE FROM myCity;
|
||||
SELECT COUNT(*) FROM myCity; -- read transaction's modifications from slave
|
||||
COMMIT;
|
||||
CREATE TABLE IF NOT EXISTS T2 (id integer);
|
||||
INSERT INTO T2 VALUES (@@server_id);
|
||||
SET AUTOCOMMIT=1;
|
||||
SELECT id from T2; -- read transaction's modifications from slave
|
||||
|
Reference in New Issue
Block a user