diff options
author | unknown <timour@askmonty.org> | 2011-03-08 23:23:44 +0200 |
---|---|---|
committer | unknown <timour@askmonty.org> | 2011-03-08 23:23:44 +0200 |
commit | 546a166b4e1a52d63694caa38bc737e18fd8e98b (patch) | |
tree | 62a4c6dc9cbeaa8f90eafc23711292b6a049610e /sql/sql_plugin_services.h | |
parent | 0d5d68f68487bba0be03094e9d61bc283e20de46 (diff) | |
download | mariadb-git-546a166b4e1a52d63694caa38bc737e18fd8e98b.tar.gz |
Fix LP BUG#719198
Analysis:
The assert failed because the execution code for
partial matching is designed with the assumption that
NULLs on the left side are detected as early as possible,
and a NULL result is returned before any lookups are
performed at all.
However, in the case of an Item_cache object on the left
side, null was not detected properly, because detection
was done via Item::is_null(), which is not implemented at
all for Item_cache, and resolved to the default Item::is_null()
which always returns FALSE.
Solution:
Use the property Item::null_value instead of is_null(), which
is properly updated for Item_cache objects as well.
Diffstat (limited to 'sql/sql_plugin_services.h')
0 files changed, 0 insertions, 0 deletions