aboutsummaryrefslogtreecommitdiff
path: root/test/trace.test
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2015-07-14 14:48:50 +0000
committerdrh <drh@noemail.net>2015-07-14 14:48:50 +0000
commit201e0c68f7d5d19ba759f56fadd0d58c838c41f9 (patch)
tree42b4e67d1429509432cdbb6d2892d16fa1182d52 /test/trace.test
parentebad80e3733d223b5b54dc3c76bb0ef818715bd2 (diff)
downloadsqlite-201e0c68f7d5d19ba759f56fadd0d58c838c41f9.tar.gz
sqlite-201e0c68f7d5d19ba759f56fadd0d58c838c41f9.zip
Always invoke the profile callback even if the statement does not run to
completion. FossilOrigin-Name: 202479aa0a62067343e724487960b8a039e2e978
Diffstat (limited to 'test/trace.test')
-rw-r--r--test/trace.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/trace.test b/test/trace.test
index a64cc333f..fd51d7ab6 100644
--- a/test/trace.test
+++ b/test/trace.test
@@ -169,6 +169,14 @@ do_test trace-4.5 {
} {{SELECT * FROM t1}}
catch {sqlite3_finalize $STMT}
+# 3.8.11: Profile output even if the statement is not run to completion.
+do_test trace-4.6 {
+ set TRACE_OUT {}
+ db eval {SELECT * FROM t1} {} {if {$a>=1} break}
+ set TRACE_OUT
+} {{SELECT * FROM t1}}
+
+
# Trigger tracing.
#
ifcapable trigger {