[MDEV-31191] mysqldump bad format when using CHECK and COMMENT Created: 2023-05-04 Updated: 2023-05-05 Resolved: 2023-05-05 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Admin statements, Scripts & Clients |
| Affects Version/s: | 10.3.35 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Minor |
| Reporter: | Martín Alfano | Assignee: | Daniel Black |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Linux |
||
| Issue Links: |
|
||||||||
| Description |
|
If the table has a CHECK and a COMMENT and mysqldump is used with this table, then the output will be like: ... But when trying to import that, this error is shown: ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'COMMENT 'lala', If the order is changed manually, this is, COMMENT first and then CHECK, it works. |
| Comments |
| Comment by Daniel Black [ 2023-05-05 ] | ||||||||||||||||||||||
|
mysqldump just uses show create table. This appears to be fixed in at least the 10.3 instance about to be released. https://dbfiddle.uk/jhbJ8KGC - 10.3.36 has this fixed. |