1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

revision of fix_fields() calls (BUG2838)

This commit is contained in:
bell@sanja.is.com.ua
2004-02-18 01:08:52 +02:00
parent 8a865250c4
commit 14b9fa3588
13 changed files with 75 additions and 36 deletions

View File

@ -1176,8 +1176,12 @@ int select_dumpvar::prepare(List<Item> &list, SELECT_LEX_UNIT *u)
{
ls= gl++;
Item_func_set_user_var *xx = new Item_func_set_user_var(*ls,item);
/*
Item_func_set_user_var can't substitute something else on its place =>
0 can be passed as last argument (reference on item)
*/
xx->fix_fields(thd,(TABLE_LIST*) thd->lex->select_lex.table_list.first,
&item);
0);
xx->fix_length_and_dec();
vars.push_back(xx);
}