diff options
author | Gleb Shchepa <gshchepa@mysql.com> | 2008-07-14 14:06:49 +0500 |
---|---|---|
committer | Gleb Shchepa <gshchepa@mysql.com> | 2008-07-14 14:06:49 +0500 |
commit | 211164ff8ca4b9b00a1da80be3e36e55a09d22b8 (patch) | |
tree | 769fb80e9c2f4df0541ee170901153747bd4c0fe /include/sslopt-vars.h | |
parent | 6d05a62e4af8d5c8e04eb91d2bd5149413ee218f (diff) | |
download | mariadb-git-211164ff8ca4b9b00a1da80be3e36e55a09d22b8.tar.gz |
Bug #37761: IN handles NULL differently for table-subquery
and value-list
The server returns unexpected results if a right side of the
NOT IN clause consists of NULL value and some constants of
the same type, for example:
SELECT * FROM t WHERE NOT t.id IN (NULL, 1, 2)
may return 3, 4, 5 etc if a table contains these values.
The Item_func_in::val_int method has been modified:
unnecessary resets of an Item_func_case::has_null field
value has been moved outside of an argument comparison
loop. (Also unnecessary re-initialization of the null_value
field has been moved).
Diffstat (limited to 'include/sslopt-vars.h')
0 files changed, 0 insertions, 0 deletions