summaryrefslogtreecommitdiff
path: root/sql
diff options
context:
space:
mode:
Diffstat (limited to 'sql')
-rw-r--r--sql/sql_parse.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_parse.cc b/sql/sql_parse.cc
index 3c697cb43af..217b60faa57 100644
--- a/sql/sql_parse.cc
+++ b/sql/sql_parse.cc
@@ -2159,7 +2159,8 @@ mysql_execute_command(THD *thd)
}
Item **it= lex->value_list.head_ref();
- if ((!(*it)->fixed && (*it)->fix_fields(lex->thd, it)) ||
+ if (!(*it)->basic_const_item() ||
+ (!(*it)->fixed && (*it)->fix_fields(lex->thd, it)) ||
(*it)->check_cols(1))
{
my_message(ER_SET_CONSTANTS_ONLY, ER(ER_SET_CONSTANTS_ONLY),