aboutsummaryrefslogtreecommitdiff
path: root/src/tclsqlite.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2018-03-10 20:25:08 +0000
committerdrh <drh@noemail.net>2018-03-10 20:25:08 +0000
commitffdab721a38756d4301ae90bae104fb6fcdbd393 (patch)
tree44eaffcf1417329dbc892f64d0deb2682cd34fa1 /src/tclsqlite.c
parent42f3c5ff25ab12b2b9a9c96d657e89f13ec186a0 (diff)
downloadsqlite-ffdab721a38756d4301ae90bae104fb6fcdbd393.tar.gz
sqlite-ffdab721a38756d4301ae90bae104fb6fcdbd393.zip
Fix the second callback argument to the "profile" response of the
"trace_v2" method in the TCL interface so that it shows the actual number of nanoseconds for the command, not the address of the variable containing the number of nanoseconds. FossilOrigin-Name: 8f9a12518642e5be9760956ff345fe54ed5bd3cab55328e88312278d3d78bc76
Diffstat (limited to 'src/tclsqlite.c')
-rw-r--r--src/tclsqlite.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tclsqlite.c b/src/tclsqlite.c
index 285fbbda2..e5984ec80 100644
--- a/src/tclsqlite.c
+++ b/src/tclsqlite.c
@@ -648,7 +648,7 @@ static int DbTraceV2Handler(
}
case SQLITE_TRACE_PROFILE: {
sqlite3_stmt *pStmt = (sqlite3_stmt *)pd;
- sqlite3_int64 ns = (sqlite3_int64)xd;
+ sqlite3_int64 ns = *(sqlite3_int64*)xd;
pCmd = Tcl_NewStringObj(pDb->zTraceV2, -1);
Tcl_IncrRefCount(pCmd);