summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2004-01-19 23:44:39 +0100
committerunknown <monty@mysql.com>2004-01-19 23:44:39 +0100
commitfe9647968d1aaa02dfab2d13cc9c9d7f27bb2228 (patch)
treec0e63a06e46430c928e8049a26c964692c5415f4 /sql/key.cc
parent0153488a0228b80962f0e7c01cde8c23243c82bd (diff)
downloadmariadb-git-fe9647968d1aaa02dfab2d13cc9c9d7f27bb2228.tar.gz
Proper fix for bug with BLOB in MIN/MAX
sql/key.cc: Change constant to define
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc4
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
{