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
commit1f63fade2a42c9cb37c083aa8664fcf7370d576c (patch)
tree6386d5103a8d78819da523843660e04e55656670 /sql/item_timefunc.cc
parent5876c6c66db2ea2a82415af2410913b6777bb6a9 (diff)
downloadmariadb-git-1f63fade2a42c9cb37c083aa8664fcf7370d576c.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