Query classifier ignored implicit commits in cases of write commands. Fixed it.

Added more tests for transaction support. Mostly different cases where some command triggers implicit commit in the middle of transaction.
This commit is contained in:
VilhoRaatikka
2014-03-28 00:16:18 +02:00
parent 40b7ce6d43
commit 7c3a354fd8
11 changed files with 184 additions and 43 deletions

View File

@ -0,0 +1,9 @@
USE test;
DROP TABLE IF EXISTS T1;
SET autocommit=0;
BEGIN;
CREATE TABLE T1 (id integer); -- implicit commit
SELECT (@@server_id) INTO @a;
SELECT @a; --should read from slave
DROP TABLE IF EXISTS T1;
COMMIT;