summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <mikael/pappa@dator5.(none)>2006-09-30 17:38:15 -0400
committerunknown <mikael/pappa@dator5.(none)>2006-09-30 17:38:15 -0400
commit417c38db9cf5d94409cbc50f4e2b87345a915e58 (patch)
tree1cb1ca34559e834f40b5625962fae0569aa7a1f5 /sql/item.h
parentdc9613ca36c5cf45d43b806eccf1e7368ad076b1 (diff)
downloadmariadb-git-417c38db9cf5d94409cbc50f4e2b87345a915e58.tar.gz
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
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h14
1 files changed, 11 insertions, 3 deletions
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