1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Fix for bug #23762: partition.test fails (partition_hash, partition_pruning as well)

When partition pruning is used we have to initialize key_part->flag in the 
create_partition_index_descr() as it's checked in the get_mm_leaf().


sql/opt_range.cc:
  Fix for bug #23762: partition.test fails (partition_hash, partition_pruning as well)
    - set key_part->flag to 0.
sql/opt_range.h:
  Fix for bug #23762: partition.test fails (partition_hash, partition_pruning as well)
    - comment added.
This commit is contained in:
unknown
2006-11-02 17:11:53 +04:00
parent be22efdaef
commit ef128eb9d8
2 changed files with 8 additions and 1 deletions

View File

@ -26,7 +26,9 @@
typedef struct st_key_part {
uint16 key,part, store_length, length;
uint8 null_bit, flag;
uint8 null_bit;
/* Keypart flags (0 if partition pruning is used) */
uint8 flag;
Field *field;
Field::imagetype image_type;
} KEY_PART;