diff options
author | unknown <bar@mysql.com> | 2005-10-13 19:27:44 +0500 |
---|---|---|
committer | unknown <bar@mysql.com> | 2005-10-13 19:27:44 +0500 |
commit | cd6d972bf05533dde93476c27e31ee0a4fa2f018 (patch) | |
tree | 1b93ced05d0c57b430553e8d8b2a0843a8114f7d /mysql-test/t | |
parent | 3e4dcfe5b7e1892a69fcca077a038b818aa5e030 (diff) | |
parent | 15a9ba6a8229678e1d4d587064be30c63aac7d3b (diff) | |
download | mariadb-git-cd6d972bf05533dde93476c27e31ee0a4fa2f018.tar.gz |
Merge abarkov@bk-internal:/home/bk/mysql-5.0
into mysql.com:/usr/home/bar/mysql-5.0.char1
sql/sql_yacc.yy:
Auto merged
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 |