Description:
On identical table data, `WHERE ((t0.c1) NOT IN ((+ (LEAST(NULL, 236618698))), NULL)) IS UNKNOWN` should return **1** row, but MySQL 9.6.0 returns **0** rows.
How to repeat:
DROP TABLE IF EXISTS `t0`;
CREATE TABLE `t0` (
`c1` decimal(10,0) DEFAULT NULL,
UNIQUE KEY `c1` (`c1`),
UNIQUE KEY `i0` ((cast(NULL as signed))) USING BTREE
) STATS_PERSISTENT=1 STATS_AUTO_RECALC=0;
INSERT INTO `t0` (`c1`) VALUES ('0');
SELECT ALL t0.c1 AS ref0 FROM t0 WHERE ((t0.c1) NOT IN ((+ (LEAST(NULL, 236618698))), NULL)) IS UNKNOWN;
Description: On identical table data, `WHERE ((t0.c1) NOT IN ((+ (LEAST(NULL, 236618698))), NULL)) IS UNKNOWN` should return **1** row, but MySQL 9.6.0 returns **0** rows. How to repeat: DROP TABLE IF EXISTS `t0`; CREATE TABLE `t0` ( `c1` decimal(10,0) DEFAULT NULL, UNIQUE KEY `c1` (`c1`), UNIQUE KEY `i0` ((cast(NULL as signed))) USING BTREE ) STATS_PERSISTENT=1 STATS_AUTO_RECALC=0; INSERT INTO `t0` (`c1`) VALUES ('0'); SELECT ALL t0.c1 AS ref0 FROM t0 WHERE ((t0.c1) NOT IN ((+ (LEAST(NULL, 236618698))), NULL)) IS UNKNOWN;