summaryrefslogtreecommitdiff
path: root/sql/partition_info.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-22 19:29:52 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-22 19:29:52 +0100
commitb8af22af15d159b32256f7d5be8324871ae1a104 (patch)
tree402a26f282e91562b17c07c12d3d6c017d63ef87 /sql/partition_info.cc
parent868bca5c4fca7ca3fcddf9195800bc1ef5988885 (diff)
parente92cc097658405fdb52c80254b933424f8c1f99e (diff)
downloadmariadb-git-b8af22af15d159b32256f7d5be8324871ae1a104.tar.gz
Merge branch '10.2' into bb-10.2-ext
Diffstat (limited to 'sql/partition_info.cc')
-rw-r--r--sql/partition_info.cc33
1 files changed, 16 insertions, 17 deletions
diff --git a/sql/partition_info.cc b/sql/partition_info.cc
index d721453a181..2f904840044 100644
--- a/sql/partition_info.cc
+++ b/sql/partition_info.cc
@@ -2384,23 +2384,6 @@ end:
}
-bool partition_info::error_if_requires_values() const
-{
- switch (part_type) {
- case NOT_A_PARTITION:
- case HASH_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.
@@ -2894,3 +2877,19 @@ 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:
+ 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;
+}