[MDEV-23852] alter table rename column to uppercase doesn't work Created: 2020-09-30 Updated: 2020-10-20 Resolved: 2020-10-20 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Data Definition - Alter Table |
| Affects Version/s: | 10.5.5, 10.5 |
| Fix Version/s: | 10.5.7 |
| Type: | Bug | Priority: | Major |
| Reporter: | Georg Richter | Assignee: | Aleksey Midenkov |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||||||||||
| Description |
|
When trying to change a column name (lowercase to uppercase) it has no effect: MariaDB 10.5.5:
MySQL 8.0.21:
|
| Comments |
| Comment by Oleksandr Byelkin [ 2020-10-14 ] | |||||
|
it is not case insensitive (as you call it during our call ) check it is per-byte-check (may be you know better term) which is different things for some languages, so fix comment: OK to push after changes. | |||||
| Comment by Marko Mäkelä [ 2020-10-20 ] | |||||
|
sanja, midenok, is this bug really only affecting the 10.5 series? There was a somewhat related change in MariaDB 10.3.1 that changed some comparisons to case-insensitive, but not this one. Did anyone review those changes? For InnoDB, not only column names but also index and table names are case sensitive. It turns out that this bug was there since the introduction of the FIELD_IS_RENAMED flag (MariaDB 10.0.10, MariaDB 10.1.0). | |||||
| Comment by Marko Mäkelä [ 2020-10-20 ] | |||||
|
While the RENAME COLUMN syntax is new in MariaDB 10.5, renaming columns as a quick metadata-only operation was supported since MariaDB 10.0 (and MySQL 5.6). The original syntax for renaming columns should still work:
I tested this in 10.2, and it appears that the column will be renamed. Maybe this test is covering some other code path? |