Description:
When querying a table with a `VARCHAR` column using a complex expression involving `ATAN(ADDTIME(10, '2003-05-11'), c1) = 0` in the `WHERE` clause, the query incorrectly evaluates the condition.
How to repeat:
CREATE TABLE t245 (c1 VARCHAR(20));
INSERT INTO t245 (c1) VALUES ('DQ9');
SELECT c1 FROM t245 WHERE (((ATAN((ADDTIME(10, '2003-05-11')), c1))=0));
-- result count : 1
SELECT SUM(count) FROM (SELECT ((((ATAN((ADDTIME(10, '2003-05-11')), c1)) =0))) IS TRUE AS count FROM t245) AS ta_norec;
-- result: 0
Description: When querying a table with a `VARCHAR` column using a complex expression involving `ATAN(ADDTIME(10, '2003-05-11'), c1) = 0` in the `WHERE` clause, the query incorrectly evaluates the condition. How to repeat: CREATE TABLE t245 (c1 VARCHAR(20)); INSERT INTO t245 (c1) VALUES ('DQ9'); SELECT c1 FROM t245 WHERE (((ATAN((ADDTIME(10, '2003-05-11')), c1))=0)); -- result count : 1 SELECT SUM(count) FROM (SELECT ((((ATAN((ADDTIME(10, '2003-05-11')), c1)) =0))) IS TRUE AS count FROM t245) AS ta_norec; -- result: 0