diff options
author | sergefp@mysql.com <> | 2005-12-22 12:29:00 +0300 |
---|---|---|
committer | sergefp@mysql.com <> | 2005-12-22 12:29:00 +0300 |
commit | e1f49888bfcc5007c04a0d0837957f4767592dea (patch) | |
tree | 8de7ec2c17376c876e0b1170dd371aa5d156c9e8 /sql/opt_range.h | |
parent | 7100dec8fef79deb9be5f4d126af53cab2342b3a (diff) | |
download | mariadb-git-e1f49888bfcc5007c04a0d0837957f4767592dea.tar.gz |
WL#2985 "Partition Pruning"
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r-- | sql/opt_range.h | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h index f84058f3b64..3cd348ba9af 100644 --- a/sql/opt_range.h +++ b/sql/opt_range.h @@ -249,6 +249,7 @@ public: struct st_qsel_param; +class PARAM; class SEL_ARG; /* @@ -283,12 +284,12 @@ protected: QUICK_RANGE_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, struct st_table_ref *ref, ha_rows records); - friend bool get_quick_keys(struct st_qsel_param *param, + friend bool get_quick_keys(PARAM *param, QUICK_RANGE_SELECT *quick,KEY_PART *key, SEL_ARG *key_tree, char *min_key, uint min_key_flag, char *max_key, uint max_key_flag); - friend QUICK_RANGE_SELECT *get_quick_select(struct st_qsel_param*,uint idx, + friend QUICK_RANGE_SELECT *get_quick_select(PARAM*,uint idx, SEL_ARG *key_tree, MEM_ROOT *alloc); friend class QUICK_SELECT_DESC; @@ -718,4 +719,8 @@ QUICK_RANGE_SELECT *get_quick_select_for_ref(THD *thd, TABLE *table, ha_rows records); uint get_index_for_order(TABLE *table, ORDER *order, ha_rows limit); +#ifdef WITH_PARTITION_STORAGE_ENGINE +bool prune_partitions(THD *thd, TABLE *table, Item *pprune_cond); +#endif + #endif |