
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.
16 lines
351 B
PL/PgSQL
16 lines
351 B
PL/PgSQL
USE test;
|
|
DROP TABLE IF EXISTS T1;
|
|
DROP EVENT IF EXISTS myevent;
|
|
SET autocommit=1;
|
|
BEGIN;
|
|
CREATE TABLE T1 (id integer);
|
|
CREATE EVENT myevent
|
|
ON SCHEDULE AT CURRENT_TIMESTAMP + INTERVAL 1 HOUR
|
|
DO
|
|
UPDATE t1 SET id = id + 1;
|
|
SELECT (@@server_id) INTO @a;
|
|
SELECT @a; --should read from slave
|
|
DROP TABLE IF EXISTS T1;
|
|
DROP EVENT IF EXISTS myevent;
|
|
COMMIT;
|