summaryrefslogtreecommitdiff
path: root/mysql-test/suite/galera/r/galera_toi_lock_shared.result
blob: 950c4d83c700f1fe904370cf70e3ecea3edf2050 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
CREATE TABLE t1 (id INT PRIMARY KEY) ENGINE=InnoDB;
INSERT INTO t1 VALUES (1);
connection node_2;
ALTER TABLE t1 ADD COLUMN f2 INTEGER, LOCK=SHARED;
connection node_1;
INSERT INTO t1 VALUES (2, 2);
SELECT COUNT(*) = 2 FROM t1;
COUNT(*) = 2
1
connection node_2;
INSERT INTO t1 VALUES (3, 3);
SELECT COUNT(*) = 3 FROM t1;
COUNT(*) = 3
1
DROP TABLE t1;