diff options
author | Mattias Jonsson <mattias.jonsson@oracle.com> | 2010-07-09 15:02:27 +0200 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@oracle.com> | 2010-07-09 15:02:27 +0200 |
commit | a0752a9eaff88a7204e0871dd2c52abbd0c9c1a9 (patch) | |
tree | aae086366c0b02897d04b3ca6ed86afc23ef0203 /sql/ha_partition.h | |
parent | 07e1cdc179ba1e24794e3785fb837de705158581 (diff) | |
parent | 6433a5535662753aedd95759000cd354dd8e3fba (diff) | |
download | mariadb-git-a0752a9eaff88a7204e0871dd2c52abbd0c9c1a9.tar.gz |
merge
Diffstat (limited to 'sql/ha_partition.h')
-rw-r--r-- | sql/ha_partition.h | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/sql/ha_partition.h b/sql/ha_partition.h index eec3cb71537..cdbfb2163c7 100644 --- a/sql/ha_partition.h +++ b/sql/ha_partition.h @@ -36,8 +36,7 @@ enum partition_keywords HA_CAN_FULLTEXT | \ HA_DUPLICATE_POS | \ HA_CAN_SQL_HANDLER | \ - HA_CAN_INSERT_DELAYED | \ - HA_PRIMARY_KEY_REQUIRED_FOR_POSITION) + HA_CAN_INSERT_DELAYED) class ha_partition :public handler { private: @@ -431,6 +430,15 @@ public: virtual int index_init(uint idx, bool sorted); virtual int index_end(); + /** + @breif + Positions an index cursor to the index specified in the hanlde. Fetches the + row if available. If the key value is null, begin at first key of the + index. + */ + virtual int index_read_idx_map(uchar *buf, uint index, const uchar *key, + key_part_map keypart_map, + enum ha_rkey_function find_flag); /* These methods are used to jump to next or previous entry in the index scan. There are also methods to jump to first and last entry. @@ -749,9 +757,6 @@ public: HA_PRIMARY_KEY_REQUIRED_FOR_POSITION: Does the storage engine need a PK for position? - Used with hidden primary key in InnoDB. - Hidden primary keys cannot be supported by partitioning, since the - partitioning expressions columns must be a part of the primary key. (InnoDB) HA_FILE_BASED is always set for partition handler since we use a |