diff options
author | Luis Soares <luis.soares@sun.com> | 2010-01-14 14:26:51 +0000 |
---|---|---|
committer | Luis Soares <luis.soares@sun.com> | 2010-01-14 14:26:51 +0000 |
commit | 32aa612819ff756b284e639de50627b3d6d7fa0d (patch) | |
tree | 25296daae2e9e3ca0934be7ae31ad6714485dc93 /sql/ha_partition.cc | |
parent | 5ae7b3c99634609b2890253590ccf82c5fb4f085 (diff) | |
download | mariadb-git-32aa612819ff756b284e639de50627b3d6d7fa0d.tar.gz |
Fix for BUG#49481 and BUG#49482.
BUG#49481: RBR: MyISAM and bit fields may cause slave to stop on delete:
cant find record
BUG#49482: RBR: Replication may break on deletes when MyISAM tables +
char field are used
When using MyISAM tables, despite the fact that the null bit is
set for some fields, their old value is still in the row. This
can cause the comparison of records to fail when the slave is
doing an index or range scan.
We fix this by avoiding memcmp for MyISAM tables when comparing
records. Additionally, when comparing field by field, we first
check if both fields are not null and if so, then we compare
them. If just one field is null we return failure immediately. If
both fields are null, we move on to the next field.
Diffstat (limited to 'sql/ha_partition.cc')
0 files changed, 0 insertions, 0 deletions