1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

MDEV-32555 wrong result with an index and a partially null-rejecting condition

ref->null_rejecting is a key_part_map. we need to check
the bit corresponding to the particular store_key.
Note that there are no store_key objects for const ref parts.
This commit is contained in:
Sergei Golubchik
2023-10-24 23:50:26 +02:00
parent d2a867cdf0
commit b9e210bbf3
4 changed files with 75 additions and 14 deletions

View File

@@ -151,6 +151,7 @@ void Expression_cache_tmptable::init()
}
cache_table->s->keys= 1;
ref.null_rejecting= 1;
ref.const_ref_part_map= 0;
ref.disable_cache= FALSE;
ref.has_record= 0;
ref.use_count= 0;