Commit ab64b2f8 authored by joerg@trift2.'s avatar joerg@trift2.
Browse files

Do not use the "thd" pointer to identify a thread in the embedded lib,

but rather use the "thread_id" counter.

Fixes bug#27078:
Compile error: lib_sql.cc cast from 'THD*' to 'pthread_t' loses precision
parent 0d84c3f7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -540,7 +540,7 @@ void *create_embedded_thd(int client_flag)
  thd->set_time();
  thd->init_for_queries();
  thd->client_capabilities= client_flag;
  thd->real_id= (pthread_t) thd;
  thd->real_id= thd->thread_id;

  thd->db= NULL;
  thd->db_length= 0;