Bug #118832 | using the return value replacing the IFNUILL function , the query returns different value; | ||
---|---|---|---|
Submitted: | 14 Aug 2:39 | Modified: | 19 Aug 7:33 |
Reporter: | Alice Alice | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: Optimizer | Severity: | S3 (Non-critical) |
Version: | 8.0.41, 9.4.0 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[14 Aug 2:39]
Alice Alice
[19 Aug 7:33]
MySQL Verification Team
Verified as described mysql> INSERT INTO `t0` VALUES (' Hn#N뺤',NULL,-44,0,'',NULL,0); Query OK, 1 row affected (0.001 sec) mysql> mysql> SELECT ALL t0.c0 AS ref0, t0.c1 AS ref1, t0.c2 AS ref2, t0.c3 AS ref3, t0.c4 AS ref4, t0.c5 AS ref5, t0.c6 AS ref6 FROM t0 WHERE 0.1261840155612991 IN (t0.c3); Empty set (0.000 sec) mysql> mysql> SELECT ALL t0.c0 AS ref0, t0.c1 AS ref1, t0.c2 AS ref2, t0.c3 AS ref3, t0.c4 AS ref4, t0.c5 AS ref5, t0.c6 AS ref6 FROM t0 WHERE (IFNULL(NULL, 0.1261840155612991)) IN (t0.c3); +----------+------+------+------+------+------+------+ | ref0 | ref1 | ref2 | ref3 | ref4 | ref5 | ref6 | +----------+------+------+------+------+------+------+ | Hn#N뺤 | NULL | -44 | 0 | | NULL | 0 | +----------+------+------+------+------+------+------+ 1 row in set (0.001 sec) mysql> select @@version; +-----------+ | @@version | +-----------+ | 9.4.0 | +-----------+ 1 row in set (0.000 sec) mysql>