diff options
author | drh <drh@noemail.net> | 2017-06-29 12:49:18 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2017-06-29 12:49:18 +0000 |
commit | 00d11d400b05e40fd9a2d52033bebc369f07ba04 (patch) | |
tree | 5c313165e38569725deaaba4d8a4947166b7e258 /src/vdbeaux.c | |
parent | f00f530b7d4b87c894fd1968fc3334c50a160595 (diff) | |
download | sqlite-00d11d400b05e40fd9a2d52033bebc369f07ba04.tar.gz sqlite-00d11d400b05e40fd9a2d52033bebc369f07ba04.zip |
Add the SQLITE_STMTSTATUS_REPREPARE and SQLITE_STMTSTATUS_RUN options to
sqlite3_stmt_status(). Use this for two new columns in the stmts virtual
table.
FossilOrigin-Name: b0b0c8f8d548ef78584ab714ab120b01c1b83fc0d8ae2fd7626b970bab9fca58
Diffstat (limited to 'src/vdbeaux.c')
-rw-r--r-- | src/vdbeaux.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vdbeaux.c b/src/vdbeaux.c index aabc13275..51622d8a2 100644 --- a/src/vdbeaux.c +++ b/src/vdbeaux.c @@ -87,6 +87,9 @@ void sqlite3VdbeSwap(Vdbe *pA, Vdbe *pB){ pB->zSql = zTmp; pB->isPrepareV2 = pA->isPrepareV2; pB->expmask = pA->expmask; + memcpy(pB->aCounter, pA->aCounter, sizeof(pB->aCounter)); + pB->aCounter[SQLITE_STMTSTATUS_REPREPARE]++; + } /* |