aboutsummaryrefslogtreecommitdiff
path: root/src/vdbeapi.c
diff options
context:
space:
mode:
authordrh <>2022-12-22 19:12:48 +0000
committerdrh <>2022-12-22 19:12:48 +0000
commitcce70d52d0ac5c06a781a4d19e6807bba68a00ce (patch)
treeb9bb358c95dc546cb9bb3ae82f8ff9223f715b8b /src/vdbeapi.c
parentedc2713fdc8cecfcc2821da5469bd609418db174 (diff)
downloadsqlite-cce70d52d0ac5c06a781a4d19e6807bba68a00ce.tar.gz
sqlite-cce70d52d0ac5c06a781a4d19e6807bba68a00ce.zip
Avoid having to reinitialize Vdbe.pResultRow upon each call to sqlite3_step()
for a small size reduction and performance increase. FossilOrigin-Name: 6a00d67f5955ab86eea982c27b3a03b680fdf644ec63f49586ade6342a4d64a6
Diffstat (limited to 'src/vdbeapi.c')
-rw-r--r--src/vdbeapi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vdbeapi.c b/src/vdbeapi.c
index 34727c30e..e080449c5 100644
--- a/src/vdbeapi.c
+++ b/src/vdbeapi.c
@@ -753,7 +753,7 @@ static int sqlite3Step(Vdbe *p){
/* If the statement completed successfully, invoke the profile callback */
checkProfileCallback(db, p);
#endif
-
+ p->pResultRow = 0;
if( rc==SQLITE_DONE && db->autoCommit ){
assert( p->rc==SQLITE_OK );
p->rc = doWalCallbacks(db);