summaryrefslogtreecommitdiffstats
path: root/mysql-test/suite/galera/t/lp1276424.test
blob: a37e950b6a18c98f029a7caa7aeccb3ffbdfe579 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#
# LP:1276424 Deadlock with insertion of NULL unique ke
#

--source include/galera_cluster.inc
--source include/have_innodb.inc

CREATE TABLE t1 (f1 INT DEFAULT NULL, UNIQUE KEY i1 (f1)) ENGINE=InnoDB;

INSERT INTO t1 VALUES (NULL);
INSERT INTO t1 VALUES (NULL);

--connection node_2
SELECT COUNT(*) = 2 FROM t1;
SELECT f1 IS NULL FROM t1;

DROP TABLE t1;