未验证 提交 43c95d0b 编写于 作者: X xiaoguangye 提交者: GitHub

fix(mtr): Add test cases for NULL value select on UNIQUE constraint(#281) (#379)

* fix(core): Double prepare on lex unit for cts with union(#226)

fix(core): MTR + Double prepare on lex unit for ctas with union(#226)

* fix(mtr): Add test cases for NULL value select on UNIQUE constraint(#281)
Co-authored-by: Nmergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
上级 2dffcab0
use test;
CREATE TABLE t1 (f1 INT UNIQUE) ENGINE=TIANMU;
INSERT INTO t1 VALUES(1),(2),(NULL),(NULL);
SELECT * FROM t1 WHERE f1 IS NULL;
f1
NULL
NULL
SELECT * FROM t1 WHERE f1 IS NOT NULL;
f1
1
2
SELECT * FROM t1;
f1
1
2
NULL
NULL
DROP TABLE t1;
use test;
CREATE TABLE t1 (f1 INT UNIQUE) ENGINE=TIANMU;
INSERT INTO t1 VALUES(1),(2),(NULL),(NULL);
SELECT * FROM t1 WHERE f1 IS NULL;
SELECT * FROM t1 WHERE f1 IS NOT NULL;
SELECT * FROM t1;
DROP TABLE t1;
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册