Bug #12981 index on a 'char() binary' field case-insensitive
| Submitted: | 5 Sep 2005 7:41 | Modified: | 5 Sep 2005 12:51 |
|---|---|---|---|
| Reporter: | sean finney | Email Updates: | |
| Status: | Can't repeat | Impact on me: | |
| Category: | MySQL Server | Severity: | S3 (Non-critical) |
| Version: | 4.1.13a | OS: | Linux (Debian GNU/Linux) |
| Assigned to: | CPU Architecture: | Any |
[5 Sep 2005 7:41]
sean finney
[5 Sep 2005 12:51]
Valeriy Kravchuk
I tried to repeat this behaviour on newer 4.1.14 (Windows) and 4.1.15-BK (Linux), with MyISAM table type, but was unable to do it:
mysql> DROP TABLE IF EXISTS distmtimes;
Query OK, 0 rows affected, 1 warning (0,03 sec)
mysql> CREATE TABLE distmtimes (
-> dist char(128) binary NOT NULL default '',
-> distmtime char(10) default NULL,
-> distmdatetime datetime NOT NULL default '0000-00-00 00:00:00',
-> PRIMARY KEY (dist)
-> ) Engine=MyISAM PACK_KEYS=1;
Query OK, 0 rows affected (0,00 sec)
mysql> INSERT INTO distmtimes VALUES ('J/JO/JONO/CPAN.html','966270168','2000-08-14 18:22:48');
Query OK, 1 row affected (0,00 sec)
mysql> IINSERT INTO distmtimes VALUES ('J/JO/JONO/cpan.html','1004130109','2001-10-26 23:01:49');
Query OK, 1 row affected (0,00 sec)
mysql> select * from distmtimes;
+---------------------+------------+---------------------+
| dist | distmtime | distmdatetime |
+---------------------+------------+---------------------+
| J/JO/JONO/CPAN.html | 966270168 | 2000-08-14 18:22:48 |
| J/JO/JONO/cpan.html | 1004130109 | 2001-10-26 23:01:49 |
+---------------------+------------+---------------------+
2 rows in set (0,00 sec)
mysql> select version();
+-----------+
| version() |
+-----------+
| 4.1.15 |
+-----------+
1 row in set (0,01 sec)
According to the manual (http://dev.mysql.com/doc/mysql/en/isam-storage-engine.html), ISAM is a depricated engine.
Try to repeat this test case on latest 4.1.x versions of MySQL with MyISAM and reopen the bug report if the problem still exists.
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.055 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.