diff options
author | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-08-24 21:36:51 +0500 |
---|---|---|
committer | holyfoot/hf@mysql.com/hfmain.(none) <> | 2007-08-24 21:36:51 +0500 |
commit | eb6651b017b711316d1dd47a0175560bb0841cbf (patch) | |
tree | 8edf5ea1d76ef0d8980a73a1bde14cc3665ab33f /sql/ha_partition.cc | |
parent | 7f429ecc7fee1dc411182290c32d6777d34fa37f (diff) | |
download | mariadb-git-eb6651b017b711316d1dd47a0175560bb0841cbf.tar.gz |
ha_partition.cc, ha_partition.h:
bug fixed
partition_pruning.result:
test fixed
Diffstat (limited to 'sql/ha_partition.cc')
-rw-r--r-- | sql/ha_partition.cc | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/sql/ha_partition.cc b/sql/ha_partition.cc index 6521be1cb9a..326b8b2d43b 100644 --- a/sql/ha_partition.cc +++ b/sql/ha_partition.cc @@ -3216,9 +3216,14 @@ end_dont_reset_start_part: void ha_partition::position(const uchar *record) { - handler *file= m_file[m_last_part]; + handler *file; DBUG_ENTER("ha_partition::position"); + if (unlikely(get_part_for_delete(record, m_rec0, m_part_info, &m_last_part))) + m_last_part= 0; + + file= m_file[m_last_part]; + file->position(record); int2store(ref, m_last_part); memcpy((ref + PARTITION_BYTES_IN_POS), file->ref, @@ -3233,6 +3238,14 @@ void ha_partition::position(const uchar *record) DBUG_VOID_RETURN; } + +void ha_partition::column_bitmaps_signal() +{ + handler::column_bitmaps_signal(); + bitmap_union(table->read_set, &m_part_info->full_part_field_set); +} + + /* Read row using position |