mirror of
https://github.com/DBDiff/DBDiff.git
synced 2026-04-25 13:25:49 +03:00
[GH-ISSUE #53] Edited row in table does not compre in diff #39
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#39
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 @stevevg on GitHub (Jun 13, 2017).
Original GitHub issue: https://github.com/DBDiff/DBDiff/issues/53
Hello, I've tried to clone a database, edit a single value in a table row, and launch the program.
The edit passed unnoted, and no diff file was generated.
Conversely, editing the primary key of the table is noted and the diff file is generated.
The databases reside on the same (local VM) server.
@P-Zenker commented on GitHub (Jul 26, 2017):
Yeah, I've got the same issue. But there are some tables with working diffs...
With a test-table I figured out, that if there are (only) nullable rows, diff doesn't work.
@jasdeepkhalsa commented on GitHub (Nov 24, 2017):
Hi @stevevg,
Please can you post the exact command you're giving to DBDiff?
Also if possible could you post the two tables/databases which you're comparing and which is failing for you?
Thanks
@ruancilliers commented on GitHub (Dec 7, 2017):
Dear All,
Excellent program. LUV it! Also encountered the same problem with a row that had NULLs. If I update any field from a field that had a NULL value then the diff don't pick it up. Here is a screen shot of the two rows that don't work. Try it...


Let me know if there is any questions. Great program!!!
Ruan Cilliers
@ruancilliers commented on GitHub (Dec 7, 2017):
Also here is the schema definition of the table. Once I change the "end" field to a value which is not NULL then dbDiff picks up the difference, but if I keep it NULL it does not recognize the diff at all and ignores that line...

@dev-jan commented on GitHub (Apr 26, 2018):
I fixed the problem in my pull request.
A workaround is to set one of the servers to "another" host.
Example:
server1-host = localhost
server2-host = 127.0.0.1
@bojidar-bg commented on GitHub (Mar 15, 2023):
Just ran into that issue myself, fixed it similar to dev-jan's PR, changing
github.com/DBDiff/DBDiff@0a0021e2e1/src/DB/Data/LocalTableData.php (L109)to
(which is ugly, but got the job done, so..)