summaryrefslogtreecommitdiff
path: root/sql/sql_partition.cc
diff options
context:
space:
mode:
authorMattias Jonsson <mattias.jonsson@oracle.com>2011-01-10 15:08:31 +0100
committerMattias Jonsson <mattias.jonsson@oracle.com>2011-01-10 15:08:31 +0100
commit1a46e493dd24682af39d15fc9fbeaf69c9e7e7e8 (patch)
tree23ed20d7372307636b325211cd801777b7e6e0d0 /sql/sql_partition.cc
parent67b227c55d86276095cead86dda8810b8d72928a (diff)
parent99e95e8dabdaf5cb87529209b0602a76db9c8324 (diff)
downloadmariadb-git-1a46e493dd24682af39d15fc9fbeaf69c9e7e7e8.tar.gz
Manual merge from 5.1
Diffstat (limited to 'sql/sql_partition.cc')
-rw-r--r--sql/sql_partition.cc11
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_partition.cc b/sql/sql_partition.cc
index cec047d11fc..0b4f956dd7f 100644
--- a/sql/sql_partition.cc
+++ b/sql/sql_partition.cc
@@ -1130,12 +1130,13 @@ static bool fix_fields_part_func(THD *thd, Item* func_expr, TABLE *table,
}
/*
- We don't allow creating partitions with timezone-dependent expressions as
- a (sub)partitioning function, but we want to allow such expressions when
- opening existing tables for easier maintenance. This exception should be
- deprecated at some point in future so that we always throw an error.
+ We don't allow creating partitions with expressions with non matching
+ arguments as a (sub)partitioning function,
+ but we want to allow such expressions when opening existing tables for
+ easier maintenance. This exception should be deprecated at some point
+ in future so that we always throw an error.
*/
- if (func_expr->walk(&Item::is_timezone_dependent_processor,
+ if (func_expr->walk(&Item::check_valid_arguments_processor,
0, NULL))
{
if (is_create_table_ind)