summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.h
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-08-21 14:15:25 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-08-21 14:15:25 +0500
commit34e882dd79663c428199a76ba8fcfe6d704592af (patch)
treec97e84f2eab14aa455ae3c07b91e184b75d6cd28 /sql/item_timefunc.h
parent8359a2c7298f4c936ca2a0bde083d87d35538e1d (diff)
downloadmariadb-git-34e882dd79663c428199a76ba8fcfe6d704592af.tar.gz
CAST(expr AS CHAR(10)) is now working
Diffstat (limited to 'sql/item_timefunc.h')
-rw-r--r--sql/item_timefunc.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/sql/item_timefunc.h b/sql/item_timefunc.h
index 29cfad2e095..d84267a5066 100644
--- a/sql/item_timefunc.h
+++ b/sql/item_timefunc.h
@@ -614,13 +614,15 @@ public:
class Item_char_typecast :public Item_typecast
{
-public:
- Item_char_typecast(Item *a) :Item_typecast(a) {}
- void fix_length_and_dec()
- {
- collation.set(default_charset());
- max_length=args[0]->max_length;
- }
+ int cast_length;
+ CHARSET_INFO *cast_cs;
+ bool charset_conversion;
+ String tmp_value;
+public:
+ Item_char_typecast(Item *a, int length_arg, CHARSET_INFO *cs_arg)
+ :Item_typecast(a), cast_length(length_arg), cast_cs(cs_arg) {}
+ String *val_str(String *a);
+ void fix_length_and_dec();
};