diff options
author | unknown <bar@mysql.com> | 2005-10-14 08:20:02 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-10-14 08:20:02 +0500 |
commit | 2aa10d246485a9fc93c623aa8b85871cdea6d80e (patch) | |
tree | fe96ea94a40dcc2db169e6ef8e40ebf08e4a571b /mysql-test/t | |
parent | 4083d45644af2efa451703ad44a69ae3901b25df (diff) | |
parent | dddb6812ddb02b98b2cf633ca5573b776fa616fe (diff) | |
download | mariadb-git-2aa10d246485a9fc93c623aa8b85871cdea6d80e.tar.gz |
Merge abarkov@bk-internal:/home/bk/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.0.char1
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/ctype_utf8.test | 34 |
1 files changed, 22 insertions, 12 deletions
diff --git a/mysql-test/t/ctype_utf8.test b/mysql-test/t/ctype_utf8.test index d186ca8a1f6..8f695ef315c 100644 --- a/mysql-test/t/ctype_utf8.test +++ b/mysql-test/t/ctype_utf8.test @@ -871,22 +871,32 @@ DROP TABLE t1; # set names utf8; # correct value -select hex(char(1)); -select char(0xd1,0x8f); -select char(0xd18f); -select char(53647); +select hex(char(1 using utf8)); +select char(0xd1,0x8f using utf8); +select char(0xd18f using utf8); +select char(53647 using utf8); # incorrect value: return with warning -select char(0xff,0x8f); +select char(0xff,0x8f using utf8); # incorrect value in strict mode: return NULL with "Error" level warning set sql_mode=traditional; -select char(0xff,0x8f); -select convert(char(0xff,0x8f) using utf8); -select char(195); -select convert(char(195) using utf8); -select char(196); -select convert(char(196) using utf8); +select char(0xff,0x8f using utf8); +select char(195 using utf8); +select char(196 using utf8); +select char(2557 using utf8); + +# +# Check convert + char + using +# +select hex(convert(char(2557 using latin1) using utf8)); + +# +# char() without USING returns "binary" by default, any argument is ok +# +select hex(char(195)); +select hex(char(196)); select hex(char(2557)); -select hex(convert(char(2557) using utf8)); + + # # Bug#12891: UNION doesn't return DISTINCT result for multi-byte characters |