diff options
author | monty@mysql.com <> | 2004-01-19 23:44:39 +0100 |
---|---|---|
committer | monty@mysql.com <> | 2004-01-19 23:44:39 +0100 |
commit | 007d353eee243b6216d41f751267d7e9c52fd044 (patch) | |
tree | c0e63a06e46430c928e8049a26c964692c5415f4 /sql/key.cc | |
parent | 63499f3d09590082301487e60a0a4a469ebe97f4 (diff) | |
download | mariadb-git-007d353eee243b6216d41f751267d7e9c52fd044.tar.gz |
Proper fix for bug with BLOB in MIN/MAX
Diffstat (limited to 'sql/key.cc')
-rw-r--r-- | sql/key.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/key.cc b/sql/key.cc index 809c5a164b9..0a5937fc881 100644 --- a/sql/key.cc +++ b/sql/key.cc @@ -182,9 +182,9 @@ int key_cmp(TABLE *table,const byte *key,uint idx,uint key_length) } if (key_part->key_part_flag & (HA_BLOB_PART | HA_VAR_LENGTH)) { - if (key_part->field->key_cmp(key, key_part->length+2)) + if (key_part->field->key_cmp(key, key_part->length+ HA_KEY_BLOB_LENGTH)) return 1; - length=key_part->length+2; + length=key_part->length+HA_KEY_BLOB_LENGTH; } else { |