aboutsummaryrefslogtreecommitdiff
path: root/callback.go
diff options
context:
space:
mode:
authorsqweek <sqweek@gmail.com>2016-04-18 19:49:17 +0800
committersqweek <sqweek@gmail.com>2016-04-18 21:47:24 +0800
commit727ad200a2f6cdd698bb0e3253f51d36d269bb9e (patch)
tree5e90a2f806336d5874092844e3f2d30969800b3b /callback.go
parentMerge pull request #298 from shaxbee/master (diff)
downloadgolite-727ad200a2f6cdd698bb0e3253f51d36d269bb9e.tar.gz
golite-727ad200a2f6cdd698bb0e3253f51d36d269bb9e.tar.xz
Fix inconsistent tx state with database/sql.
The semantics of sql.Tx.Commit impose that the transaction is finished and cleaned up by the time the driver's Commit function returns. However sqlite3 leaves the transaction open if COMMIT fails due to an SQLITE_BUSY error, so *we* must clean it up. Closes #184.
Diffstat (limited to 'callback.go')
0 files changed, 0 insertions, 0 deletions