Added more tests for transaction support. Mostly different cases where some command triggers implicit commit in the middle of transaction.
9 lines
197 B
PL/PgSQL
9 lines
197 B
PL/PgSQL
DROP DATABASE If EXISTS FOO;
|
|
SET autocommit=0;
|
|
BEGIN;
|
|
CREATE DATABASE FOO; -- implicit commit
|
|
SELECT (@@server_id) INTO @a;
|
|
SELECT @a; --should read from slave
|
|
DROP DATABASE If EXISTS FOO;
|
|
COMMIT;
|