summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunknown <bar@mysql.com>2004-09-09 12:23:10 +0500
committerunknown <bar@mysql.com>2004-09-09 12:23:10 +0500
commitc36356b6a4ac740f61f2a82a04f87213b06f40f5 (patch)
tree02df8145bebd50875cbc72e1f80efa2f4f074f4f
parenta366a0d1ed059765a2d6d5053f32bf9d0f5486be (diff)
downloadmariadb-git-c36356b6a4ac740f61f2a82a04f87213b06f40f5.tar.gz
Bug #5447 Select does not find records
Note, there is no need to propagate this change into 4.1. mysql-test/r/ctype_latin1_de.result: Bug #5447 Select does not find records mysql-test/t/ctype_latin1_de.test: Bug #5447 Select does not find records strings/ctype-latin1_de.c: Bug #5447 Select does not find records
-rw-r--r--mysql-test/r/ctype_latin1_de.result15
-rw-r--r--mysql-test/t/ctype_latin1_de.test14
-rw-r--r--strings/ctype-latin1_de.c2
3 files changed, 30 insertions, 1 deletions
diff --git a/mysql-test/r/ctype_latin1_de.result b/mysql-test/r/ctype_latin1_de.result
index 28394d9533a..c4bf6b5a3a9 100644
--- a/mysql-test/r/ctype_latin1_de.result
+++ b/mysql-test/r/ctype_latin1_de.result
@@ -267,3 +267,18 @@ select * from t1 where word like CAST(0xDF as CHAR);
word word2
ß ß
drop table t1;
+DROP TABLE IF EXISTS t1;
+CREATE TABLE t1 (
+autor varchar(80) NOT NULL default '',
+PRIMARY KEY (autor)
+);
+INSERT INTO t1 VALUES ('Powell, B.'),('Powell, Bud.'),('Powell, L. H.'),('Power, H.'),
+('Poynter, M. A. L. Lane'),('Poynting, J. H. und J. J. Thomson.'),('Pozzi, S(amuel-Jean).'),
+('Pozzi, Samuel-Jean.'),('Pozzo, A.'),('Pozzoli, Serge.');
+SELECT * FROM t1 WHERE autor LIKE 'Poz%' ORDER BY autor;
+autor
+Pozzi, S(amuel-Jean).
+Pozzi, Samuel-Jean.
+Pozzo, A.
+Pozzoli, Serge.
+DROP TABLE t1;
diff --git a/mysql-test/t/ctype_latin1_de.test b/mysql-test/t/ctype_latin1_de.test
index 3a0f2658969..d6c12683d94 100644
--- a/mysql-test/t/ctype_latin1_de.test
+++ b/mysql-test/t/ctype_latin1_de.test
@@ -72,3 +72,17 @@ select * from t1 where word like 'AE';
select * from t1 where word like 0xDF;
select * from t1 where word like CAST(0xDF as CHAR);
drop table t1;
+
+#
+# Bug #5447 Select does not find records
+#
+DROP TABLE IF EXISTS t1;
+CREATE TABLE t1 (
+ autor varchar(80) NOT NULL default '',
+ PRIMARY KEY (autor)
+);
+INSERT INTO t1 VALUES ('Powell, B.'),('Powell, Bud.'),('Powell, L. H.'),('Power, H.'),
+('Poynter, M. A. L. Lane'),('Poynting, J. H. und J. J. Thomson.'),('Pozzi, S(amuel-Jean).'),
+('Pozzi, Samuel-Jean.'),('Pozzo, A.'),('Pozzoli, Serge.');
+SELECT * FROM t1 WHERE autor LIKE 'Poz%' ORDER BY autor;
+DROP TABLE t1;
diff --git a/strings/ctype-latin1_de.c b/strings/ctype-latin1_de.c
index 5b7a68fb967..bc4327e921d 100644
--- a/strings/ctype-latin1_de.c
+++ b/strings/ctype-latin1_de.c
@@ -248,7 +248,7 @@ int my_strxfrm_latin1_de(uchar * dest, const uchar * src, int len)
*/
#define min_sort_char ((char) 0)
-#define max_sort_char ((char) 255)
+#define max_sort_char ((char) 0xF7)
#define wild_one '_'
#define wild_many '%'