diff options
Diffstat (limited to 'sql/handler.cc')
-rw-r--r-- | sql/handler.cc | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/sql/handler.cc b/sql/handler.cc index 80f2f4c0161..808dd0841c5 100644 --- a/sql/handler.cc +++ b/sql/handler.cc @@ -3309,6 +3309,13 @@ int handler::ha_write_row(byte *buf) int handler::ha_update_row(const byte *old_data, byte *new_data) { int error; + + /* + Some storage engines require that the new record is in record[0] + (and the old record is in record[1]). + */ + DBUG_ASSERT(new_data == table->record[0]); + if (unlikely(error= update_row(old_data, new_data))) return error; #ifdef HAVE_ROW_BASED_REPLICATION |