diff options
Diffstat (limited to 'sql/sp_head.cc')
-rw-r--r-- | sql/sp_head.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sp_head.cc b/sql/sp_head.cc index c4a3b4d8d48..4c03e88f33a 100644 --- a/sql/sp_head.cc +++ b/sql/sp_head.cc @@ -1243,7 +1243,7 @@ sp_instr_stmt::exec_stmt(THD *thd, LEX *lex) thd->free_list= NULL; VOID(pthread_mutex_lock(&LOCK_thread_count)); - thd->query_id= query_id++; + thd->query_id= next_query_id(); VOID(pthread_mutex_unlock(&LOCK_thread_count)); reset_stmt_for_execute(thd, lex); |