diff options
author | Mattias Jonsson <mattias.jonsson@oracle.com> | 2010-12-22 10:50:36 +0100 |
---|---|---|
committer | Mattias Jonsson <mattias.jonsson@oracle.com> | 2010-12-22 10:50:36 +0100 |
commit | 966d0ebaf3672458056c6de32da429d50b3f76d9 (patch) | |
tree | a5acc440e05f371151bbdafd9bb22854c105ff7d /sql/item.h | |
parent | c676f125a216d29660fff88b0c3dee947d3904d9 (diff) | |
download | mariadb-git-966d0ebaf3672458056c6de32da429d50b3f76d9.tar.gz |
Bug#54483: valgrind errors when making warnings for multiline inserts into partition
Bug#57071: EXTRACT(WEEK from date_col) cannot be allowed as partitioning function
There were functions allowed as partitioning functions
that implicit allowed cast. That could result in unacceptable
behaviour.
Solution was to check that the arguments of date and time functions
have allowed types (field and date/datetime/time depending on function).
Diffstat (limited to 'sql/item.h')
-rw-r--r-- | sql/item.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sql/item.h b/sql/item.h index 57abb43010e..d0fbdc81d0e 100644 --- a/sql/item.h +++ b/sql/item.h @@ -966,11 +966,11 @@ public: virtual bool set_no_const_sub(uchar *arg) { return FALSE; } virtual Item *replace_equal_field(uchar * arg) { return this; } /* - Check if an expression value depends on the current timezone. Used by - partitioning code to reject timezone-dependent expressions in a - (sub)partitioning function. + Check if an expression value has allowed arguments, like DATE/DATETIME + for date functions. Also used by partitioning code to reject + timezone-dependent expressions in a (sub)partitioning function. */ - virtual bool is_timezone_dependent_processor(uchar *bool_arg) + virtual bool is_arguments_valid_processor(uchar *bool_arg) { return FALSE; } |