summaryrefslogtreecommitdiff
path: root/mysql-test/t/cast.test
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2003-05-28 17:57:58 +0500
committerbar@bar.mysql.r18.ru <>2003-05-28 17:57:58 +0500
commit5fa6c4589ea9a230bf25e9351cb6c9c672ad2473 (patch)
treed90c589c4aa4758f8cd2ece67315b1f98e924f3e /mysql-test/t/cast.test
parent8254666d3cebbb26ce64e00bfeefb7e88031e17b (diff)
downloadmariadb-git-5fa6c4589ea9a230bf25e9351cb6c9c672ad2473.tar.gz
CAST(expr AS char) now supports character set with conversion:
SELECT CAST(_latin1'string' AS CHAR CHARACTER SET latin2)
Diffstat (limited to 'mysql-test/t/cast.test')
-rw-r--r--mysql-test/t/cast.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/cast.test b/mysql-test/t/cast.test
index 8703a6b739d..59b8f3b0c75 100644
--- a/mysql-test/t/cast.test
+++ b/mysql-test/t/cast.test
@@ -14,6 +14,15 @@ select cast("2001-1-1" as DATE), cast("2001-1-1" as DATETIME);
select cast("1:2:3" as TIME);
#
+# Character set convertion
+#
+select cast(_latin1'test' as char character set latin2);
+select cast(_koi8r'ΤΕΣΤ' as char character set cp1251);
+create table t1 select cast(_koi8r'ΤΕΣΤ' as char character set cp1251) as t;
+show create table t1;
+drop table t1;
+
+#
# The following should be fixed in 4.1
#