diff options
Diffstat (limited to 'sql/sql_insert.cc')
-rw-r--r-- | sql/sql_insert.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/sql_insert.cc b/sql/sql_insert.cc index 9dca28ce48f..ec0ab9cb174 100644 --- a/sql/sql_insert.cc +++ b/sql/sql_insert.cc @@ -2076,13 +2076,14 @@ public: passed from connection thread to the handler thread. */ MDL_request grl_protection; + my_thread_id orig_thread_id; void set_default_user() { thd.security_ctx->user=(char*) delayed_user; thd.security_ctx->host=(char*) my_localhost; thd.security_ctx->ip= NULL; thd.query_id= 0; - thd.thread_id= 0; + thd.thread_id= orig_thread_id; } void set_user_from_row(const delayed_row *r) |