summaryrefslogtreecommitdiff
path: root/sql/item_func.h
diff options
context:
space:
mode:
authorunknown <evgen@moonbone.local>2007-05-04 21:38:05 +0400
committerunknown <evgen@moonbone.local>2007-05-04 21:38:05 +0400
commite63cc253e2c0eb56c00d98dce583bb4d5baef49c (patch)
tree3404d8ac77772ce01c26b052b23f72d01395acb7 /sql/item_func.h
parent359b0e59c9375fbaa2beb84f02e01c6fbbf8d31d (diff)
parent99bde6d9ecf76fabfa1460b9780134f40663a11f (diff)
downloadmariadb-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.h10
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