Lines Matching refs:v

389   Vdbe *v = pParse->pVdbe;   /* The virtual database engine */  in sqliteWhereBegin()  local
430 pWInfo->iBreak = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
707 sqliteVdbeAddOp(v, OP_Integer, pTab->iDb, 0); in sqliteWhereBegin()
708 sqliteVdbeOp3(v, OP_OpenRead, pTabList->a[i].iCursor, pTab->tnum, in sqliteWhereBegin()
712 sqliteVdbeAddOp(v, OP_Integer, pIx->iDb, 0); in sqliteWhereBegin()
713 sqliteVdbeOp3(v, OP_OpenRead, pWInfo->a[i].iCur, pIx->tnum, pIx->zName,0); in sqliteWhereBegin()
733 sqliteVdbeAddOp(v, OP_String, 0, 0); in sqliteWhereBegin()
734 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iLeftJoin, 1); in sqliteWhereBegin()
749 brk = pLevel->brk = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
755 sqliteVdbeAddOp(v, OP_SetFirst, pX->iTable, brk); in sqliteWhereBegin()
758 pLevel->inP2 = sqliteVdbeCurrentAddr(v); in sqliteWhereBegin()
761 sqliteVdbeAddOp(v, OP_Rewind, pX->iTable, brk); in sqliteWhereBegin()
762 sqliteVdbeAddOp(v, OP_KeyAsData, pX->iTable, 1); in sqliteWhereBegin()
763 pLevel->inP2 = sqliteVdbeAddOp(v, OP_FullKey, pX->iTable, 0); in sqliteWhereBegin()
771 cont = pLevel->cont = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
772 sqliteVdbeAddOp(v, OP_MustBeInt, 1, brk); in sqliteWhereBegin()
774 sqliteVdbeAddOp(v, OP_NotExists, iCur, brk); in sqliteWhereBegin()
783 brk = pLevel->brk = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
799 sqliteVdbeAddOp(v, OP_SetFirst, pX->iTable, brk); in sqliteWhereBegin()
802 pLevel->inP2 = sqliteVdbeCurrentAddr(v); in sqliteWhereBegin()
805 sqliteVdbeAddOp(v, OP_Rewind, pX->iTable, brk); in sqliteWhereBegin()
806 sqliteVdbeAddOp(v, OP_KeyAsData, pX->iTable, 1); in sqliteWhereBegin()
807 pLevel->inP2 = sqliteVdbeAddOp(v, OP_FullKey, pX->iTable, 0); in sqliteWhereBegin()
827 cont = pLevel->cont = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
828 sqliteVdbeAddOp(v, OP_NotNull, -nColumn, sqliteVdbeCurrentAddr(v)+3); in sqliteWhereBegin()
829 sqliteVdbeAddOp(v, OP_Pop, nColumn, 0); in sqliteWhereBegin()
830 sqliteVdbeAddOp(v, OP_Goto, 0, brk); in sqliteWhereBegin()
831 sqliteVdbeAddOp(v, OP_MakeKey, nColumn, 0); in sqliteWhereBegin()
832 sqliteAddIdxKeyType(v, pIdx); in sqliteWhereBegin()
834 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iMem, 0); in sqliteWhereBegin()
837 sqliteVdbeAddOp(v, OP_Dup, 0, 0); in sqliteWhereBegin()
838 sqliteVdbeAddOp(v, OP_IncrKey, 0, 0); in sqliteWhereBegin()
839 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iMem, 1); in sqliteWhereBegin()
844 sqliteVdbeAddOp(v, OP_IncrKey, 0, 0); in sqliteWhereBegin()
845 sqliteVdbeAddOp(v, OP_MoveLt, pLevel->iCur, brk); in sqliteWhereBegin()
846 start = sqliteVdbeAddOp(v, OP_MemLoad, pLevel->iMem, 0); in sqliteWhereBegin()
847 sqliteVdbeAddOp(v, OP_IdxLT, pLevel->iCur, brk); in sqliteWhereBegin()
851 sqliteVdbeAddOp(v, OP_MoveTo, pLevel->iCur, brk); in sqliteWhereBegin()
852 start = sqliteVdbeAddOp(v, OP_MemLoad, pLevel->iMem, 0); in sqliteWhereBegin()
853 sqliteVdbeAddOp(v, testOp, pLevel->iCur, brk); in sqliteWhereBegin()
856 sqliteVdbeAddOp(v, OP_RowKey, pLevel->iCur, 0); in sqliteWhereBegin()
857 sqliteVdbeAddOp(v, OP_IdxIsNull, nColumn, cont); in sqliteWhereBegin()
858 sqliteVdbeAddOp(v, OP_IdxRecno, pLevel->iCur, 0); in sqliteWhereBegin()
862 sqliteVdbeAddOp(v, OP_MoveTo, iCur, 0); in sqliteWhereBegin()
873 brk = pLevel->brk = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
874 cont = pLevel->cont = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
885 sqliteVdbeAddOp(v, OP_ForceInt, in sqliteWhereBegin()
887 sqliteVdbeAddOp(v, OP_MoveTo, iCur, brk); in sqliteWhereBegin()
890 sqliteVdbeAddOp(v, OP_Rewind, iCur, brk); in sqliteWhereBegin()
904 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iMem, 1); in sqliteWhereBegin()
912 start = sqliteVdbeCurrentAddr(v); in sqliteWhereBegin()
917 sqliteVdbeAddOp(v, OP_Recno, iCur, 0); in sqliteWhereBegin()
918 sqliteVdbeAddOp(v, OP_MemLoad, pLevel->iMem, 0); in sqliteWhereBegin()
919 sqliteVdbeAddOp(v, testOp, 0, brk); in sqliteWhereBegin()
928 brk = pLevel->brk = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
929 cont = pLevel->cont = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
930 sqliteVdbeAddOp(v, OP_Rewind, iCur, brk); in sqliteWhereBegin()
931 start = sqliteVdbeCurrentAddr(v); in sqliteWhereBegin()
985 sqliteVdbeAddOp(v, OP_Dup, nEqColumn-1, 0); in sqliteWhereBegin()
990 cont = pLevel->cont = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
991 brk = pLevel->brk = sqliteVdbeMakeLabel(v); in sqliteWhereBegin()
1033 sqliteVdbeAddOp(v, OP_NotNull, -nCol, sqliteVdbeCurrentAddr(v)+3); in sqliteWhereBegin()
1034 sqliteVdbeAddOp(v, OP_Pop, nCol, 0); in sqliteWhereBegin()
1035 sqliteVdbeAddOp(v, OP_Goto, 0, brk); in sqliteWhereBegin()
1036 sqliteVdbeAddOp(v, OP_MakeKey, nCol, 0); in sqliteWhereBegin()
1037 sqliteAddIdxKeyType(v, pIdx); in sqliteWhereBegin()
1039 sqliteVdbeAddOp(v, OP_IncrKey, 0, 0); in sqliteWhereBegin()
1042 sqliteVdbeAddOp(v, OP_MoveLt, pLevel->iCur, brk); in sqliteWhereBegin()
1044 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iMem, 1); in sqliteWhereBegin()
1047 sqliteVdbeAddOp(v, OP_Last, pLevel->iCur, brk); in sqliteWhereBegin()
1089 sqliteVdbeAddOp(v, OP_NotNull, -nCol, sqliteVdbeCurrentAddr(v)+3); in sqliteWhereBegin()
1090 sqliteVdbeAddOp(v, OP_Pop, nCol, 0); in sqliteWhereBegin()
1091 sqliteVdbeAddOp(v, OP_Goto, 0, brk); in sqliteWhereBegin()
1092 sqliteVdbeAddOp(v, OP_MakeKey, nCol, 0); in sqliteWhereBegin()
1093 sqliteAddIdxKeyType(v, pIdx); in sqliteWhereBegin()
1095 sqliteVdbeAddOp(v, OP_IncrKey, 0, 0); in sqliteWhereBegin()
1099 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iMem, 1); in sqliteWhereBegin()
1102 sqliteVdbeAddOp(v, OP_MoveTo, pLevel->iCur, brk); in sqliteWhereBegin()
1107 sqliteVdbeAddOp(v, OP_Rewind, pLevel->iCur, brk); in sqliteWhereBegin()
1114 start = sqliteVdbeCurrentAddr(v); in sqliteWhereBegin()
1116 sqliteVdbeAddOp(v, OP_MemLoad, pLevel->iMem, 0); in sqliteWhereBegin()
1117 sqliteVdbeAddOp(v, testOp, pLevel->iCur, brk); in sqliteWhereBegin()
1119 sqliteVdbeAddOp(v, OP_RowKey, pLevel->iCur, 0); in sqliteWhereBegin()
1120 sqliteVdbeAddOp(v, OP_IdxIsNull, nEqColumn + (score & 1), cont); in sqliteWhereBegin()
1121 sqliteVdbeAddOp(v, OP_IdxRecno, pLevel->iCur, 0); in sqliteWhereBegin()
1125 sqliteVdbeAddOp(v, OP_MoveTo, iCur, 0); in sqliteWhereBegin()
1148 sqliteVdbeAddOp(v, OP_MoveTo, iCur, 0); in sqliteWhereBegin()
1159 pLevel->top = sqliteVdbeCurrentAddr(v); in sqliteWhereBegin()
1160 sqliteVdbeAddOp(v, OP_Integer, 1, 0); in sqliteWhereBegin()
1161 sqliteVdbeAddOp(v, OP_MemStore, pLevel->iLeftJoin, 1); in sqliteWhereBegin()
1171 sqliteVdbeAddOp(v, OP_MoveTo, iCur, 0); in sqliteWhereBegin()
1180 sqliteVdbeAddOp(v, OP_Recno, pTabList->a[0].iCursor, 0); in sqliteWhereBegin()
1191 Vdbe *v = pWInfo->pParse->pVdbe; in sqliteWhereEnd() local
1198 sqliteVdbeResolveLabel(v, pLevel->cont); in sqliteWhereEnd()
1200 sqliteVdbeAddOp(v, pLevel->op, pLevel->p1, pLevel->p2); in sqliteWhereEnd()
1202 sqliteVdbeResolveLabel(v, pLevel->brk); in sqliteWhereEnd()
1204 sqliteVdbeAddOp(v, pLevel->inOp, pLevel->inP1, pLevel->inP2); in sqliteWhereEnd()
1208 addr = sqliteVdbeAddOp(v, OP_MemLoad, pLevel->iLeftJoin, 0); in sqliteWhereEnd()
1209 sqliteVdbeAddOp(v, OP_NotNull, 1, addr+4 + (pLevel->iCur>=0)); in sqliteWhereEnd()
1210 sqliteVdbeAddOp(v, OP_NullRow, pTabList->a[i].iCursor, 0); in sqliteWhereEnd()
1212 sqliteVdbeAddOp(v, OP_NullRow, pLevel->iCur, 0); in sqliteWhereEnd()
1214 sqliteVdbeAddOp(v, OP_Goto, 0, pLevel->top); in sqliteWhereEnd()
1217 sqliteVdbeResolveLabel(v, pWInfo->iBreak); in sqliteWhereEnd()
1223 sqliteVdbeAddOp(v, OP_Close, pTabList->a[i].iCursor, 0); in sqliteWhereEnd()
1225 sqliteVdbeAddOp(v, OP_Close, pLevel->iCur, 0); in sqliteWhereEnd()