diff options
author | sergefp@mysql.com <> | 2004-12-11 19:59:09 +0300 |
---|---|---|
committer | sergefp@mysql.com <> | 2004-12-11 19:59:09 +0300 |
commit | f78a60593a8fc2d2a99f1146ce3ec95d4208bd14 (patch) | |
tree | 1156ba1912e0fbfcdb51f4d4f429571f559073d3 /sql/item.cc | |
parent | 13649d90ae90257620461cdd97bbf217bd1b1755 (diff) | |
download | mariadb-git-f78a60593a8fc2d2a99f1146ce3ec95d4208bd14.tar.gz |
Fix for BUG#6976:
In Item_ref::Item_ref set maybe_null (and other fields fix_fields sets) to be the
same as in (*ref), because Item_ref::fix_fields() will not be called. Previously
maybe_null was 0 always and this produced a bogus state where
maybe_null==0 && is_null() == true
which broke evaluation for some upper-level Items, like AND and OR.
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index 739b5385b55..8737cc06bbd 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -687,6 +687,7 @@ bool Item_null::send(THD *thd, String *packet) /* This is used for HAVING clause Find field in select list having the same name + This is not always called, see also Item_ref::Item_ref */ bool Item_ref::fix_fields(THD *thd,TABLE_LIST *tables) |