diff options
author | unknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se> | 2005-07-22 17:05:16 -0400 |
---|---|---|
committer | unknown <pappa@c-8b0ae253.1238-1-64736c10.cust.bredbandsbolaget.se> | 2005-07-22 17:05:16 -0400 |
commit | 183caf2ea49c6ed749aa66d0dae33dd4e7c772ad (patch) | |
tree | b0068a388e0fd220d2771179c31b72484a169c74 /sql/key.cc | |
parent | 828a7021e782d83d0d96b215b0cd6b2e4e9718b4 (diff) | |
download | mariadb-git-183caf2ea49c6ed749aa66d0dae33dd4e7c772ad.tar.gz |
Bug #12116 patch
sql/field.h:
64-bit safe is_null with offset
sql/key.cc:
64-bit safe is_null with offset
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 f1e073a4775..731df134efa 100644 --- a/sql/key.cc +++ b/sql/key.cc @@ -473,8 +473,8 @@ int key_rec_cmp(void *key, byte *first_rec, byte *second_rec) if (key_part->null_bit) { /* The key_part can contain NULL values */ - bool first_is_null= field->is_null(first_diff); - bool sec_is_null= field->is_null(sec_diff); + bool first_is_null= field->is_null_in_record_with_offset(first_diff); + bool sec_is_null= field->is_null_in_record_with_offset(sec_diff); /* NULL is smaller then everything so if first is NULL and the other not then we know that we should return -1 and for the opposite |