summaryrefslogtreecommitdiff
path: root/tests/basic
diff options
context:
space:
mode:
authorAymeric Augustin <aymeric.augustin@m4x.org>2013-03-13 14:08:32 +0100
committerAymeric Augustin <aymeric.augustin@m4x.org>2013-03-13 15:17:40 +0100
commit83a416f5e764705ed553f3513bdf9587270554c6 (patch)
tree424db67229a35ba0b4b1e88cb54063fc98dbbe3d /tests/basic
parentbd0cba58aafe582526086de86136060cedde38cf (diff)
Made atomic usable when autocommit is off.
Thanks Anssi for haggling until I implemented this. This change alleviates the need for atomic_if_autocommit. When autocommit is disabled for a database, atomic will simply create and release savepoints, and not commit anything. This honors the contract of not doing any transaction management. This change also makes the hack to allow using atomic within the legacy transaction management redundant. None of the above will work with SQLite, because of a flaw in the design of the sqlite3 library. This is a known limitation that cannot be lifted without unacceptable side effects eg. triggering arbitrary commits.
Diffstat (limited to 'tests/basic')
0 files changed, 0 insertions, 0 deletions