aboutsummaryrefslogtreecommitdiff
path: root/src/insert.c
diff options
context:
space:
mode:
authordrh <drh@noemail.net>2006-01-08 18:10:17 +0000
committerdrh <drh@noemail.net>2006-01-08 18:10:17 +0000
commit15007a99e4ba8f5601ed9a431a05c3ee503c2bfa (patch)
tree44b031bdc4ff766a48e561579e346dda7e46dda6 /src/insert.c
parent6f58f7069ba7c2cb5844893ad4a511524261e7ef (diff)
downloadsqlite-15007a99e4ba8f5601ed9a431a05c3ee503c2bfa.tar.gz
sqlite-15007a99e4ba8f5601ed9a431a05c3ee503c2bfa.zip
Get LIMIT and OFFSET working again for negative limits and offsets.
Ticket #1586. (CVS 2889) FossilOrigin-Name: b2ac0be07ec76ab23b7e5b800c0bc62d0bc97f4b
Diffstat (limited to 'src/insert.c')
-rw-r--r--src/insert.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/insert.c b/src/insert.c
index dea6c6fc1..3de2c4250 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.153 2006/01/07 13:21:04 danielk1977 Exp $
+** $Id: insert.c,v 1.154 2006/01/08 18:10:18 drh Exp $
*/
#include "sqliteInt.h"
@@ -636,7 +636,7 @@ void sqlite3Insert(
/* Update the count of rows that are inserted
*/
if( (db->flags & SQLITE_CountRows)!=0 ){
- sqlite3VdbeAddOp(v, OP_MemIncr, iCntMem, 0);
+ sqlite3VdbeAddOp(v, OP_MemIncr, 1, iCntMem);
}
if( triggers_exist ){