Commit cba91cce authored by pem@mysql.com's avatar pem@mysql.com

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

More complex cases, like call u((select x from table limit 1)) does not.
parent a4e06592
...@@ -54,7 +54,7 @@ eval_func_item(THD *thd, Item *it, enum enum_field_types type) ...@@ -54,7 +54,7 @@ eval_func_item(THD *thd, Item *it, enum enum_field_types type)
it= it->this_item(); it= it->this_item();
DBUG_PRINT("info", ("type: %d", type)); 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_PRINT("info", ("fix_fields() failed"));
DBUG_RETURN(it); // Shouldn't happen? 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