summaryrefslogtreecommitdiff
path: root/sql/sql_error.cc
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2014-02-22 03:11:56 +0200
committerMichael Widenius <monty@askmonty.org>2014-02-22 03:11:56 +0200
commit6efa5efa7dd112b6ac2efdd84235a13cca51c4d4 (patch)
tree1c7cba08ab4a5aa219128436b35c175fab42c386 /sql/sql_error.cc
parentd12c7adf715677b118104d4e5adf6f978c27b4ee (diff)
downloadmariadb-git-6efa5efa7dd112b6ac2efdd84235a13cca51c4d4.tar.gz
Fixed that rpl_row_create_table can be run with --ps-protocol
As part of the fix we don't anymore generate a create table statement when doing a CREATE TABLE IF NOT EXISTS table_that_exist LiKE temporary_table if the 'table_that_exist' existed. This is because it's not self evident if we should generate a create statement matching the existing table or the temporary_table. The old code generated a table like the existing table in row based replication and like the temporary table in statement based replication. It's better to ensure that both cases works the same way. mysql-test/suite/rpl/r/rpl_row_create_table.result: Updated results (Now we don't anymore CREATE TABLE IF NOT EXISTS LIKE if the table existed) sql/sql_base.cc: More DBUG_PRINT sql/sql_error.cc: More DBUG_PRINT sql/sql_table.cc: Don't generate a create table statement when doing a CREATE TABLE IF NOT EXISTS table_that_exist like temporary_table if the table existed.
Diffstat (limited to 'sql/sql_error.cc')
-rw-r--r--sql/sql_error.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/sql_error.cc b/sql/sql_error.cc
index f382f18a983..fb1bb811c9d 100644
--- a/sql/sql_error.cc
+++ b/sql/sql_error.cc
@@ -464,6 +464,7 @@ Diagnostics_area::set_error_status(uint sql_errno,
const Sql_condition *error_condition)
{
DBUG_ENTER("set_error_status");
+ DBUG_PRINT("enter", ("error: %d", sql_errno));
/*
Only allowed to report error if has not yet reported a success
The only exception is when we flush the message to the client,