aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <>2023-01-12 19:51:49 +0000
committerdrh <>2023-01-12 19:51:49 +0000
commit2fc9dc9330513fa7c5a5c722af8f9e21646f32e6 (patch)
treeea72baf1d03cfce18aaf530c0677d30a7c156f72 /src/tclsqlite.c
parentf84cbd167689edf19c4905e515325a3a0c7cabe4 (diff)
downloadsqlite-2fc9dc9330513fa7c5a5c722af8f9e21646f32e6.tar.gz
sqlite-2fc9dc9330513fa7c5a5c722af8f9e21646f32e6.zip
Fix sqlite3_prepare() so that it only invokes the progress handler on every
N-th call to sqlite3ProgressCheck(), where N is the progress handler step count. Also fix faulty asserts exposed by the ability to interrupt in the middle of sqlite3_prepare(). FossilOrigin-Name: 05461651599bb490ac6cfd893645dabab9cccedc6adcce15aee2487b2ea6027a
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 4e25a6501..c455c29f1 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -3054,6 +3054,9 @@ deserialize_error:
if( pDb->zProgress ){
Tcl_AppendResult(interp, pDb->zProgress, (char*)0);
}
+#ifndef SQLITE_OMIT_PROGRESS_CALLBACK
+ sqlite3_progress_handler(pDb->db, 0, 0, 0);
+#endif
}else if( objc==4 ){
char *zProgress;
int len;