summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorunknown <monty@bitch.mysql.fi>2002-03-16 11:31:13 +0200
committerunknown <monty@bitch.mysql.fi>2002-03-16 11:31:13 +0200
commit72d3219c043a1d0a3c1751048bcefb12155836d9 (patch)
treee75a1c7701356ffcf74891e1b7a4e8ec8c28dfc3 /sql/item_timefunc.h
parent68441ece22c01a6c45a4e86b76fc54c7ef3485d7 (diff)
parent52e6db975aaa3787b7083cb51ff7681e66fddbc9 (diff)
downloadmariadb-git-72d3219c043a1d0a3c1751048bcefb12155836d9.tar.gz
Merge hundin:/my/mysql-4.0 into bitch.mysql.fi:/my/mysql-4.0
mysql-test/mysql-test-run.sh: Auto merged
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r--sql/item_timefunc.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h
index c9daa2316e8..aa4140192ab 100644
--- a/sql/item_timefunc.h
+++ b/sql/item_timefunc.h
@@ -333,6 +333,7 @@ class Item_func_date_format :public Item_str_func
{
int fixed_length;
const bool date_or_time;
+ String value;
public:
Item_func_date_format(Item *a,Item *b,bool date_or_time_arg)
:Item_str_func(a,b),date_or_time(date_or_time_arg) {}
@@ -418,7 +419,8 @@ class Item_typecast :public Item_str_func
{
public:
Item_typecast(Item *a) :Item_str_func(a) {}
- String *val_str(String *a) { return (args[0]->val_str(a)); }
+ String *val_str(String *a)
+ { a=args[0]->val_str(a); null_value=args[0]->null_value; return a; }
void fix_length_and_dec() { max_length=args[0]->max_length; }
void print(String *str);
};