diff options
author | Oleksandr Byelkin <sanja@mariadb.com> | 2018-08-21 10:07:26 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2018-08-21 10:07:26 +0200 |
commit | b4210f364003fbea3ccd778b5f5f5dbfc2bfa2f8 (patch) | |
tree | df1647a564cfe504d5ceae00e1bb09ba750bdf77 /sql/key.cc | |
parent | 75dfd4acb995789ca5f86ccbd361fff9d2797e79 (diff) | |
parent | bcc677bb7264db08b22284998706b44c377ed8ec (diff) | |
download | mariadb-git-b4210f364003fbea3ccd778b5f5f5dbfc2bfa2f8.tar.gz |
Merge branch '10.0' into 10.1
Diffstat (limited to 'sql/key.cc')
-rw-r--r-- | sql/key.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/key.cc b/sql/key.cc index 523ddf98640..19b96522b2c 100644 --- a/sql/key.cc +++ b/sql/key.cc @@ -148,7 +148,8 @@ void key_copy(uchar *to_key, uchar *from_record, KEY *key_info, { key_length-= HA_KEY_BLOB_LENGTH; length= min<uint>(key_length, key_part->length); - uint bytes= key_part->field->get_key_image(to_key, length, Field::itRAW); + uint bytes= key_part->field->get_key_image(to_key, length, + key_info->flags & HA_SPATIAL ? Field::itMBR : Field::itRAW); if (with_zerofill && bytes < length) bzero((char*) to_key + bytes, length - bytes); to_key+= HA_KEY_BLOB_LENGTH; |