summaryrefslogtreecommitdiff
path: root/sql/item_timefunc.cc
diff options
context:
space:
mode:
authorunknown <bar@bar.intranet.mysql.r18.ru>2003-12-25 17:42:17 +0400
committerunknown <bar@bar.intranet.mysql.r18.ru>2003-12-25 17:42:17 +0400
commit8fac0f4d2753277928a5bb4c2a5fc5a5a8becc64 (patch)
tree6386d5103a8d78819da523843660e04e55656670 /sql/item_timefunc.cc
parent229cc612776f757de6822eb97eb4e9a97226e760 (diff)
downloadmariadb-git-8fac0f4d2753277928a5bb4c2a5fc5a5a8becc64.tar.gz
Bug 2202: CAST from binary to char still returns a binary string
Diffstat (limited to 'sql/item_timefunc.cc')
-rw-r--r--sql/item_timefunc.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/sql/item_timefunc.cc b/sql/item_timefunc.cc
index 9799c5814c4..ed5b9ecc0db 100644
--- a/sql/item_timefunc.cc
+++ b/sql/item_timefunc.cc
@@ -1848,6 +1848,8 @@ String *Item_char_typecast::val_str(String *str)
}
res= str;
}
+
+ res->set_charset(cast_cs);
/*
Cut the tail if cast with length