diff options
Diffstat (limited to 'sql/partition_info.h')
-rw-r--r-- | sql/partition_info.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/partition_info.h b/sql/partition_info.h index e00a2c44341..c7d8e16dfeb 100644 --- a/sql/partition_info.h +++ b/sql/partition_info.h @@ -392,14 +392,16 @@ private: public: bool set_read_partitions(List<char> *partition_names); bool has_unique_name(partition_element *element); + bool field_in_partition_expr(Field *field) const; bool vers_init_info(THD *thd); - bool vers_set_interval(Item *item, interval_type int_type, my_time_t start) + bool vers_set_interval(THD *thd, Item *item, + interval_type int_type, my_time_t start) { DBUG_ASSERT(part_type == VERSIONING_PARTITION); vers_info->interval.type= int_type; vers_info->interval.start= start; - return get_interval_value(item, int_type, &vers_info->interval.step) || + return get_interval_value(thd, item, int_type, &vers_info->interval.step) || vers_info->interval.step.neg || vers_info->interval.step.second_part || !(vers_info->interval.step.year || vers_info->interval.step.month || vers_info->interval.step.day || vers_info->interval.step.hour || |