1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix bug #12340 Wrong comparison in ha_innobase::cmp_ref()

When PRIMARY KEY is present ha_innobase::cmp_ref() uses it to compare refs.
After comparing part of key it moves pointers to compare next part.
For varchar parts pointers were moved only by length of parts, not including
bytes containig part length itself. This results in wrong comparision and
wrong number of deleted records.
This commit is contained in:
evgen@moonbone.local
2005-08-09 22:05:07 +04:00
parent 083da3ecee
commit 2a025ffbeb
3 changed files with 20 additions and 2 deletions

View File

@ -6852,8 +6852,8 @@ ha_innobase::cmp_ref(
return(result);
}
ref1 += key_part->length;
ref2 += key_part->length;
ref1 += key_part->store_length;
ref2 += key_part->store_length;
}
return(0);