diff options
author | Sergei Petrunia <psergey@askmonty.org> | 2020-06-17 19:30:19 +0300 |
---|---|---|
committer | Sergei Petrunia <psergey@askmonty.org> | 2020-06-17 19:30:19 +0300 |
commit | b7324e133f569acde8622429425f6e608c4d88a1 (patch) | |
tree | 9d963b1a55c6c45193ecf31aad1e93a730eb05b9 /sql/opt_range.cc | |
parent | 9c577c2b9004a3afbff013a03794ffdfff088ed4 (diff) | |
download | mariadb-git-b7324e133f569acde8622429425f6e608c4d88a1.tar.gz |
Remove redundant code in opt_range.cc: print_key_value()
Diffstat (limited to 'sql/opt_range.cc')
-rw-r--r-- | sql/opt_range.cc | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 66c870dd2ac..690657616b8 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -15926,15 +15926,6 @@ static void print_key_value(String *out, const KEY_PART_INFO *key_part, { field= key_part->field; store_length= key_part->store_length; - if (field->flags & BLOB_FLAG) - { - // Byte 0 of a nullable key is the null-byte. If set, key is NULL. - if (field->real_maybe_null() && *key) - { - out->append(STRING_WITH_LEN("NULL")); - goto next; - } - } if (field->real_maybe_null()) { |