[MDEV-9124] mysqldump does not dump data if table name is same as view earlier on Created: 2015-11-12 Updated: 2015-11-13 Resolved: 2015-11-13 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Scripts & Clients |
| Affects Version/s: | 10.1.5, 10.1.8, 10.1 |
| Fix Version/s: | 10.1.9 |
| Type: | Bug | Priority: | Blocker |
| Reporter: | Michaël de groot | Assignee: | Elena Stepanova |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | regression | ||
| Description |
|
Hi everybody, If mysqldump is run with -A (--all-databases) and a VIEW with the same name is exported as the next schema where it is a table it will not export any of the table's data. Test script:
Then, dump the data:
And verify that the INSERT INTO uniquename is not present in the dump file. Please verify that 'dump_first' is dumped as first database and 'dumped_last' is dumped as second database. Also -A (or probably --all-databases) is required for this to occur. The dump file gives a note about the 'Temporary table structure':
|
| Comments |
| Comment by Elena Stepanova [ 2015-11-12 ] | |||||||||||||
|
Thanks for the report. The problem was introduced by the following commit:
I'm setting it to blocker because it's a regression and potential data loss. | |||||||||||||
| Comment by Elena Stepanova [ 2015-11-12 ] | |||||||||||||
|
I think this should fix it:
| |||||||||||||
| Comment by Elena Stepanova [ 2015-11-13 ] | |||||||||||||
| |||||||||||||
| Comment by Elena Stepanova [ 2015-11-13 ] | |||||||||||||
|
https://github.com/MariaDB/server/commit/2828c2be554b62646fc990ac28b4aef20cd9b9d2 |