[MDEV-8582] innodb_force_primary_key option does not force PK or unique key Created: 2015-08-07 Updated: 2015-08-08 Resolved: 2015-08-08 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Storage Engine - InnoDB, Storage Engine - XtraDB |
| Affects Version/s: | 10.1 |
| Fix Version/s: | 10.1.7 |
| Type: | Bug | Priority: | Critical |
| Reporter: | Elena Stepanova | Assignee: | Jan Lindström (Inactive) |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Description |
|
The option only forces a key (any key) on not nullable columns. As I understand from
|
| Comments |
| Comment by Jan Lindström (Inactive) [ 2015-08-08 ] | ||||
|
commit 3307eaab68bf4818116a4fdd10b1a4f3427ea2ae Analysis: Handler table flag HA_REQUIRE_PRIMARY_KEY alone is not enough Fix: Add additional check that table really has primary key or | ||||
| Comment by Jan Lindström (Inactive) [ 2015-08-08 ] | ||||
|
Incorrect fix (hides the real bug). Real bug in sql_table.cc:
should be, of course
| ||||
| Comment by Jan Lindström (Inactive) [ 2015-08-08 ] | ||||
|
http://lists.askmonty.org/pipermail/commits/2015-August/008245.html | ||||
| Comment by Sergei Golubchik [ 2015-08-08 ] | ||||
|
Perfect, thanks! | ||||
| Comment by Jan Lindström (Inactive) [ 2015-08-08 ] | ||||
|
commit 46ad86f6a35aff59ecb68a23dba228e5796e935a Analysis: Handler used table flag HA_REQUIRE_PRIMARY_KEY but a bug on |