diff options
author | ramil/ram@mysql.com/ramil.myoffice.izhnet.ru <> | 2007-08-01 15:27:03 +0500 |
---|---|---|
committer | ramil/ram@mysql.com/ramil.myoffice.izhnet.ru <> | 2007-08-01 15:27:03 +0500 |
commit | 7fb417d0ba1c416db1d5a12774cb3f4a6624ba9c (patch) | |
tree | 264548069695844abbd4f11eac596dbb84c9c0ce /sql/sql_class.cc | |
parent | 667f2a35de446a92db3baa73e302b71c5db6759c (diff) | |
download | mariadb-git-7fb417d0ba1c416db1d5a12774cb3f4a6624ba9c.tar.gz |
Fix for bug #29928: INSERT ... VALUES(connection_id(), ...) incorrect
restores from mysqlbinlog out
Problem: using "mysqlbinlog | mysql" for recoveries the connection_id()
result may differ from what was used when issuing the statement.
Fix: if there is a connection_id() in a statement, write to binlog
SET pseudo_thread_id= XXX; before it and use the value later on.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r-- | sql/sql_class.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc index ee4e1ea149c..c4fc82e55ca 100644 --- a/sql/sql_class.cc +++ b/sql/sql_class.cc @@ -197,7 +197,7 @@ THD::THD() count_cuted_fields= CHECK_FIELD_IGNORE; killed= NOT_KILLED; db_length= col_access=0; - query_error= tmp_table_used= 0; + query_error= tmp_table_used= thread_specific_used= 0; next_insert_id=last_insert_id=0; hash_clear(&handler_tables_hash); tmp_table=0; |