mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 14:15:33 +02:00
Bug #12116 patch
sql/field.h: 64-bit safe is_null with offset sql/key.cc: 64-bit safe is_null with offset
This commit is contained in:
parent
828a7021e7
commit
183caf2ea4
2 changed files with 8 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue