Item_param::save_in_field():
thd->command can be anything except COM_EXECUTE in no cases except programming error.
This commit is contained in:
parent
f274f72c98
commit
c10413abda
@ -580,8 +580,7 @@ int Item_param::save_in_field(Field *field, bool no_conversions)
|
||||
{
|
||||
THD *thd= current_thd;
|
||||
|
||||
if (thd->command == COM_PREPARE)
|
||||
return -1;
|
||||
DBUG_ASSERT(thd->command == COM_EXECUTE);
|
||||
|
||||
if (null_value)
|
||||
return (int) set_field_to_null(field);
|
||||
|
Loading…
x
Reference in New Issue
Block a user