diff options
author | gluh@eagle.intranet.mysql.r18.ru <> | 2006-03-03 15:29:39 +0400 |
---|---|---|
committer | gluh@eagle.intranet.mysql.r18.ru <> | 2006-03-03 15:29:39 +0400 |
commit | f3e993d9a6371c6b32d336d30b1b58ca4b904e11 (patch) | |
tree | 605a055f58f5a2f179cf13de051d876926a7edf2 /sql/item_cmpfunc.cc | |
parent | 7ae10acbc44508794628f9c4d8d095610d38e9ba (diff) | |
download | mariadb-git-f3e993d9a6371c6b32d336d30b1b58ca4b904e11.tar.gz |
Fix for bug#17826 'type_decimal' fails with ps-protocol
removed unnecessary calculation of cache value
otherwise Join::preapre tries to calculate
undefined values(filed values)
Diffstat (limited to 'sql/item_cmpfunc.cc')
-rw-r--r-- | sql/item_cmpfunc.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 7ba8a536ac7..304e9e8babe 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -698,12 +698,6 @@ bool Item_in_optimizer::fix_left(THD *thd, Item **ref) return 1; cache->setup(args[0]); - /* - If it is preparation PS only then we do not know values of parameters => - cant't get there values and do not need that values. - */ - if (!thd->stmt_arena->is_stmt_prepare()) - cache->store(args[0]); if (cache->cols() == 1) { if ((used_tables_cache= args[0]->used_tables())) |