Lines Matching defs:iCur

12598 SQLITE_PRIVATE void sqlite3OpenTable(Parse*, int iCur, int iDb, Table*, int);
68073 ** Allocate VdbeCursor number iCur. Return a pointer to it. Return NULL
68078 int iCur, /* Index of the new VdbeCursor */
68101 Mem *pMem = &p->aMem[p->nMem-iCur];
68109 assert( iCur<p->nCursor );
68110 if( p->apCsr[iCur] ){
68111 sqlite3VdbeFreeCursor(p, p->apCsr[iCur]);
68112 p->apCsr[iCur] = 0;
68115 p->apCsr[iCur] = pCx = (VdbeCursor*)pMem->z;
79708 ** Generate code that checks the left-most column of index table iCur to see if
79710 ** to a non-NULL value if iCur contains no NULLs. Cause register regHasNull
79711 ** to be set to NULL if iCur contains one or more NULL values.
79713 static void sqlite3SetHasNullFlag(Vdbe *v, int iCur, int regHasNull){
79716 j1 = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
79717 sqlite3VdbeAddOp3(v, OP_Column, iCur, 0, regHasNull);
79719 VdbeComment((v, "first_entry_in(%d)", iCur));
90925 int iCur /* Cursor number for ephemerial table */
90942 sqlite3SelectDestInit(&dest, SRT_EphemTab, iCur);
91441 /* Seek cursor iCur to the row to delete. If this row no longer exists
91582 ** iCur is the index of a cursor open on the pTab table and pointing to
91584 ** iCur must be the cursor of the PRIMARY KEY index.
93751 int iCur = pParse->nTab - 1; /* Cursor number to use */
93795 sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenRead);
93796 sqlite3VdbeAddOp3(v, OP_NotExists, iCur, 0, regTemp); VdbeCoverage(v);
93806 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
93840 sqlite3VdbeAddOp4Int(v, OP_Found, iCur, iOk, regRec, 0); VdbeCoverage(v);
93866 sqlite3VdbeAddOp1(v, OP_Close, iCur);
93908 ** has cursor iCur.
94806 ** (2) open pTab as cursor iCur.
94813 int iCur, /* The cursor number of the table */
94825 sqlite3VdbeAddOp4Int(v, opcode, iCur, pTab->tnum, iDb, pTab->nCol);
94831 sqlite3VdbeAddOp3(v, opcode, iCur, pPk->tnum, iDb);
110529 int iCur; /* The VDBE cursor used by this IN operator */
111336 int iCur; /* The cursor on the LHS of the term */
111344 iCur = pScan->aEquiv[pScan->iEquiv-2];
111348 if( pTerm->leftCursor==iCur
111415 ** iCur. The <op> must be one of the operators described by opMask.
111428 int iCur, /* Cursor to scan for */
111450 pScan->aEquiv[0] = iCur;
111459 ** where X is a reference to the iColumn of table iCur and <op> is one of
111482 int iCur, /* Cursor number of LHS */
111492 p = whereScanInit(&scan, pWC, iCur, iColumn, op, pIdx);
113440 pIn->iCur = iTab;
113781 int iCur; /* The VDBE cursor for the table */
113805 iCur = pTabItem->iCursor;
113806 pLevel->notReady = notReady & ~getMask(&pWInfo->sMaskSet, iCur);
113870 sqlite3VdbeAddOp4(v, OP_VFilter, iCur, addrNotFound, iReg,
113881 pLevel->p1 = iCur;
113907 sqlite3VdbeAddOp3(v, OP_NotExists, iCur, addrNxt, iRowidReg);
113910 sqlite3ExprCacheStore(pParse, iCur, -1, iRowidReg);
113955 testcase( pStart->leftCursor!=iCur ); /* transitive constraints */
113957 sqlite3VdbeAddOp3(v, aMoveOp[pX->op-TK_GT], iCur, addrBrk, r1);
113967 sqlite3VdbeAddOp2(v, bRev ? OP_Last : OP_Rewind, iCur, addrBrk);
113976 testcase( pEnd->leftCursor!=iCur ); /* Transitive constraints */
113989 pLevel->p1 = iCur;
113994 sqlite3VdbeAddOp2(v, OP_Rowid, iCur, iRowidReg);
113995 sqlite3ExprCacheStore(pParse, iCur, -1, iRowidReg);
114231 sqlite3ExprCacheStore(pParse, iCur, -1, iRowidReg);
114232 sqlite3VdbeAddOp2(v, OP_Seek, iCur, iRowidReg); /* Deferred seek */
114233 }else if( iCur!=iIdxCur ){
114240 sqlite3VdbeAddOp4Int(v, OP_NotFound, iCur, addrCont,
114420 if( pOrTerm->leftCursor==iCur || (pOrTerm->eOperator & WO_AND)!=0 ){
114446 r = sqlite3ExprCodeGetColumn(pParse, pTab, -1, iCur, regRowid, 0);
114458 sqlite3ExprCodeGetColumn(pParse, pTab, iCol, iCur, r+iPk, 0);
114559 pLevel->p1 = iCur;
114560 pLevel->p2 = 1 + sqlite3VdbeAddOp2(v, aStart[bRev], iCur, addrBrk);
114603 if( pTerm->leftCursor!=iCur ) continue;
114608 pAlt = findTerm(pWC, iCur, pTerm->u.leftColumn, notReady, WO_EQ|WO_IN, 0);
115859 int iCur;
115871 iCur = pItem->iCursor;
115890 }else if( pOrTerm->leftCursor==iCur ){
116036 int iCur; /* Cursor number for current WhereLoop */
116037 int iColumn; /* A column number within table iCur */
116088 iCur = pWInfo->pTabList->a[pLoop->iTab].iCursor;
116099 if( pOBExpr->iTable!=iCur ) continue;
116100 pTerm = findTerm(&pWInfo->sWC, iCur, pOBExpr->iColumn,
116186 if( pOBExpr->iTable!=iCur ) continue;
116695 int iCur;
116707 iCur = pItem->iCursor;
116712 pTerm = findTerm(pWC, iCur, -1, 0, WO_EQ, 0);
116729 pTerm = findTerm(pWC, iCur, pIdx->aiColumn[j], 0, WO_EQ, pIdx);
116749 pLoop->maskSelf = getMask(&pWInfo->sMaskSet, iCur);
116750 pWInfo->a[0].iTabCur = iCur;
117161 int iCur = pTabItem->iCursor;
117162 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
117302 sqlite3VdbeAddOp2(v, pIn->eEndLoopOp, pIn->iCur, pIn->addrInTop);