*** Bug #27574 ***
SET @@storage_engine = 'Falcon';
DROP TABLE IF EXISTS t1;
DROP TABLE IF EXISTS t2;
CREATE TABLE t1 (a int);
CREATE TABLE t2 (a int);
CREATE TRIGGER t1_bu BEFORE UPDATE ON t1 
FOR EACH ROW UPDATE t2 set a = 2 WHERE a = 1;
SET @@autocommit = 0;
INSERT INTO t1 VALUES (0);
INSERT INTO t2 VALUES (0);
COMMIT;
UPDATE t1 SET a = -1;
SELECT count(*) FROM t1;
count(*)
1
SELECT count(*) FROM t2 WHERE a = 0;
count(*)
1
COMMIT;
DROP TABLE t1;
DROP TABLE t2;
