[MDEV-9558] `describe table` broken Created: 2016-02-15 Updated: 2016-03-15 Resolved: 2016-03-15 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Data Manipulation - Update |
| Affects Version/s: | 10.1.11 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Timothy Wachiuri | Assignee: | Unassigned |
| Resolution: | Incomplete | Votes: | 0 |
| Labels: | need_feedback | ||
| Environment: |
The operating system is Linux 2.6.32-573.8.1.el6.x86_64 x86_64. |
||
| Description |
|
One of my tables is losing the primary key every time I make an update on that particular table. Describe zizi_card_household
Where it should normally be
SHOW CREATE TABLE will give this statement which shows a primary key was defined. It's possible that entry is updated whenever the table is altered so it shows the table as it was last altered or created.
Attempting to add a primary key
at this point gives me
Repair table
Gives me this but it does solve the problem. The primary key returns but will get ruined the next time the table is updated.
The table and other tables have a trigger that updates a summary table. It deletes related rows and reconstructs them. It does something like
All other tables work just fine |
| Comments |
| Comment by Elena Stepanova [ 2016-02-15 ] | |||
|
Are there any warnings/errors in the error log? Are you able to experiment with the schema?
Then run updates on the new table and see if they cause the same effect. If you observe the same problem, please dump the schema and upload the dump to our ftp.askmonty.org/private if possible. If you can't reproduce the problem on the new table, but can share the data, please upload the binary datadir (not the dump, but files itself) to the same location. In either case please also paste or attach your cnf file(s) and specify which packages you are using. | |||
| Comment by Elena Stepanova [ 2016-03-15 ] | |||
|
Please comment to re-open if you have more information on the issue. |