summaryrefslogtreecommitdiff
path: root/sql/rpl_record.h
diff options
context:
space:
mode:
authorAlfranio Correia <alfranio.correia@sun.com>2009-10-22 01:10:42 +0100
committerAlfranio Correia <alfranio.correia@sun.com>2009-10-22 01:10:42 +0100
commitdeea727fced84c96e5f3f2f55d3a1a9fb5e475d0 (patch)
tree89b8b01574a400b075617b13a5f3700600abcfd2 /sql/rpl_record.h
parent495cde347b1dad1cd93b7b4e15c721da9576c496 (diff)
downloadmariadb-git-deea727fced84c96e5f3f2f55d3a1a9fb5e475d0.tar.gz
BUG#48091 valgrind errors when slave has double not null and master has double null
Backporting BUG#38173 to mysql-5.1-bugteam The reason of the bug was incompatibile with the master side behaviour. INSERT query on the master is allowed to insert into a table without specifying values of DEFAULT-less fields if sql_mode is not strict. Fixed with checking sql_mode by the sql thread to decide how to react. Non-strict sql_mode should allow Write_rows event to complete. todo: warnings can be shown via show slave status, still this is a separate rather general issue how to show warnings for the slave threads.
Diffstat (limited to 'sql/rpl_record.h')
-rw-r--r--sql/rpl_record.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/rpl_record.h b/sql/rpl_record.h
index f9e64f0ab1d..ab2bcd382ca 100644
--- a/sql/rpl_record.h
+++ b/sql/rpl_record.h
@@ -30,7 +30,8 @@ int unpack_row(Relay_log_info const *rli,
uchar const **const row_end, ulong *const master_reclength);
// Fill table's record[0] with default values.
-int prepare_record(TABLE *const, const uint =0, const bool =FALSE);
+int prepare_record(TABLE *const table, const uint skip, const bool check,
+ const bool abort_on_warning= FALSE);
#endif
#endif