From 417c38db9cf5d94409cbc50f4e2b87345a915e58 Mon Sep 17 00:00:00 2001 From: unknown Date: Sat, 30 Sep 2006 17:38:15 -0400 Subject: BUG#18198: Partition function handling Review fixes mysql-test/r/partition_range.result: New test cases mysql-test/t/partition_hash.test: New test cases mysql-test/t/partition_range.test: New test cases sql/item.h: Review fixes sql/partition_info.cc: Review fixes sql/sql_partition.cc: Review fixes --- sql/item.h | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'sql/item.h') diff --git a/sql/item.h b/sql/item.h index 1f5324f33be..8799fa07eb7 100644 --- a/sql/item.h +++ b/sql/item.h @@ -831,12 +831,20 @@ public: Check if a partition function is allowed SYNOPSIS check_partition_func_processor() - int_arg Return argument + int_arg Ignored RETURN VALUE - 0 + TRUE Partition function not accepted + FALSE Partition function accepted + DESCRIPTION check_partition_func_processor is used to check if a partition function - uses an allowed function. The default is that an item is not allowed + uses an allowed function. An allowed function will always ensure that + X=Y guarantees that also part_function(X)=part_function(Y) where X is + a set of partition fields and so is Y. The problems comes mainly from + character sets where two equal strings can be quite unequal. E.g. the + german character for double s is equal to 2 s. + + The default is that an item is not allowed in a partition function. However all mathematical functions, string manipulation functions, date functions are allowed. Allowed functions can never depend on server version, they cannot depend on anything -- cgit v1.2.1