summaryrefslogtreecommitdiff
path: root/mysql-test/r/ctype_latin1_de.result
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-06-27 16:08:52 +0500
committerunknown <bar@bar.mysql.r18.ru>2003-06-27 16:08:52 +0500
commit7b54f4d6e00d1dbfe4ef24bc5ebc36049ce2f718 (patch)
tree9e5f04858f1516aa7dd8b46238a3abadb902dfda /mysql-test/r/ctype_latin1_de.result
parent6fd2a8585f169eac9cebd2c57a56397e9c865e9e (diff)
downloadmariadb-git-7b54f4d6e00d1dbfe4ef24bc5ebc36049ce2f718.tar.gz
When unifying arguments for comparion, binary strings won character strings,
and comparison was done binary. Now, a binary string wins a character sting taking in account their derivation. That means a character field wins a binary literal and comparison is done according to the character field collation, not binary.
Diffstat (limited to 'mysql-test/r/ctype_latin1_de.result')
-rw-r--r--mysql-test/r/ctype_latin1_de.result10
1 files changed, 5 insertions, 5 deletions
diff --git a/mysql-test/r/ctype_latin1_de.result b/mysql-test/r/ctype_latin1_de.result
index 630fef9b679..e0cb7008899 100644
--- a/mysql-test/r/ctype_latin1_de.result
+++ b/mysql-test/r/ctype_latin1_de.result
@@ -215,21 +215,21 @@ drop table t1;
create table t1 (word varchar(255) not null, word2 varchar(255) not null, index(word));
insert into t1 (word) values ('ss'),(0xDF),(0xE4),('ae');
update t1 set word2=word;
-select word, word=0xdf as t from t1 having t > 0;
+select word, word=binary 0xdf as t from t1 having t > 0;
word t
ß 1
select word, word=cast(0xdf AS CHAR) as t from t1 having t > 0;
word t
ss 1
ß 1
-select * from t1 where word=0xDF;
+select * from t1 where word=binary 0xDF;
word word2
ß ß
select * from t1 where word=CAST(0xDF as CHAR);
word word2
ss ss
ß ß
-select * from t1 where word2=0xDF;
+select * from t1 where word2=binary 0xDF;
word word2
ß ß
select * from t1 where word2=CAST(0xDF as CHAR);
@@ -244,7 +244,7 @@ select * from t1 where word= 0xe4 or word=CAST(0xe4 as CHAR);
word word2
ä ä
ae ae
-select * from t1 where word between 0xDF and 0xDF;
+select * from t1 where word between binary 0xDF and binary 0xDF;
word word2
ß ß
select * from t1 where word between CAST(0xDF AS CHAR) and CAST(0xDF AS CHAR);
@@ -257,7 +257,7 @@ ae ae
select * from t1 where word like 'AE';
word word2
ae ae
-select * from t1 where word like 0xDF;
+select * from t1 where word like binary 0xDF;
word word2
ß ß
select * from t1 where word like CAST(0xDF as CHAR);