Debugging output fixed to make finding executing commands easy.

Error processing in mysql_create_table() fixed.
This commit is contained in:
unknown 2013-06-17 13:34:54 +03:00
parent 47da65eed3
commit 0b7f8ed973
2 changed files with 4 additions and 2 deletions

View File

@ -4903,7 +4903,7 @@ void xid_cache_delete(XID_STATE *xid_state)
int THD::decide_logging_format(TABLE_LIST *tables)
{
DBUG_ENTER("THD::decide_logging_format");
DBUG_PRINT("info", ("query: %s", query()));
DBUG_PRINT("info", ("Query: %s", query()));
DBUG_PRINT("info", ("variables.binlog_format: %lu",
variables.binlog_format));
DBUG_PRINT("info", ("lex->get_stmt_unsafe_flags(): 0x%x",

View File

@ -4765,7 +4765,9 @@ bool mysql_create_table(THD *thd, TABLE_LIST *create_table,
if (thd->is_current_stmt_binlog_format_row() && create_info->tmp_table())
DBUG_RETURN(0);
result= write_bin_log(thd, TRUE, thd->query(), thd->query_length(), is_trans);
if (!result)
result= write_bin_log(thd, TRUE, thd->query(), thd->query_length(),
is_trans);
end:
DBUG_RETURN(result);
}