Debian Codegraph @

mysql-test/suite/galera/r/galera_var_certify_nonPK_off.result

raw
1 connection node_2;
2 connection node_1;
3 SET GLOBAL wsrep_certify_nonPK = OFF;
4 connection node_2;
5 SET GLOBAL wsrep_certify_nonPK = OFF;
6 connection node_1;
7 CREATE TABLE t1 (f1 INTEGER) ENGINE=InnoDB /* Table has no primary key */;
8 CREATE TABLE t2 (f1 INTEGER PRIMARY KEY) ENGINE=InnoDB;
9 INSERT INTO t1 VALUES (1), (2);
10 Got one of the listed errors
11 INSERT INTO t2 VALUES (1), (2);
12 UPDATE t2 SET f1 = 3 WHERE f1 = 1;
13 connection node_2;
14 SELECT COUNT(*) = 0 FROM t1;
15 COUNT(*) = 0
16 1
17 SELECT COUNT(*) = 2 FROM t2;
18 COUNT(*) = 2
19 1
20 SELECT COUNT(*) = 1 FROM t2 WHERE f1 = 3;
21 COUNT(*) = 1
22 1
23 connection node_1;
24 SET GLOBAL wsrep_certify_nonPK = 1;
25 connection node_2;
26 SET GLOBAL wsrep_certify_nonPK = 1;
27 DROP TABLE t1;
28 DROP TABLE t2;
29 connection node_1;
30 call mtr.add_suppression("SQL statement was ineffective");
31 disconnect node_2;
32 disconnect node_1;