Commit 8e613458 authored by Marko Mäkelä's avatar Marko Mäkelä

Fix cmake -DWITH_PARTITION_STORAGE_ENGINE:BOOL=OFF

This is a backport of a part of
commit 18455ec3
from 10.1.
parent 5ab91f59
...@@ -2748,23 +2748,6 @@ bool partition_info::fix_column_value_functions(THD *thd, ...@@ -2748,23 +2748,6 @@ bool partition_info::fix_column_value_functions(THD *thd,
} }
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. Fix partition data from parser.
...@@ -3232,3 +3215,19 @@ bool check_partition_dirs(partition_info *part_info) ...@@ -3232,3 +3215,19 @@ bool check_partition_dirs(partition_info *part_info)
} }
#endif /* WITH_PARTITION_STORAGE_ENGINE */ #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;
}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment