mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 13:25:49 +03:00
[GH-ISSUE #19] Wrong DELETE on non existent table #149
Labels
No labels
bug
enhancement
good first issue
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/DBDiff#149
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amontalban on GitHub (Aug 11, 2016).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/19
Hey guys,
I'm doing some tests with this great tool and I found this issue:
Server 1 (Source):
Server 2 (Destination):
I run the following command:
And it generates the following wrong output:
As you can see it generates a line with the following code for EACH row on the table:
Which is not valid and then it generates a
DROP TABLE(Which should be the one that needs to be executed).Unfortunately I can't share a dump of this data as it is confidential but have cases with tables with 44k rows and generates 44k lines of same
DELETE.Additionally I detected that when you do a simple
UPDATEof a field DBDiff generates aDELETEline and anINSERTinstead of doing anUPDATE, should I open a new issue for this?Thank you very much for this great tool and let me know if more info is needed!
@jasdeepkhalsa commented on GitHub (Aug 25, 2016):
Hi @amontalban ! Thanks for the info!
Are you able to provide some fake data so we can re-create this scenario?
Also regarding your point:
Yes, please open a new issue for this as I'd like to explore how this could be done in a cross-database way as I believe MySQL only has limited UPDATE functionality compared to certain DBs like Postgres for example?
@tinwonda commented on GitHub (Mar 23, 2018):
+1 I had the same problem as above
And
This command is invalid for mysql 5.6.22