Bug #32063 | "create table like" works case-significant only in "embedded" server (libmysqld) | ||
---|---|---|---|
Submitted: | 2 Nov 2007 21:43 | Modified: | 18 Dec 2007 4:55 |
Reporter: | Joerg Bruehe | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Embedded Library ( libmysqld ) | Severity: | S3 (Non-critical) |
Version: | 4.1.24 | OS: | Any |
Assigned to: | Alexey Botchkov | CPU Architecture: | Any |
[2 Nov 2007 21:43]
Joerg Bruehe
[10 Nov 2007 12:59]
Bugs System
A patch for this bug has been committed. After review, it may be pushed to the relevant source trees for release in the next version. You can access the patch from: http://lists.mysql.com/commits/37513 ChangeSet@1.2688, 2007-11-10 16:54:25+04:00, holyfoot@mysql.com +1 -0 Bug #32063 "create table like" works case-significant only in "embedded" server (libmysqld) in mysql_creata_like_table() we 'downcase' the complete path to the .frm file. It works fine in standalone case as there usually we only have './' as a path to the datahome, but doesn't work in the embedded server where we add the real path there, so if a directory has uppercase letters in it's name, it won't be found. Fixed by 'downcasing' only database/table pair.
[23 Nov 2007 5:15]
Alexander Barkov
The patch http://lists.mysql.com/commits/37513 is ok to push. P.S. It will possibly need some tuning when merging to 5.1, related to "table name to file name encoding".
[14 Dec 2007 8:13]
Bugs System
Pushed into 4.1.24
[14 Dec 2007 8:14]
Bugs System
Pushed into 5.0.54
[14 Dec 2007 8:17]
Bugs System
Pushed into 5.1.23-rc
[14 Dec 2007 8:20]
Bugs System
Pushed into 6.0.5-alpha
[18 Dec 2007 4:55]
Paul DuBois
Noted in 4.1.24, 5.0.54, 5.1.23, 6.0.5 changelogs. With lower_case_table_names set, CREATE TABLE LIKE was treated differently by libmysqld than by the non-embedded server.