Commit 5ea174a9 authored by unknown's avatar unknown

Item_param::save_in_field():

thd->command can be anything except COM_EXECUTE in no cases
except programming error.

parent 7bdb1b1e
...@@ -580,8 +580,7 @@ int Item_param::save_in_field(Field *field, bool no_conversions) ...@@ -580,8 +580,7 @@ int Item_param::save_in_field(Field *field, bool no_conversions)
{ {
THD *thd= current_thd; THD *thd= current_thd;
if (thd->command == COM_PREPARE) DBUG_ASSERT(thd->command == COM_EXECUTE);
return -1;
if (null_value) if (null_value)
return (int) set_field_to_null(field); return (int) set_field_to_null(field);
......
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