diff options
author | Alexander Barkov <bar@mariadb.org> | 2016-04-02 00:04:47 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2016-04-02 00:04:47 +0400 |
commit | 777c2131dd7aeaf25adbbbbb0c213950e852f22b (patch) | |
tree | 93abea5ffeb0cc018e6d5383ecc29fdcfed1995c /mysql-test | |
parent | 11b77e9b18a8d97063b4c4a96e40bf9c75bd0e8b (diff) | |
download | mariadb-git-777c2131dd7aeaf25adbbbbb0c213950e852f22b.tar.gz |
MDEV-9862 Illegal mix of collation, when comparing column with CASE expression
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/ctype_cp850.result | 14 | ||||
-rw-r--r-- | mysql-test/t/ctype_cp850.test | 16 |
2 files changed, 30 insertions, 0 deletions
diff --git a/mysql-test/r/ctype_cp850.result b/mysql-test/r/ctype_cp850.result new file mode 100644 index 00000000000..c028f72b58a --- /dev/null +++ b/mysql-test/r/ctype_cp850.result @@ -0,0 +1,14 @@ +# +# Start of 5.5 tests +# +# +# MDEV-9862 Illegal mix of collation, when comparing column with CASE expression +# +SET NAMES cp850; +CREATE TABLE t1 (a CHAR(1) CHARACTER SET latin1); +SELECT a FROM t1 WHERE CASE a WHEN 'aaaa' THEN 'Y' WHEN 'aaaa' THEN 'Y' ELSE NULL END <> a; +a +DROP TABLE t1; +# +# End of 5.5 tests +# diff --git a/mysql-test/t/ctype_cp850.test b/mysql-test/t/ctype_cp850.test new file mode 100644 index 00000000000..358829eb351 --- /dev/null +++ b/mysql-test/t/ctype_cp850.test @@ -0,0 +1,16 @@ +--echo # +--echo # Start of 5.5 tests +--echo # + +--echo # +--echo # MDEV-9862 Illegal mix of collation, when comparing column with CASE expression +--echo # +SET NAMES cp850; +CREATE TABLE t1 (a CHAR(1) CHARACTER SET latin1); +SELECT a FROM t1 WHERE CASE a WHEN 'aaaa' THEN 'Y' WHEN 'aaaa' THEN 'Y' ELSE NULL END <> a; +DROP TABLE t1; + + +--echo # +--echo # End of 5.5 tests +--echo # |