mirror of
https://github.com/sqlite/sqlite.git
synced 2025-08-08 14:02:16 +03:00
Avoid zeroing the value returned by sqlite3_changes() when a DML statement is automatically reprepared in sqlite3_step().
FossilOrigin-Name: 09c8f9f1970cd5b369d98a2b38f0b04d44ed095cb0bda80f7968bb6be4e0263b
This commit is contained in:
@@ -3880,6 +3880,11 @@ case OP_Transaction: {
|
||||
}
|
||||
p->expired = 1;
|
||||
rc = SQLITE_SCHEMA;
|
||||
|
||||
/* Set changeCntOn to 0 to prevent the value returned by sqlite3_changes()
|
||||
** from being modified in sqlite3VdbeHalt(). If this statement is
|
||||
** reprepared, changeCntOn will be set again. */
|
||||
p->changeCntOn = 0;
|
||||
}
|
||||
if( rc ) goto abort_due_to_error;
|
||||
break;
|
||||
|
Reference in New Issue
Block a user