• Home
  • History
  • Annotate
  • Raw
  • Download

Lines Matching refs:iCur

16088     int iCur;                                  /* A cursor number */  member
16481 SQLITE_PRIVATE void sqlite3OpenTable(Parse*, int iCur, int iDb, Table*, int);
16543 SQLITE_PRIVATE int sqlite3ExprCoveredByIndex(Expr*, int iCur, Index *pIdx);
18608 sqlite3_int64 iCur = 0, iHwtr = 0; in sqlite3_status() local
18613 rc = sqlite3_status64(op, &iCur, &iHwtr, resetFlag); in sqlite3_status()
18615 *pCurrent = (int)iCur; in sqlite3_status()
78284 int iCur, /* Index of the new VdbeCursor */
78307 Mem *pMem = iCur>0 ? &p->aMem[p->nMem-iCur] : p->aMem;
78315 assert( iCur>=0 && iCur<p->nCursor );
78316 if( p->apCsr[iCur] ){ /*OPTIMIZATION-IF-FALSE*/
78317 sqlite3VdbeFreeCursor(p, p->apCsr[iCur]);
78318 p->apCsr[iCur] = 0;
78321 p->apCsr[iCur] = pCx = (VdbeCursor*)pMem->z;
92489 if( pWalker->eCode==3 && pExpr->iTable==pWalker->u.iCur ){
92519 static int exprIsConst(Expr *p, int initFlag, int iCur){
92525 w.u.iCur = iCur;
92558 SQLITE_PRIVATE int sqlite3ExprIsTableConstant(Expr *p, int iCur){
92559 return exprIsConst(p, 3, iCur);
92768 static void sqlite3SetHasNullFlag(Vdbe *v, int iCur, int regHasNull){
92771 addr1 = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
92772 sqlite3VdbeAddOp3(v, OP_Column, iCur, 0, regHasNull);
92774 VdbeComment((v, "first_entry_in(%d)", iCur));
95478 int iCur; /* Cursor number for the table corresponding to the index */
95488 && pExpr->iTable==pWalker->u.pIdxCover->iCur
95509 int iCur, /* The cursor number for the corresponding table */
95515 xcov.iCur = iCur;
104484 int iCur /* Cursor number for ephemeral table */
104502 sqlite3SelectDestInit(&dest, SRT_EphemTab, iCur);
107495 int iCur = pParse->nTab - 1; /* Cursor number to use */
107539 sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenRead);
107540 sqlite3VdbeAddOp3(v, OP_NotExists, iCur, 0, regTemp); VdbeCoverage(v);
107550 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
107585 sqlite3VdbeAddOp4Int(v, OP_Found, iCur, iOk, regRec, 0); VdbeCoverage(v);
107611 sqlite3VdbeAddOp1(v, OP_Close, iCur);
108599 int iCur, /* The cursor number of the table */
108611 sqlite3VdbeAddOp4Int(v, opcode, iCur, pTab->tnum, iDb, pTab->nCol);
108617 sqlite3VdbeAddOp3(v, opcode, iCur, pPk->tnum, iDb);
123701 int iCur = aiCurOnePass[1];
123702 if( iCur>=0 && iCur!=iDataCur && aToOpen[iCur-iBaseCur] ){
123705 assert( iCur!=iDataCur || !HasRowid(pTab) );
125875 int iCur; /* The VDBE cursor used by this IN operator */
126245 int iCur, /* Cursor number of LHS */
126871 pIn->iCur = iTab;
127198 int iCur;
127206 iCur = pLevel->iTabCur;
127207 assert( iCur==pWInfo->pTabList->a[pLevel->iFrom].iCursor );
127208 sHint.iTabCur = iCur;
127312 int iCur, /* Cursor for IPK b-tree */
127321 sqlite3VdbeAddOp3(v, OP_Seek, iIdxCur, 0, iCur);
127382 int iCur; /* The VDBE cursor for the table */
127407 iCur = pTabItem->iCursor;
127408 pLevel->notReady = notReady & ~sqlite3WhereGetMask(&pWInfo->sMaskSet, iCur);
127479 sqlite3VdbeAddOp4(v, OP_VFilter, iCur, addrNotFound, iReg,
127484 pLevel->p1 = iCur;
127557 sqlite3VdbeAddOp3(v, OP_SeekRowid, iCur, addrNxt, iRowidReg);
127560 sqlite3ExprCacheStore(pParse, iCur, -1, iRowidReg);
127607 testcase( pStart->leftCursor!=iCur ); /* transitive constraints */
127617 sqlite3VdbeAddOp3(v, op, iCur, addrBrk, r1);
127626 sqlite3VdbeAddOp2(v, bRev ? OP_Last : OP_Rewind, iCur, addrHalt);
127635 testcase( pEnd->leftCursor!=iCur ); /* Transitive constraints */
127652 pLevel->p1 = iCur;
127657 sqlite3VdbeAddOp2(v, OP_Rowid, iCur, iRowidReg);
127658 sqlite3ExprCacheStore(pParse, iCur, -1, iRowidReg);
127936 sqlite3ExprCacheStore(pParse, iCur, -1, iRowidReg);
127937 sqlite3VdbeAddOp3(v, OP_NotExists, iCur, 0, iRowidReg);
127940 codeDeferredSeek(pWInfo, pIdx, iCur, iIdxCur);
127942 }else if( iCur!=iIdxCur ){
127949 sqlite3VdbeAddOp4Int(v, OP_NotFound, iCur, addrCont,
128127 if( pOrTerm->leftCursor==iCur || (pOrTerm->eOperator & WO_AND)!=0 ){
128156 r = sqlite3ExprCodeGetColumn(pParse, pTab, -1, iCur, regRowid, 0);
128169 sqlite3ExprCodeGetColumnToReg(pParse, pTab, iCol, iCur, r+iPk);
128271 pLevel->p1 = iCur;
128272 pLevel->p2 = 1 + sqlite3VdbeAddOp2(v, aStart[bRev], iCur, addrHalt);
128337 if( pTerm->leftCursor!=iCur ) continue;
128342 pAlt = sqlite3WhereFindTerm(pWC, iCur, pTerm->u.leftColumn, notReady,
129233 int iCur;
129253 iCur = pFrom->a[i].iCursor;
129258 if( sqlite3ExprCompareSkip(pExpr, pIdx->aColExpr->a[i].pExpr, iCur)==0 ){
129259 *piCur = iCur;
129345 int iCur, iColumn;
129356 if( exprMightBeIndexed(pSrc, op, prereqLeft, pLeft, &iCur, &iColumn) ){
129357 pTerm->leftCursor = iCur;
129363 && exprMightBeIndexed(pSrc, op, pTerm->prereqRight, pRight, &iCur,&iColumn)
129393 pNew->leftCursor = iCur;
130031 int iCur; /* The cursor on the LHS of the term */
130042 iCur = pScan->aiCur[pScan->iEquiv-1];
130046 if( pTerm->leftCursor==iCur
130050 pScan->pIdxExpr,iCur)==0)
130134 int iCur, /* Cursor to scan for */
130161 pScan->aiCur[0] = iCur;
130195 int iCur, /* Cursor number of LHS */
130205 p = whereScanInit(&scan, pWC, iCur, iColumn, op, pIdx);
132075 int iCur, /* Cursor open on pIdx */
132103 || pLhs->iTable!=iCur
132756 int iCur = pSrc->iCursor;
132760 if( !sqlite3ExprCoveredByIndex(pTerm->pExpr, iCur, pProbe) ){
133112 int iCur;
133123 iCur = pItem->iCursor;
133143 }else if( pOrTerm->leftCursor==iCur ){
133314 int iCur; /* Cursor number for current WhereLoop */
133373 iCur = pWInfo->pTabList->a[pLoop->iTab].iCursor;
133384 if( pOBExpr->iTable!=iCur ) continue;
133385 pTerm = sqlite3WhereFindTerm(&pWInfo->sWC, iCur, pOBExpr->iColumn,
133505 if( pOBExpr->iTable!=iCur ) continue;
133508 if( sqlite3ExprCompare(pOBExpr,pIndex->aColExpr->a[j].pExpr,iCur) ){
134045 int iCur;
134057 iCur = pItem->iCursor;
134062 pTerm = sqlite3WhereFindTerm(pWC, iCur, -1, 0, WO_EQ|WO_IS, 0);
134081 pTerm = sqlite3WhereFindTerm(pWC, iCur, j, 0, opMask, pIdx);
134102 pLoop->maskSelf = sqlite3WhereGetMask(&pWInfo->sMaskSet, iCur);
134103 pWInfo->a[0].iTabCur = iCur;
134519 int iCur = pTabItem->iCursor;
134520 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
134700 sqlite3VdbeAddOp2(v, pIn->eEndLoopOp, pIn->iCur, pIn->addrInTop);