summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorAlexander Nozdrin <alik@sun.com>2009-12-19 11:35:19 +0300
committerAlexander Nozdrin <alik@sun.com>2009-12-19 11:35:19 +0300
commita5cdaab3eb5ef11d633192ba4a43cfd8b7e6e381 (patch)
treefc4705fd7997afc82026eba8f741fce4c9aaa13d /sql/item_timefunc.h
parent8cffae12a6ab9104c533a8fcf90df66f7b14b4f0 (diff)
parent02b76970c5da2b836d322e4189cdde79a5c15f4c (diff)
downloadmariadb-git-a5cdaab3eb5ef11d633192ba4a43cfd8b7e6e381.tar.gz
Auto-merge from mysql-next-mr.
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r--sql/item_timefunc.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h
index 31726585e88..f6c316c15c6 100644
--- a/sql/item_timefunc.h
+++ b/sql/item_timefunc.h
@@ -335,6 +335,16 @@ public:
Item_func_unix_timestamp(Item *a) :Item_int_func(a) {}
longlong val_int();
const char *func_name() const { return "unix_timestamp"; }
+ bool check_partition_func_processor(uchar *int_arg) {return FALSE;}
+ /*
+ UNIX_TIMESTAMP() depends on the current timezone
+ (and thus may not be used as a partitioning function)
+ when its argument is NOT of the TIMESTAMP type.
+ */
+ bool is_timezone_dependent_processor(uchar *int_arg)
+ {
+ return !has_timestamp_args();
+ }
void fix_length_and_dec()
{
decimals=0;