Replies: 1 comment 2 replies
-
|
Hi @VentanYu, can you please share more info on how this happened? What you are showing should not be possible. If two records with the same primary key are being saved that would be a pretty serious SQLite bug, but I doubt that is the case. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Table definition:
Sql called by
upsert(a record already exists before calling it, using this record to modify and then call upsert):Print the updated query results:
It can be seen that the result did not update the original data, but instead inserted a row with a duplicate primary key.
The current package versions are all the latest. I've been debugging for a long time but still can't find any clue.
Beta Was this translation helpful? Give feedback.
All reactions