summaryrefslogtreecommitdiff
path: root/sql/sp_head.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r--sql/sp_head.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc
index d1cf5c2d9bd..ebae2f356bd 100644
--- a/sql/sp_head.cc
+++ b/sql/sp_head.cc
@@ -2033,6 +2033,7 @@ sp_head::execute_function(THD *thd, Item **argp, uint argcount,
*/
if (argcount != m_pcont->context_var_count())
{
+ thd->get_stmt_da()->reset_current_row_for_warning(0);
/*
Need to use my_error here, or it will not terminate the
invoking query properly.