Below is the list of changes that have just been committed into a local
5.0 repository of evgen. When evgen does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html
ChangeSet
1.2091 06/03/01 19:19:37 evgen@stripped +3 -0
Fixed bug#17374: The min_sort constant was defined to a wrong value.
The my_like_range_czech() function builds min and max keys. If length of the
provided key value is less than length of the key, then the rest is filled
with special character. In this case min_key was filled with 0. As a result
of this when the my_strnncollsp_czech() later trims trailling spaces it
assumes that rest of the key will be filled with space, not zero, and fails
the check.
The min_sort_char constant value changed to 0x20.
strings/ctype-czech.c
1.62 06/03/01 19:18:47 evgen@stripped +1 -1
Fixed bug#17374: The min_sort constant was defined to a wrong value.
The min_sort_char constant value changed to 0x20.
mysql-test/r/ctype_latin2.result
1.3 06/03/01 19:18:23 evgen@stripped +6 -1
Added test case for bug#17374: The min_sort constant was defined to a wrong value.
mysql-test/t/ctype_latin2.test
1.4 06/03/01 19:17:00 evgen@stripped +9 -0
Added test case for bug#17374: The min_sort constant was defined to a wrong value.
# This is a BitKeeper patch. What follows are the unified diffs for the
# set of deltas contained in the patch. The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User: evgen
# Host: moonbone.local
# Root: /work/17374-bug-5.0-mysql
--- 1.61/strings/ctype-czech.c 2005-10-13 18:09:53 +04:00
+++ 1.62/strings/ctype-czech.c 2006-03-01 19:18:47 +03:00
@@ -356,7 +356,7 @@
#ifdef REAL_MYSQL
-#define min_sort_char 0
+#define min_sort_char 0x20
#define max_sort_char '9'
#define EXAMPLE
--- 1.2/mysql-test/r/ctype_latin2.result 2005-05-06 17:41:38 +04:00
+++ 1.3/mysql-test/r/ctype_latin2.result 2006-03-01 19:18:23 +03:00
@@ -381,3 +381,11 @@
÷
ÿ
drop table t1;
+create table t1 (f1 int(5) not null, f2 char(255) not null primary key ) collate
latin2_czech_cs;
+insert into t1 values (1,'Aa');
+insert into t1 values (2,'Aas');
+select * from t1 where f2 like 'Aa%';
+f1 f2
+1 Aa
+2 Aas
+drop table t1;
--- 1.3/mysql-test/t/ctype_latin2.test 2005-07-28 04:21:40 +04:00
+++ 1.4/mysql-test/t/ctype_latin2.test 2006-03-01 19:17:00 +03:00
@@ -50,3 +50,12 @@
drop table t1;
# End of 4.1 tests
+
+#
+# Bug#17374
+#
+create table t1 (f1 int(5) not null, f2 char(255) not null primary key ) collate
latin2_czech_cs;
+insert into t1 values (1,'Aa');
+insert into t1 values (2,'Aas');
+select * from t1 where f2 like 'Aa%';
+drop table t1;
| Thread |
|---|
| • bk commit into 5.0 tree (evgen:1.2091) BUG#17374 | eugene | 1 Mar |