mirror of
https://github.com/MariaDB/server.git
synced 2025-01-26 00:34:18 +01:00
5a7374d71b
- Don't log connection creation in galera_connect.inc
37 lines
829 B
Text
37 lines
829 B
Text
CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB;
|
|
CREATE TABLE t2 (f1 INTEGER) ENGINE=MyISAM;
|
|
CREATE TABLE t3 (f1 INTEGER) ENGINE=MyISAM;
|
|
CREATE TRIGGER tr1 BEFORE INSERT ON t1 FOR EACH ROW INSERT INTO t3 VALUES (NEW.f1);
|
|
SET AUTOCOMMIT=OFF;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
COMMIT;
|
|
connection node_2;
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
COUNT(*) = 1
|
|
1
|
|
SELECT COUNT(*) = 0 FROM t2;
|
|
COUNT(*) = 0
|
|
1
|
|
SELECT COUNT(*) = 0 FROM t2;
|
|
COUNT(*) = 0
|
|
1
|
|
connection node_1;
|
|
START TRANSACTION;
|
|
INSERT INTO t1 VALUES (1);
|
|
INSERT INTO t2 VALUES (1);
|
|
ROLLBACK;
|
|
Warnings:
|
|
Warning 1196 Some non-transactional changed tables couldn't be rolled back
|
|
connection node_2;
|
|
SELECT COUNT(*) = 1 FROM t1;
|
|
COUNT(*) = 1
|
|
1
|
|
SELECT COUNT(*) = 0 FROM t2;
|
|
COUNT(*) = 0
|
|
1
|
|
SELECT COUNT(*) = 0 FROM t2;
|
|
COUNT(*) = 0
|
|
1
|
|
DROP TABLE t1, t2, t3;
|