spurious binlog error code logging on temp table auto-drop fixed

added a new replication test


sql/sql_base.cc:
  f
This commit is contained in:
unknown 2002-06-05 20:16:44 -06:00
commit 40a7f1d30a
3 changed files with 26 additions and 0 deletions

View file

@ -546,6 +546,7 @@ void close_temporary_tables(THD *thd)
*--end = 0; // Remove last ','
thd->query_length = (uint)(end-query);
Query_log_event qinfo(thd, query);
qinfo.error_code=0;
mysql_bin_log.write(&qinfo);
thd->query_length = save_query_len;
}