Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Critical
-
Resolution: Unresolved
-
11.8.1, 11.4, 11.8
Description
I run the following cases, which are expected to return the same query result.
-- case 1
|
CREATE TABLE t1 (c1 TEXT) ENGINE=InnoDB; |
INSERT INTO t1 (c1) VALUES ('a'); |
SELECT c1 FROM t1 WHERE CAST(c1 AS BINARY(7)) NOT IN (SELECT c1 FROM t1); -- {a} |
-- case 2
|
CREATE TABLE t1 (c1 TEXT, UNIQUE (c1(1))) ENGINE=InnoDB; |
INSERT INTO t1 (c1) VALUES ('a'); |
SELECT c1 FROM t1 WHERE CAST(c1 AS BINARY(7)) NOT IN (SELECT c1 FROM t1); -- actual: {}, expected: {a} |
Attachments
Activity
Field | Original Value | New Value |
---|---|---|
Affects Version/s | 11.4 [ 29301 ] | |
Affects Version/s | 11.8 [ 29921 ] |
Fix Version/s | 11.4 [ 29301 ] | |
Fix Version/s | 11.8 [ 29921 ] |
Status | Open [ 1 ] | Confirmed [ 10101 ] |
Component/s | Optimizer [ 10200 ] | |
Component/s | Storage Engine - InnoDB [ 10129 ] |
Labels | wrong_result |
Assignee | Sergei Petrunia [ psergey ] |
I also try other variants of the above test cases, which results are as follows.
-- case 3
-- case 4