diff options
author | unknown <serg@serg.mylan> | 2004-07-21 23:32:11 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-07-21 23:32:11 +0200 |
commit | a9856042bc2955bb92da5a4b62fe5c756be84bcb (patch) | |
tree | 627d927e4e9e57f24d498a32829834b2b686e419 /sql/log_event.cc | |
parent | 3efc721a3ce0a3c68dc82166c4134d414dfcdfa8 (diff) | |
parent | 062ac038dfd9332d121287aa4b91eaff0477aa34 (diff) | |
download | mariadb-git-a9856042bc2955bb92da5a4b62fe5c756be84bcb.tar.gz |
merged
mysql-test/r/ps_1general.result:
Auto merged
mysql-test/r/ps_2myisam.result:
Auto merged
mysql-test/r/ps_3innodb.result:
Auto merged
mysql-test/r/ps_4heap.result:
Auto merged
mysql-test/r/ps_5merge.result:
Auto merged
mysql-test/r/ps_6bdb.result:
Auto merged
sql/sql_prepare.cc:
Auto merged
sql/sql_select.cc:
Auto merged
Diffstat (limited to 'sql/log_event.cc')
-rw-r--r-- | sql/log_event.cc | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sql/log_event.cc b/sql/log_event.cc index 6207bf1b4dc..53016796f78 100644 --- a/sql/log_event.cc +++ b/sql/log_event.cc @@ -2428,6 +2428,11 @@ int Load_log_event::exec_event(NET* net, struct st_relay_log_info* rli, thd->query_length= 0; // Should not be needed thd->query_error= 0; clear_all_errors(thd, rli); + /* + Usually mysql_init_query() is called by mysql_parse(), but we need it here + as the present method does not call mysql_parse(). + */ + mysql_init_query(thd, 0, 0); if (!use_rli_only_for_errors) { /* Saved for InnoDB, see comment in Query_log_event::exec_event() */ @@ -2457,6 +2462,13 @@ int Load_log_event::exec_event(NET* net, struct st_relay_log_info* rli, VOID(pthread_mutex_lock(&LOCK_thread_count)); thd->query_id = query_id++; VOID(pthread_mutex_unlock(&LOCK_thread_count)); + /* + Initing thd->row_count is not necessary in theory as this variable has no + influence in the case of the slave SQL thread (it is used to generate a + "data truncated" warning but which is absorbed and never gets to the + error log); still we init it to avoid a Valgrind message. + */ + mysql_reset_errors(thd); TABLE_LIST tables; bzero((char*) &tables,sizeof(tables)); |