Commit 44052160 authored by unknown's avatar unknown

Fixes bug #302: call u((select 1)) now works.

More complex cases, like call u((select x from table limit 1)) does not.

parent f525047d
......@@ -54,7 +54,7 @@ eval_func_item(THD *thd, Item *it, enum enum_field_types type)
it= it->this_item();
DBUG_PRINT("info", ("type: %d", type));
if (it->fix_fields(thd, 0, NULL))
if (it->fix_fields(thd, 0, &it))
{
DBUG_PRINT("info", ("fix_fields() failed"));
DBUG_RETURN(it); // Shouldn't happen?
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment