diff options
author | unknown <ramil/ram@mysql.com/myoffice.izhnet.ru> | 2006-11-02 17:11:53 +0400 |
---|---|---|
committer | unknown <ramil/ram@mysql.com/myoffice.izhnet.ru> | 2006-11-02 17:11:53 +0400 |
commit | ef128eb9d81f256883e9dd6e615c08fedeb5dcad (patch) | |
tree | 30cc687297d0d809452c3ebc0dbaddc448b53cc5 /sql/opt_range.h | |
parent | be22efdaef75d3d3bad00ed545fd53a4fd442cbb (diff) | |
download | mariadb-git-ef128eb9d81f256883e9dd6e615c08fedeb5dcad.tar.gz |
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.
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r-- | sql/opt_range.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h index 6f9c053cda2..170766c7c10 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -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; |