Bug #1120 | Table name case sensitivity | ||
---|---|---|---|
Submitted: | 22 Aug 2003 8:20 | Modified: | 27 Aug 2003 13:14 |
Reporter: | m guckeyson | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server | Severity: | S2 (Serious) |
Version: | Ver 13.5 Distrib 4.1.0-alpha | OS: | pc-linux (i686) (mandrake 9.1) |
Assigned to: | CPU Architecture: | Any |
[22 Aug 2003 8:20]
m guckeyson
[22 Aug 2003 14:14]
Indrek Siitan
I tried repeating the bug, but could not. Am I overlooking something? mysql> create table Quotes (big int); Query OK, 0 rows affected (0.02 sec) mysql> create table quotes (small int); Query OK, 0 rows affected (0.00 sec) mysql> show tables; +---------------+ | Tables_in_bug | +---------------+ | Quotes | | quotes | +---------------+ 2 rows in set (0.00 sec) mysql> desc Quotes; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | big | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 1 row in set (0.01 sec) mysql> desc quotes; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | small | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 1 row in set (0.00 sec) mysql> desc Quotes; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | big | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 1 row in set (0.00 sec) ... beta# rm quotes.frm beta# ls -la total 16 drwx------ 2 mysql mysql 512 Aug 23 00:12 . drwxrwxr-x 75 mysql mysql 4096 Aug 23 00:11 .. -rw-rw---- 1 mysql mysql 0 Aug 23 00:11 Quotes.MYD -rw-rw---- 1 mysql mysql 1024 Aug 23 00:11 Quotes.MYI -rw-rw---- 1 mysql mysql 8558 Aug 23 00:11 Quotes.frm -rw-rw---- 1 mysql mysql 0 Aug 23 00:11 quotes.MYD -rw-rw---- 1 mysql mysql 1024 Aug 23 00:11 quotes.MYI ... mysql> flush tables; Query OK, 0 rows affected (0.01 sec) mysql> desc quotes; ERROR 1146: Table 'bug.quotes' doesn't exist mysql> desc Quotes; +-------+---------+------+-----+---------+-------+ | Field | Type | Null | Key | Default | Extra | +-------+---------+------+-----+---------+-------+ | big | int(11) | YES | | NULL | | +-------+---------+------+-----+---------+-------+ 1 row in set (0.00 sec)
[25 Aug 2003 8:02]
m guckeyson
Nope, you're not missing a thing. However, *I* am: mysql> create table Quotes (big int); Query OK, 0 rows affected (0.00 sec) mysql> create table quotes (small int); Query OK, 0 rows affected (0.00 sec) mysql> show tables; +---------------+ | Tables_in_bug | +---------------+ | Quotes | | quotes | +---------------+ 2 rows in set (0.00 sec) mysql> desc Quotes; +-------+---------+-----------+------+-----+---------+-------+ | Field | Type | Collation | Null | Key | Default | Extra | +-------+---------+-----------+------+-----+---------+-------+ | big | int(11) | binary | YES | | NULL | | +-------+---------+-----------+------+-----+---------+-------+ 1 row in set (0.00 sec) mysql> desc quotes; !This isn't correct! +-------+---------+-----------+------+-----+---------+-------+ | Field | Type | Collation | Null | Key | Default | Extra | +-------+---------+-----------+------+-----+---------+-------+ | big | int(11) | binary | YES | | NULL | | +-------+---------+-----------+------+-----+---------+-------+ 1 row in set (0.00 sec) mysql> desc Quotes; +-------+---------+-----------+------+-----+---------+-------+ | Field | Type | Collation | Null | Key | Default | Extra | +-------+---------+-----------+------+-----+---------+-------+ | big | int(11) | binary | YES | | NULL | | +-------+---------+-----------+------+-----+---------+-------+ 1 row in set (0.00 sec) Now this is where it gets even stranger: mysql> flush tables; Query OK, 0 rows affected (0.00 sec) mysql> desc quotes; +-------+---------+-----------+------+-----+---------+-------+ | Field | Type | Collation | Null | Key | Default | Extra | +-------+---------+-----------+------+-----+---------+-------+ | small | int(11) | binary | YES | | NULL | | +-------+---------+-----------+------+-----+---------+-------+ 1 row in set (0.00 sec) mysql> desc Quotes; +-------+---------+-----------+------+-----+---------+-------+ | Field | Type | Collation | Null | Key | Default | Extra | +-------+---------+-----------+------+-----+---------+-------+ | small | int(11) | binary | YES | | NULL | | +-------+---------+-----------+------+-----+---------+-------+ 1 row in set (0.00 sec) Is there some other information I can send along to make this easier to debug? I'm trying to find out exactly how it was built... anything else I should round up?
[25 Aug 2003 8:08]
m guckeyson
mySQL is the binary from mysql.com... the 4.1.0-Max version.
[27 Aug 2003 13:14]
Indrek Siitan
OK, I confirmed this with our development team - this is fixed in our source tree and will be fixed in 4.1.1.