1
0
mirror of https://github.com/sqlite/sqlite.git synced 2025-08-07 02:42:48 +03:00

Avoid having to reinitialize Vdbe.pResultRow upon each call to sqlite3_step()

for a small size reduction and performance increase.

FossilOrigin-Name: 6a00d67f5955ab86eea982c27b3a03b680fdf644ec63f49586ade6342a4d64a6
This commit is contained in:
drh
2022-12-22 19:12:48 +00:00
parent edc2713fdc
commit cce70d52d0
5 changed files with 10 additions and 12 deletions

View File

@@ -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);