Lines Matching refs:v
130 Vdbe *v; in flagPragma() local
131 if( strcmp(zLeft,zRight)==0 && (v = sqliteGetVdbe(pParse))!=0 ){ in flagPragma()
132 sqliteVdbeOp3(v, OP_ColumnName, 0, 1, aPragma[i].zName, P3_STATIC); in flagPragma()
133 sqliteVdbeOp3(v, OP_ColumnName, 1, 0, "boolean", P3_STATIC); in flagPragma()
134 sqliteVdbeCode(v, OP_Integer, (db->flags & aPragma[i].mask)!=0, 0, in flagPragma()
163 Vdbe *v = sqliteGetVdbe(pParse); in sqlitePragma() local
164 if( v==0 ) return; in sqlitePragma()
210 addr = sqliteVdbeAddOpList(v, ArraySize(getCacheSize), getCacheSize); in sqlitePragma()
211 sqliteVdbeChangeP1(v, addr+5, MAX_PAGES); in sqlitePragma()
216 sqliteVdbeAddOp(v, OP_Integer, size, 0); in sqlitePragma()
217 sqliteVdbeAddOp(v, OP_ReadCookie, 0, 2); in sqlitePragma()
218 addr = sqliteVdbeAddOp(v, OP_Integer, 0, 0); in sqlitePragma()
219 sqliteVdbeAddOp(v, OP_Ge, 0, addr+3); in sqlitePragma()
220 sqliteVdbeAddOp(v, OP_Negative, 0, 0); in sqlitePragma()
221 sqliteVdbeAddOp(v, OP_SetCookie, 0, 2); in sqlitePragma()
250 sqliteVdbeAddOp(v, OP_Integer, size, 0); in sqlitePragma()
251 sqliteVdbeAddOpList(v, ArraySize(getCacheSize), getCacheSize); in sqlitePragma()
296 int addr = sqliteVdbeAddOpList(v, ArraySize(getSync), getSync); in sqlitePragma()
297 sqliteVdbeChangeP2(v, addr+3, addr+10); in sqlitePragma()
303 sqliteVdbeAddOp(v, OP_ReadCookie, 0, 2); in sqlitePragma()
304 sqliteVdbeAddOp(v, OP_Dup, 0, 0); in sqlitePragma()
305 addr = sqliteVdbeAddOp(v, OP_Integer, 0, 0); in sqlitePragma()
306 sqliteVdbeAddOp(v, OP_Ne, 0, addr+3); in sqlitePragma()
307 sqliteVdbeAddOp(v, OP_AddImm, MAX_PAGES, 0); in sqlitePragma()
308 sqliteVdbeAddOp(v, OP_AbsValue, 0, 0); in sqlitePragma()
311 sqliteVdbeAddOp(v, OP_Negative, 0, 0); in sqlitePragma()
314 sqliteVdbeAddOp(v, OP_SetCookie, 0, 2); in sqlitePragma()
315 sqliteVdbeAddOp(v, OP_Integer, db->safety_level, 0); in sqlitePragma()
316 sqliteVdbeAddOp(v, OP_SetCookie, 0, 3); in sqlitePragma()
339 sqliteVdbeAddOp(v, OP_Integer, db->safety_level-1, 0); in sqlitePragma()
340 sqliteVdbeAddOpList(v, ArraySize(getSync), getSync); in sqlitePragma()
379 sqliteVdbeAddOpList(v, ArraySize(tableInfoPreface), tableInfoPreface); in sqlitePragma()
382 sqliteVdbeAddOp(v, OP_Integer, i, 0); in sqlitePragma()
383 sqliteVdbeOp3(v, OP_String, 0, 0, pTab->aCol[i].zName, 0); in sqlitePragma()
384 sqliteVdbeOp3(v, OP_String, 0, 0, in sqlitePragma()
386 sqliteVdbeAddOp(v, OP_Integer, pTab->aCol[i].notNull, 0); in sqlitePragma()
387 sqliteVdbeOp3(v, OP_String, 0, 0, in sqlitePragma()
389 sqliteVdbeAddOp(v, OP_Integer, pTab->aCol[i].isPrimKey, 0); in sqlitePragma()
390 sqliteVdbeAddOp(v, OP_Callback, 6, 0); in sqlitePragma()
407 sqliteVdbeAddOpList(v, ArraySize(tableInfoPreface), tableInfoPreface); in sqlitePragma()
410 sqliteVdbeAddOp(v, OP_Integer, i, 0); in sqlitePragma()
411 sqliteVdbeAddOp(v, OP_Integer, cnum, 0); in sqlitePragma()
413 sqliteVdbeOp3(v, OP_String, 0, 0, pTab->aCol[cnum].zName, 0); in sqlitePragma()
414 sqliteVdbeAddOp(v, OP_Callback, 3, 0); in sqlitePragma()
424 v = sqliteGetVdbe(pParse); in sqlitePragma()
435 sqliteVdbeAddOpList(v, ArraySize(indexListPreface), indexListPreface); in sqlitePragma()
437 sqliteVdbeAddOp(v, OP_Integer, i, 0); in sqlitePragma()
438 sqliteVdbeOp3(v, OP_String, 0, 0, pIdx->zName, 0); in sqlitePragma()
439 sqliteVdbeAddOp(v, OP_Integer, pIdx->onError!=OE_None, 0); in sqlitePragma()
440 sqliteVdbeAddOp(v, OP_Callback, 3, 0); in sqlitePragma()
452 v = sqliteGetVdbe(pParse); in sqlitePragma()
465 sqliteVdbeAddOpList(v, ArraySize(indexListPreface), indexListPreface); in sqlitePragma()
469 sqliteVdbeAddOp(v, OP_Integer, i, 0); in sqlitePragma()
470 sqliteVdbeAddOp(v, OP_Integer, j, 0); in sqlitePragma()
471 sqliteVdbeOp3(v, OP_String, 0, 0, pFK->zTo, 0); in sqlitePragma()
472 sqliteVdbeOp3(v, OP_String, 0, 0, in sqlitePragma()
474 sqliteVdbeOp3(v, OP_String, 0, 0, pFK->aCol[j].zCol, 0); in sqlitePragma()
475 sqliteVdbeAddOp(v, OP_Callback, 5, 0); in sqlitePragma()
491 sqliteVdbeAddOpList(v, ArraySize(indexListPreface), indexListPreface); in sqlitePragma()
495 sqliteVdbeAddOp(v, OP_Integer, i, 0); in sqlitePragma()
496 sqliteVdbeOp3(v, OP_String, 0, 0, db->aDb[i].zName, 0); in sqlitePragma()
497 sqliteVdbeOp3(v, OP_String, 0, 0, in sqlitePragma()
499 sqliteVdbeAddOp(v, OP_Callback, 3, 0); in sqlitePragma()
521 sqliteVdbeAddOp(v, OP_Integer, db->temp_store, 0); in sqlitePragma()
522 sqliteVdbeAddOpList(v, ArraySize(getTmpDbLoc), getTmpDbLoc); in sqlitePragma()
545 sqliteVdbeAddOpList(v, ArraySize(getTmpDbLoc), getTmpDbLoc); in sqlitePragma()
548 sqliteVdbeAddOp(v, OP_Integer, getTempStore(zRight), 0); in sqlitePragma()
549 sqliteVdbeAddOp(v, OP_SetCookie, 0, 5); in sqlitePragma()
613 sqliteVdbeAddOpList(v, ArraySize(initCode), initCode); in sqlitePragma()
621 addr = sqliteVdbeAddOpList(v, ArraySize(checkDb), checkDb); in sqlitePragma()
622 sqliteVdbeChangeP1(v, addr+1, i); in sqlitePragma()
623 sqliteVdbeChangeP2(v, addr+3, addr+7); in sqlitePragma()
624 sqliteVdbeChangeP2(v, addr+6, addr+4); in sqlitePragma()
625 sqliteVdbeChangeP2(v, addr+7, i); in sqlitePragma()
626 sqliteVdbeChangeP2(v, addr+10, addr+ArraySize(checkDb)); in sqlitePragma()
627 sqliteVdbeChangeP3(v, addr+13, db->aDb[i].zName, P3_STATIC); in sqlitePragma()
638 sqliteVdbeAddOp(v, OP_Integer, i, 0); in sqlitePragma()
639 sqliteVdbeOp3(v, OP_OpenRead, 1, pTab->tnum, pTab->zName, 0); in sqlitePragma()
642 sqliteVdbeAddOp(v, OP_Integer, pIdx->iDb, 0); in sqlitePragma()
643 sqliteVdbeOp3(v, OP_OpenRead, j+2, pIdx->tnum, pIdx->zName, 0); in sqlitePragma()
645 sqliteVdbeAddOp(v, OP_Integer, 0, 0); in sqlitePragma()
646 sqliteVdbeAddOp(v, OP_MemStore, 1, 1); in sqlitePragma()
647 loopTop = sqliteVdbeAddOp(v, OP_Rewind, 1, 0); in sqlitePragma()
648 sqliteVdbeAddOp(v, OP_MemIncr, 1, 0); in sqlitePragma()
660 sqliteVdbeAddOp(v, OP_Recno, 1, 0); in sqlitePragma()
664 sqliteVdbeAddOp(v, OP_Recno, 1, 0); in sqlitePragma()
666 sqliteVdbeAddOp(v, OP_Column, 1, idx); in sqlitePragma()
669 sqliteVdbeAddOp(v, OP_MakeIdxKey, pIdx->nColumn, 0); in sqlitePragma()
670 if( db->file_format>=4 ) sqliteAddIdxKeyType(v, pIdx); in sqlitePragma()
671 jmp2 = sqliteVdbeAddOp(v, OP_Found, j+2, 0); in sqlitePragma()
672 addr = sqliteVdbeAddOpList(v, ArraySize(idxErr), idxErr); in sqlitePragma()
673 sqliteVdbeChangeP3(v, addr+4, pIdx->zName, P3_STATIC); in sqlitePragma()
674 sqliteVdbeChangeP2(v, jmp2, sqliteVdbeCurrentAddr(v)); in sqlitePragma()
676 sqliteVdbeAddOp(v, OP_Next, 1, loopTop+1); in sqlitePragma()
677 sqliteVdbeChangeP2(v, loopTop, sqliteVdbeCurrentAddr(v)); in sqlitePragma()
695 addr = sqliteVdbeAddOpList(v, ArraySize(cntIdx), cntIdx); in sqlitePragma()
696 sqliteVdbeChangeP1(v, addr+2, j+2); in sqlitePragma()
697 sqliteVdbeChangeP2(v, addr+2, addr+5); in sqlitePragma()
698 sqliteVdbeChangeP1(v, addr+4, j+2); in sqlitePragma()
699 sqliteVdbeChangeP2(v, addr+4, addr+3); in sqlitePragma()
700 sqliteVdbeChangeP2(v, addr+7, addr+ArraySize(cntIdx)); in sqlitePragma()
701 sqliteVdbeChangeP3(v, addr+10, pIdx->zName, P3_STATIC); in sqlitePragma()
705 addr = sqliteVdbeAddOpList(v, ArraySize(endCode), endCode); in sqlitePragma()
706 sqliteVdbeChangeP2(v, addr+2, addr+ArraySize(endCode)); in sqlitePragma()