Lines Matching refs:v

61   Vdbe *v;               /* The virtual database engine */  in sqliteDeleteFrom()  local
141 v = sqliteGetVdbe(pParse); in sqliteDeleteFrom()
142 if( v==0 ){ in sqliteDeleteFrom()
160 sqliteVdbeAddOp(v, OP_Integer, 0, 0); in sqliteDeleteFrom()
171 int endOfLoop = sqliteVdbeMakeLabel(v); in sqliteDeleteFrom()
174 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); in sqliteDeleteFrom()
175 sqliteVdbeAddOp(v, OP_OpenRead, iCur, pTab->tnum); in sqliteDeleteFrom()
177 sqliteVdbeAddOp(v, OP_Rewind, iCur, sqliteVdbeCurrentAddr(v)+2); in sqliteDeleteFrom()
178 addr = sqliteVdbeAddOp(v, OP_AddImm, 1, 0); in sqliteDeleteFrom()
179 sqliteVdbeAddOp(v, OP_Next, iCur, addr); in sqliteDeleteFrom()
180 sqliteVdbeResolveLabel(v, endOfLoop); in sqliteDeleteFrom()
181 sqliteVdbeAddOp(v, OP_Close, iCur, 0); in sqliteDeleteFrom()
184 sqliteVdbeAddOp(v, OP_Clear, pTab->tnum, pTab->iDb); in sqliteDeleteFrom()
186 sqliteVdbeAddOp(v, OP_Clear, pIdx->tnum, pIdx->iDb); in sqliteDeleteFrom()
202 sqliteVdbeAddOp(v, OP_ListWrite, 0, 0); in sqliteDeleteFrom()
204 sqliteVdbeAddOp(v, OP_AddImm, 1, 0); in sqliteDeleteFrom()
214 sqliteVdbeAddOp(v, OP_OpenPseudo, oldIdx, 0); in sqliteDeleteFrom()
221 sqliteVdbeAddOp(v, OP_ListRewind, 0, 0); in sqliteDeleteFrom()
222 end = sqliteVdbeMakeLabel(v); in sqliteDeleteFrom()
228 addr = sqliteVdbeAddOp(v, OP_ListRead, 0, end); in sqliteDeleteFrom()
229 sqliteVdbeAddOp(v, OP_Dup, 0, 0); in sqliteDeleteFrom()
231 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); in sqliteDeleteFrom()
232 sqliteVdbeAddOp(v, OP_OpenRead, iCur, pTab->tnum); in sqliteDeleteFrom()
234 sqliteVdbeAddOp(v, OP_MoveTo, iCur, 0); in sqliteDeleteFrom()
236 sqliteVdbeAddOp(v, OP_Recno, iCur, 0); in sqliteDeleteFrom()
237 sqliteVdbeAddOp(v, OP_RowData, iCur, 0); in sqliteDeleteFrom()
238 sqliteVdbeAddOp(v, OP_PutIntKey, oldIdx, 0); in sqliteDeleteFrom()
240 sqliteVdbeAddOp(v, OP_Close, iCur, 0); in sqliteDeleteFrom()
261 addr = sqliteVdbeAddOp(v, OP_ListRead, 0, end); in sqliteDeleteFrom()
265 sqliteGenerateRowDelete(db, v, pTab, iCur, pParse->trigStack==0); in sqliteDeleteFrom()
274 sqliteVdbeAddOp(v, OP_Close, iCur + i, pIdx->tnum); in sqliteDeleteFrom()
276 sqliteVdbeAddOp(v, OP_Close, iCur, 0); in sqliteDeleteFrom()
284 sqliteVdbeAddOp(v, OP_Goto, 0, addr); in sqliteDeleteFrom()
285 sqliteVdbeResolveLabel(v, end); in sqliteDeleteFrom()
286 sqliteVdbeAddOp(v, OP_ListReset, 0, 0); in sqliteDeleteFrom()
291 sqliteVdbeAddOp(v, OP_Close, iCur + i, pIdx->tnum); in sqliteDeleteFrom()
293 sqliteVdbeAddOp(v, OP_Close, iCur, 0); in sqliteDeleteFrom()
297 sqliteVdbeAddOp(v, OP_SetCounts, 0, 0); in sqliteDeleteFrom()
304 sqliteVdbeAddOp(v, OP_ColumnName, 0, 1); in sqliteDeleteFrom()
305 sqliteVdbeChangeP3(v, -1, "rows deleted", P3_STATIC); in sqliteDeleteFrom()
306 sqliteVdbeAddOp(v, OP_Callback, 1, 0); in sqliteDeleteFrom()
338 Vdbe *v, /* Generate code into this VDBE */ in sqliteGenerateRowDelete() argument
344 addr = sqliteVdbeAddOp(v, OP_NotExists, iCur, 0); in sqliteGenerateRowDelete()
345 sqliteGenerateRowIndexDelete(db, v, pTab, iCur, 0); in sqliteGenerateRowDelete()
346 sqliteVdbeAddOp(v, OP_Delete, iCur, in sqliteGenerateRowDelete()
348 sqliteVdbeChangeP2(v, addr, sqliteVdbeCurrentAddr(v)); in sqliteGenerateRowDelete()
369 Vdbe *v, /* Generate code into this VDBE */ in sqliteGenerateRowIndexDelete() argument
380 sqliteVdbeAddOp(v, OP_Recno, iCur, 0); in sqliteGenerateRowIndexDelete()
384 sqliteVdbeAddOp(v, OP_Dup, j, 0); in sqliteGenerateRowIndexDelete()
386 sqliteVdbeAddOp(v, OP_Column, iCur, idx); in sqliteGenerateRowIndexDelete()
389 sqliteVdbeAddOp(v, OP_MakeIdxKey, pIdx->nColumn, 0); in sqliteGenerateRowIndexDelete()
390 if( db->file_format>=4 ) sqliteAddIdxKeyType(v, pIdx); in sqliteGenerateRowIndexDelete()
391 sqliteVdbeAddOp(v, OP_IdxDelete, iCur+i, 0); in sqliteGenerateRowIndexDelete()