Closed goneri closed 9 years ago
coveralls is on crack again :)
Looks like this fixes the situation i mentioned here: https://github.com/RedTurtle/eve-sqlalchemy/issues/64
@mmiz, thanks for the feedback.
@amleczko, can you please have a look at the PR?
I will check it next week
@amleczko for the record, I use this branch daily since august with without any problem.
right @goneri, thanks
thanks @amleczko.
I have merged it to develop
branch and will release soon.
So far, PUT was calling replace() to drop, commit, recreate the item. By doing this, we can get the situation where the initial drop break the foreign keys of the other tables. Instead, if we do the drop/recreate in the same transaction, the constraint engine will ignore the unstable situation.
This commit extend the code coverage:
See: https://www.sqlite.org/pragma.html