From c10413abdab41532ba82a8d7763a36d8ed47ccf7 Mon Sep 17 00:00:00 2001 From: "konstantin@oak.local" <> Date: Tue, 2 Dec 2003 15:09:35 +0300 Subject: [PATCH] Item_param::save_in_field(): thd->command can be anything except COM_EXECUTE in no cases except programming error. --- sql/item.cc | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/sql/item.cc b/sql/item.cc index 1d49671ff4c..9af2c300202 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -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);