diff options
author | unknown <evgen@moonbone.local> | 2007-05-04 21:38:05 +0400 |
---|---|---|
committer | unknown <evgen@moonbone.local> | 2007-05-04 21:38:05 +0400 |
commit | e63cc253e2c0eb56c00d98dce583bb4d5baef49c (patch) | |
tree | 3404d8ac77772ce01c26b052b23f72d01395acb7 /sql/item_func.h | |
parent | 359b0e59c9375fbaa2beb84f02e01c6fbbf8d31d (diff) | |
parent | 99bde6d9ecf76fabfa1460b9780134f40663a11f (diff) | |
download | mariadb-git-e63cc253e2c0eb56c00d98dce583bb4d5baef49c.tar.gz |
Merge epotemkin@bk-internal.mysql.com:/home/bk/mysql-5.0-opt
into moonbone.local:/mnt/gentoo64/work/27759-bug-5.0-opt-mysql
sql/item_func.cc:
Auto merged
Diffstat (limited to 'sql/item_func.h')
-rw-r--r-- | sql/item_func.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sql/item_func.h b/sql/item_func.h index ec5d6bcda02..99e5328c39c 100644 --- a/sql/item_func.h +++ b/sql/item_func.h @@ -693,15 +693,23 @@ class Item_func_min_max :public Item_func Item_result cmp_type; String tmp_value; int cmp_sign; + /* TRUE <=> arguments should be compared in the DATETIME context. */ + bool compare_as_dates; + /* An item used for issuing warnings while string to DATETIME conversion. */ + Item *datetime_item; + THD *thd; + public: Item_func_min_max(List<Item> &list,int cmp_sign_arg) :Item_func(list), - cmp_type(INT_RESULT), cmp_sign(cmp_sign_arg) {} + cmp_type(INT_RESULT), cmp_sign(cmp_sign_arg), compare_as_dates(FALSE), + datetime_item(0) {} double val_real(); longlong val_int(); String *val_str(String *); my_decimal *val_decimal(my_decimal *); void fix_length_and_dec(); enum Item_result result_type () const { return cmp_type; } + uint cmp_datetimes(ulonglong *value); }; class Item_func_min :public Item_func_min_max |