Transactions commit on the last sqlite3_step(), not on sqlite3_finalize().

This allows the sqlite3_step() to return SQLITE_BUSY if the commit is
blocked by a lock.  Ticket #885. (CVS 1928)

FossilOrigin-Name: d1b29156558f1c576002cdb2544dffaa693da39b
This commit is contained in:
drh
2004-09-02 14:57:08 +00:00
parent 66cbd1543b
commit 92f02c31d4
12 changed files with 240 additions and 100 deletions
+2 -2
View File
@@ -11,7 +11,7 @@
# This file implements regression tests for SQLite library. The
# focus of this script testing the callback-free C/C++ API.
#
# $Id: capi3.test,v 1.20 2004/07/22 15:02:26 drh Exp $
# $Id: capi3.test,v 1.21 2004/09/02 14:57:09 drh Exp $
#
set testdir [file dirname $argv0]
@@ -536,7 +536,7 @@ if {![sqlite3 -has-codec]} {
btree_close_cursor $::bc
btree_commit $::bt
btree_close $::bt
} {}
} {};
do_test capi3-8.5 {
db close
sqlite3 db test.db