Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Major
-
Resolution: Unresolved
-
11.8, 12.1.2
-
docker-12.1.2-MariaDB-ubu2404
Description
The same SELECT statement returned different results after I dropped the index on the datatype LONGTEXT;
DROP DATABASE IF EXISTS test;
|
CREATE DATABASE test;
|
USE test;
|
|
|
CREATE TABLE `t0` (
|
`c0` LONGTEXT,
|
KEY `i0` (`c0`(1)) |
) ;
|
|
|
INSERT INTO t0(c0) VALUES ('꙰dcF'); |
REPLACE INTO t0(c0) VALUES ('kER'); |
|
|
SELECT ALL t0.c0 FROM t0 WHERE 'C0' <= t0.c0; --{kER} |
DROP INDEX i0 ON t0;
|
SELECT ALL t0.c0 FROM t0 WHERE 'C0' <= t0.c0; --{꙰dcF,kER} |
Attachments
Issue Links
- relates to
-
MDEV-40046 Range optimizer's const-bound folding mishandles numeric-overflow string literals (e.g. `'-1e500'`) on a prefix(1) index, producing "Impossible WHERE" and returning 0 rows where 12 are correct.
-
- Confirmed
-