mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix:
CREATE TABLE t1 (s1 CHAR(5) CHARACTER SET latin1 COLLATE latin1_german2_ci); INSERT INTO t1 VALUES ('Ü'); INSERT INTO t1 VALUES ('ue'); SELECT DISTINCT s1 FROM t1; The above returned two rows in error. Now it returns one row, in latin1_german2_ci: Ü == ue
This commit is contained in:
@ -264,3 +264,18 @@ select * from t1 where word like CAST(0xDF as CHAR);
|
||||
word word2
|
||||
<EFBFBD> <09>
|
||||
drop table t1;
|
||||
CREATE TABLE t1 (
|
||||
s1 CHAR(5) CHARACTER SET latin1 COLLATE latin1_german2_ci
|
||||
);
|
||||
INSERT INTO t1 VALUES ('<27>');
|
||||
INSERT INTO t1 VALUES ('ue');
|
||||
SELECT DISTINCT s1 FROM t1;
|
||||
s1
|
||||
<EFBFBD>
|
||||
SELECT s1,COUNT(*) FROM t1 GROUP BY s1;
|
||||
s1 COUNT(*)
|
||||
<EFBFBD> 2
|
||||
SELECT COUNT(DISTINCT s1) FROM t1;
|
||||
COUNT(DISTINCT s1)
|
||||
1
|
||||
DROP TABLE t1;
|
||||
|
@ -73,3 +73,13 @@ select * from t1 where word like 'AE';
|
||||
select * from t1 where word like binary 0xDF;
|
||||
select * from t1 where word like CAST(0xDF as CHAR);
|
||||
drop table t1;
|
||||
|
||||
CREATE TABLE t1 (
|
||||
s1 CHAR(5) CHARACTER SET latin1 COLLATE latin1_german2_ci
|
||||
);
|
||||
INSERT INTO t1 VALUES ('<27>');
|
||||
INSERT INTO t1 VALUES ('ue');
|
||||
SELECT DISTINCT s1 FROM t1;
|
||||
SELECT s1,COUNT(*) FROM t1 GROUP BY s1;
|
||||
SELECT COUNT(DISTINCT s1) FROM t1;
|
||||
DROP TABLE t1;
|
||||
|
Reference in New Issue
Block a user