[MDEV-15726] CREATE TABLE ... LIKE ... - drop column without droping key with it Created: 2018-03-29 Updated: 2018-03-29 Resolved: 2018-03-29 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB |
| Affects Version/s: | 10.2.13 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Alexander Zimnitski | Assignee: | Sergei Golubchik |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 7 x64 |
||
| Description |
|
Trying to run script. Got error: "Key column 'id' doesn't exist in table"
|
| Comments |
| Comment by Sergei Golubchik [ 2018-03-29 ] | |
|
What key definition would you expect as a result — UNIQUE KEY (d_start,d_end) ?
Note that there's no need to drop the primary key, it'll be dropped automatically, because you've dropped all columns in it. |