mirror of
https://github.com/sqlite/sqlite.git
synced 2025-11-06 15:49:35 +03:00
Some modifications to insert.c to work without using the stack. (CVS 4678)
FossilOrigin-Name: d9ac6beef538376d0ea0a1daa95cf1dfe36143cf
This commit is contained in:
10
src/delete.c
10
src/delete.c
@@ -12,7 +12,7 @@
|
||||
** This file contains C code routines that are called by the parser
|
||||
** in order to generate code for DELETE FROM statements.
|
||||
**
|
||||
** $Id: delete.c,v 1.146 2008/01/04 13:57:26 danielk1977 Exp $
|
||||
** $Id: delete.c,v 1.147 2008/01/04 19:10:29 danielk1977 Exp $
|
||||
*/
|
||||
#include "sqliteInt.h"
|
||||
|
||||
@@ -91,6 +91,14 @@ int sqlite3StackToReg(Parse *p, int nVal){
|
||||
}
|
||||
return iRet;
|
||||
}
|
||||
void sqlite3RegToStack(Parse *p, int iReg, int nVal){
|
||||
int i;
|
||||
Vdbe *v = sqlite3GetVdbe(p);
|
||||
assert(v);
|
||||
for(i=0; i<nVal; i++){
|
||||
sqlite3VdbeAddOp2(v, OP_MemLoad, iReg+i, 0);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
** Generate code that will open a table for reading.
|
||||
|
||||
Reference in New Issue
Block a user