pt-online-schema-change needs to lowercase columns names when renaming
Bug #1705998 reported by
Imri Zvik
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Fix Committed
|
Medium
|
Carlos Salguero |
Bug Description
I have a table with a column like this:
`Last_referenced` datetime NOT NULL,
I try to run an alter similar to this:
CHANGE COLUMN `Last_referenced` `test_column_
But Last_referenced and test_column_rename doesn't appear in the common columns list, and therefore not included in the INSERT statement of the batch copy, resulting data loss (in this specific case, it fails since the column has no default value).
The root cause is that the check in find_renamed_cols (https:/
Changed in percona-toolkit: | |
status: | Incomplete → New |
assignee: | nobody → Jericho Rivera (jericho-rivera) |
Changed in percona-toolkit: | |
status: | Invalid → Triaged |
importance: | Undecided → Medium |
assignee: | nobody → Carlos Salguero (carlos-salguero) |
tags: | added: pt186 |
To post a comment you must log in.
Please provide a test case that we can reproduce, like a simple table and the full pt-osc command you used to alter this table. We will also need the exact pt-osc version used and errors encountered when the tool was executed.