diff options
author | unknown <holyfoot/hf@mysql.com/hfmain.(none)> | 2007-04-19 21:43:42 +0500 |
---|---|---|
committer | unknown <holyfoot/hf@mysql.com/hfmain.(none)> | 2007-04-19 21:43:42 +0500 |
commit | 611456362f520bd5b3380e7cf90cfb2aaadd18be (patch) | |
tree | 0eaec27c535b248bcfac6751f1bea94265b8d1cd /COPYING | |
parent | cc76701e8f47ca52ca209150f49ba665a215c1d0 (diff) | |
download | mariadb-git-611456362f520bd5b3380e7cf90cfb2aaadd18be.tar.gz |
Bug #27123 (partition + on duplicate key update + varchar = Can't find
record in table)
key_restore function didn't work as intended in the case of
VARCHAR or BLOB fields, stored the restored key in field->ptr instead
of to_record.
That produced the wrong key so search returned wrong result
mysql-test/r/partition.result:
result added
mysql-test/t/partition.test:
testcase
sql/field.cc:
Field_blob::store_length made static
sql/field.h:
Field_blob::store_length and set_ptr functions implemented in slightly
different way
sql/ha_ndbcluster.cc:
set_ptr_offset used
sql/key.cc:
set key_part->field->ptr to the proper place inside the to_record
so the restored key will be placed there as key_restore
is supposed to behave
Diffstat (limited to 'COPYING')
0 files changed, 0 insertions, 0 deletions