Incredibly cryptic error when running DB transaction
I have this piece of code:
And it keeps causing this cryptic error every time it's run:
The error goes away when I comment out the second line, but I don't understand why. The update call is supposed to just not find any entries matching the query (given the current state of my DB) and simply update nothing, but instead it errors out.
And it keeps causing this cryptic error every time it's run:
The error goes away when I comment out the second line, but I don't understand why. The update call is supposed to just not find any entries matching the query (given the current state of my DB) and simply update nothing, but instead it errors out.