summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc4
1 files changed, 1 insertions, 3 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 65e1e67c7c6..2ad0931180a 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -678,9 +678,7 @@ void Item_param::set_longdata(const char *str, ulong length)
int Item_param::save_in_field(Field *field, bool no_conversions)
{
- THD *thd= current_thd;
-
- DBUG_ASSERT(thd->command == COM_EXECUTE);
+ DBUG_ASSERT(current_thd->command == COM_EXECUTE);
if (null_value)
return (int) set_field_to_null(field);