summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorkonstantin@oak.local <>2003-12-02 15:09:35 +0300
committerkonstantin@oak.local <>2003-12-02 15:09:35 +0300
commitc10413abdab41532ba82a8d7763a36d8ed47ccf7 (patch)
tree39bc29746246132c2e990fe145b32495b42ce09c /sql/item.cc
parentf274f72c9886315811308ae2f3182b68b7889ce9 (diff)
downloadmariadb-git-c10413abdab41532ba82a8d7763a36d8ed47ccf7.tar.gz
Item_param::save_in_field():
thd->command can be anything except COM_EXECUTE in no cases except programming error.
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc3
1 files changed, 1 insertions, 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);