Commit 0b7f8ed9 authored by unknown's avatar unknown

Debugging output fixed to make finding executing commands easy.

Error processing in mysql_create_table() fixed.
parent 47da65ee
...@@ -4903,7 +4903,7 @@ void xid_cache_delete(XID_STATE *xid_state) ...@@ -4903,7 +4903,7 @@ void xid_cache_delete(XID_STATE *xid_state)
int THD::decide_logging_format(TABLE_LIST *tables) int THD::decide_logging_format(TABLE_LIST *tables)
{ {
DBUG_ENTER("THD::decide_logging_format"); 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", DBUG_PRINT("info", ("variables.binlog_format: %lu",
variables.binlog_format)); variables.binlog_format));
DBUG_PRINT("info", ("lex->get_stmt_unsafe_flags(): 0x%x", DBUG_PRINT("info", ("lex->get_stmt_unsafe_flags(): 0x%x",
......
...@@ -4765,7 +4765,9 @@ bool mysql_create_table(THD *thd, TABLE_LIST *create_table, ...@@ -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()) if (thd->is_current_stmt_binlog_format_row() && create_info->tmp_table())
DBUG_RETURN(0); 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: end:
DBUG_RETURN(result); DBUG_RETURN(result);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment