[MDEV-15021] mysqldump --tables --routines generates non importable dump file Created: 2018-01-22 Updated: 2018-06-10 Resolved: 2018-06-10 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 5.5, 10.0, 10.1, 5.5.56, 10.2.8, 10.2 |
| Fix Version/s: | 5.5.61, 10.0.36, 10.1.34, 10.2.16, 10.3.8 |
| Type: | Bug | Priority: | Major |
| Reporter: | Martin Häcker | Assignee: | Rutuja Surve (Inactive) |
| Resolution: | Fixed | Votes: | 1 |
| Labels: | beginner-friendly, contribution, foundation, patch, upstream | ||
| Environment: |
Mac OS X 10.13.2, CentOS 7.4.1708 |
||
| Attachments: |
|
| Description |
|
When exporting some views and routines together (to separate manually and automatically managed parts of a schema) with `mysqldump ... --routines --tabels table1 table2 ...` I noticed that the generated dump-file is not importable again, because the routines are ordered after all the tables/ views and thus views that use them cannot be imported. I have attached a test dump that I generated that shows this problem. Workaround: Using negative logic and instead listing all the tables/views to skip seems to not trigger this bug. |
| Comments |
| Comment by Martin Häcker [ 2018-01-22 ] | |||||||||||||||
|
Oh by the way: in this file I attached, the views do not use the routines, but im my production db they do. Sorry if this has created confusion. | |||||||||||||||
| Comment by Elena Stepanova [ 2018-01-23 ] | |||||||||||||||
|
Thanks for the report. Reproducible on all versions of MariaDB (5.5-10.3) and MySQL (5.5-8.0).
| |||||||||||||||
| Comment by Vicențiu Ciorbaru [ 2018-06-10 ] | |||||||||||||||
|
Fixed with 1d43f71c7b4c39a6fd196c104b5ebafb65376199 |