summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc35
1 files changed, 17 insertions, 18 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index a60ca28044f..618c866a3b9 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -3013,24 +3013,6 @@ end:
}
-bool partition_info::error_if_requires_values() const
-{
- switch (part_type) {
- case NOT_A_PARTITION:
- case HASH_PARTITION:
- case VERSIONING_PARTITION:
- break;
- case RANGE_PARTITION:
- my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "RANGE", "LESS THAN");
- return true;
- case LIST_PARTITION:
- my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "LIST", "IN");
- return true;
- }
- return false;
-}
-
-
/**
Fix partition data from parser.
@@ -3548,3 +3530,20 @@ bool check_partition_dirs(partition_info *part_info)
}
#endif /* WITH_PARTITION_STORAGE_ENGINE */
+
+bool partition_info::error_if_requires_values() const
+{
+ switch (part_type) {
+ case NOT_A_PARTITION:
+ case HASH_PARTITION:
+ case VERSIONING_PARTITION:
+ break;
+ case RANGE_PARTITION:
+ my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "RANGE", "LESS THAN");
+ return true;
+ case LIST_PARTITION:
+ my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "LIST", "IN");
+ return true;
+ }
+ return false;
+}