1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Bug#9509 Optimizer: wrong result after AND with latin1_german2_ci

We cannot propagate constants with tricky collations.
This commit is contained in:
unknown
2005-05-05 21:13:57 +05:00
parent b6317e3ac0
commit d8cf7e0133
22 changed files with 115 additions and 17 deletions

View File

@ -338,3 +338,9 @@ ss
ss
<EFBFBD>
DROP TABLE t1;
create table t1 (s1 char(5) character set latin1 collate latin1_german2_ci);
insert into t1 values (0xf6) /* this is o-umlaut */;
select * from t1 where length(s1)=1 and s1='oe';
s1
<EFBFBD>
drop table t1;

View File

@ -132,3 +132,11 @@ INSERT INTO t1 VALUES ('
ALTER TABLE t1 ADD KEY ifword(col1);
SELECT * FROM t1 WHERE col1='<27>' ORDER BY col1, BINARY col1;
DROP TABLE t1;
#
# Bug#9509
#
create table t1 (s1 char(5) character set latin1 collate latin1_german2_ci);
insert into t1 values (0xf6) /* this is o-umlaut */;
select * from t1 where length(s1)=1 and s1='oe';
drop table t1;