[MDEV-12801] "Create table like" statement ignores capitalization Created: 2017-05-15 Updated: 2023-04-27 |
|
| Status: | Confirmed |
| Project: | MariaDB Server |
| Component/s: | Platform Windows, Server |
| Affects Version/s: | 5.5, 10.0, 10.1, 10.1.23, 10.2 |
| Fix Version/s: | 10.4, 10.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Martin Niemeier | Assignee: | Oleksandr Byelkin |
| Resolution: | Unresolved | Votes: | 2 |
| Labels: | upstream-fixed | ||
| Environment: |
Windows 7, 64Bit, |
||
| Issue Links: |
|
||||||||
| Description |
|
I am running a MariaDB server on Windows with lower_case_table_names=2 (i.e. names are stored as declared, but compared in lowercase). If I create a new table using the "CREATE TABLE LIKE" statement, the capitalization
After execution, the second table is called "anothertable" in the database, not "AnotherTable" as expected. Might be related to MDEV-12800 |
| Comments |
| Comment by Martin Niemeier [ 2017-05-15 ] |
|
Capitalization is also ignored when creating a view, e.g.:
Results in a view called "a-view", not "A-View" as expected. I refrain from creating a separate bug report as both bugs probably have the same cause. |
| Comment by Elena Stepanova [ 2017-05-18 ] |
|
Thanks for the report. Reproducible on all of 5.5 - 10.2, as well as on MySQL 5.5. Not reproducible on 5.6, 5.7. |
| Comment by Martin Niemeier [ 2017-06-12 ] |
|
Well, it does not cause "real problems" as there is a workaround, its more of an inconvenience. The workaround is to first create a the table with a temporary name, and then rename it to the intended name, e.g.
This way, the capitalization is correct. |