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:
@ -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;
|
||||
|
@ -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;
|
||||
|
Reference in New Issue
Block a user