Skip to content

Commit 8e61345

Browse files
committed
Fix cmake -DWITH_PARTITION_STORAGE_ENGINE:BOOL=OFF
This is a backport of a part of commit 18455ec from 10.1.
1 parent 5ab91f5 commit 8e61345

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

sql/partition_info.cc

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2748,23 +2748,6 @@ bool partition_info::fix_column_value_functions(THD *thd,
27482748
}
27492749

27502750

2751-
bool partition_info::error_if_requires_values() const
2752-
{
2753-
switch (part_type) {
2754-
case NOT_A_PARTITION:
2755-
case HASH_PARTITION:
2756-
break;
2757-
case RANGE_PARTITION:
2758-
my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "RANGE", "LESS THAN");
2759-
return true;
2760-
case LIST_PARTITION:
2761-
my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "LIST", "IN");
2762-
return true;
2763-
}
2764-
return false;
2765-
}
2766-
2767-
27682751
/**
27692752
Fix partition data from parser.
27702753
@@ -3232,3 +3215,19 @@ bool check_partition_dirs(partition_info *part_info)
32323215
}
32333216

32343217
#endif /* WITH_PARTITION_STORAGE_ENGINE */
3218+
3219+
bool partition_info::error_if_requires_values() const
3220+
{
3221+
switch (part_type) {
3222+
case NOT_A_PARTITION:
3223+
case HASH_PARTITION:
3224+
break;
3225+
case RANGE_PARTITION:
3226+
my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "RANGE", "LESS THAN");
3227+
return true;
3228+
case LIST_PARTITION:
3229+
my_error(ER_PARTITION_REQUIRES_VALUES_ERROR, MYF(0), "LIST", "IN");
3230+
return true;
3231+
}
3232+
return false;
3233+
}

0 commit comments

Comments
 (0)