1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-07-29 08:01:23 +03:00

Always invoke the profile callback even if the statement does not run to

completion.

FossilOrigin-Name: 202479aa0a62067343e724487960b8a039e2e978
This commit is contained in:
drh
2015-07-14 14:48:50 +00:00
parent ebad80e373
commit 201e0c68f7
4 changed files with 55 additions and 21 deletions

View File

@ -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 {