diff options
author | drh <drh@noemail.net> | 2002-04-12 10:08:59 +0000 |
---|---|---|
committer | drh <drh@noemail.net> | 2002-04-12 10:08:59 +0000 |
commit | c8d30ac10998ef532f368524fc6be4eac81f4a43 (patch) | |
tree | 9a8765eea0b168b5ec1260551b4381d5a90d34f6 /src/insert.c | |
parent | b04a5d8768573f2bd257ee1ef7caa7bb550bac40 (diff) | |
download | sqlite-c8d30ac10998ef532f368524fc6be4eac81f4a43.tar.gz sqlite-c8d30ac10998ef532f368524fc6be4eac81f4a43.zip |
Fix for bug #15: Add the sqlite_changes() API function for retrieving the
number of rows that changed in the previous operation. (CVS 526)
FossilOrigin-Name: 6e71493b9dc77d508c3ce90562766789e87e6d80
Diffstat (limited to 'src/insert.c')
-rw-r--r-- | src/insert.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/insert.c b/src/insert.c index 94867c55b..a848ee12b 100644 --- a/src/insert.c +++ b/src/insert.c @@ -12,7 +12,7 @@ ** This file contains C code routines that are called by the parser ** to handle INSERT statements in SQLite. ** -** $Id: insert.c,v 1.51 2002/04/12 03:55:16 drh Exp $ +** $Id: insert.c,v 1.52 2002/04/12 10:08:59 drh Exp $ */ #include "sqliteInt.h" @@ -526,7 +526,7 @@ void sqliteGenerateConstraintChecks( break; } case OE_Replace: { - sqliteGenerateRowDelete(v, pTab, base); + sqliteGenerateRowDelete(v, pTab, base, 0); if( isUpdate ){ sqliteVdbeAddOp(v, OP_Dup, nCol+extra+1+hasTwoRecnos, 1); sqliteVdbeAddOp(v, OP_MoveTo, base, 0); @@ -573,7 +573,7 @@ void sqliteCompleteInsertion( sqliteVdbeAddOp(v, OP_IdxPut, base+i+1, 0); } sqliteVdbeAddOp(v, OP_MakeRecord, pTab->nCol, 0); - sqliteVdbeAddOp(v, OP_PutIntKey, base, 0); + sqliteVdbeAddOp(v, OP_PutIntKey, base, 1); if( isUpdate && recnoChng ){ sqliteVdbeAddOp(v, OP_Pop, 1, 0); } |