Details
-
Type:
Bug
-
Status: Closed (View Workflow)
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 5.5, 10.0, 10.1
-
Fix Version/s: 10.1.7
-
Component/s: Optimizer
-
Labels:
Description
In this script:
DROP TABLE IF EXISTS t1;
|
CREATE TABLE t1 (a DECIMAL(10,1));
|
INSERT INTO t1 VALUES (1.1);
|
SELECT * FROM t1 WHERE LENGTH(a)!=3;
|
SELECT * FROM t1 WHERE LENGTH(a)!=3 AND a=1.10;
|
The first SELECT query correctly returns empty set, and the second SELECT query erroneously returns one row.
Attachments
Issue Links
- blocks
-
MDEV-8728 Fix a number of problems in equal field and equal expression propagation
-
- Closed
-