diff options
author | igor@olga.mysql.com <> | 2006-12-13 21:08:25 -0800 |
---|---|---|
committer | igor@olga.mysql.com <> | 2006-12-13 21:08:25 -0800 |
commit | 8642d23b6a1ef75d9120ba0871de2c183feee7db (patch) | |
tree | d2a54ccb335e917d32f0e7f7c6cf236039ea34d5 /sql/item_cmpfunc.h | |
parent | 026196c4ef3217491d22959bafde1cea40f9667b (diff) | |
download | mariadb-git-8642d23b6a1ef75d9120ba0871de2c183feee7db.tar.gz |
Fixed bug #25027.
Blocked evaluation of constant objects of the classes
Item_func_is_null and Item_is_not_null_test at the
prepare phase in the cases when the objects used subqueries.
Diffstat (limited to 'sql/item_cmpfunc.h')
-rw-r--r-- | sql/item_cmpfunc.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/item_cmpfunc.h b/sql/item_cmpfunc.h index acad1e51bc9..faeee0d5567 100644 --- a/sql/item_cmpfunc.h +++ b/sql/item_cmpfunc.h @@ -1028,7 +1028,8 @@ public: else { args[0]->update_used_tables(); - if ((const_item_cache= !(used_tables_cache= args[0]->used_tables()))) + if ((const_item_cache= !(used_tables_cache= args[0]->used_tables())) && + !with_subselect) { /* Remember if the value is always NULL or never NULL */ cached_value= (longlong) args[0]->is_null(); |