1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

fixed BUG#1645

all calls of fix_fields() are inspected
(copy of cset which I lost in accidatly tree delete)
This commit is contained in:
bell@sanja.is.com.ua
2003-11-02 17:27:35 +02:00
parent 33f6f72979
commit 777316c3e1
6 changed files with 29 additions and 16 deletions

View File

@ -8525,11 +8525,7 @@ static bool add_ref_to_table_cond(THD *thd, JOIN_TAB *join_tab)
if (thd->is_fatal_error)
DBUG_RETURN(TRUE);
/*
Here we pass 0 as the first argument to fix_fields that don't need
to do any stack checking (This is already done in the initial fix_fields).
*/
cond->fix_fields((THD *) 0,(TABLE_LIST *) 0, (Item**)&cond);
cond->fix_fields(thd,(TABLE_LIST *) 0, (Item**)&cond);
if (join_tab->select)
{
error=(int) cond->add(join_tab->select->cond);