• Home
  • Raw
  • Download

Lines Matching refs:iCur

19352     int iCur;                                 /* A cursor number */  member
19461 int iCur; /* Ephemeral table holding the materialization */ member
19985 SQLITE_PRIVATE void sqlite3OpenTable(Parse*, int iCur, int iDb, Table*, int);
20050 SQLITE_PRIVATE int sqlite3ExprCoveredByIndex(Expr*, int iCur, Index *pIdx);
23021 sqlite3_int64 iCur = 0, iHwtr = 0;
23026 rc = sqlite3_status64(op, &iCur, &iHwtr, resetFlag);
23028 *pCurrent = (int)iCur;
88562 int iCur, /* Index of the new VdbeCursor */
88584 Mem *pMem = iCur>0 ? &p->aMem[p->nMem-iCur] : p->aMem;
88592 assert( iCur>=0 && iCur<p->nCursor );
88593 if( p->apCsr[iCur] ){ /*OPTIMIZATION-IF-FALSE*/
88594 sqlite3VdbeFreeCursorNN(p, p->apCsr[iCur]);
88595 p->apCsr[iCur] = 0;
88617 p->apCsr[iCur] = pCx = (VdbeCursor*)pMem->zMalloc;
105824 if( pWalker->eCode==3 && pExpr->iTable==pWalker->u.iCur ){
105855 static int exprIsConst(Expr *p, int initFlag, int iCur){
105863 w.u.iCur = iCur;
105903 SQLITE_PRIVATE int sqlite3ExprIsTableConstant(Expr *p, int iCur){
105904 return exprIsConst(p, 3, iCur);
106231 static void sqlite3SetHasNullFlag(Vdbe *v, int iCur, int regHasNull){
106234 addr1 = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
106235 sqlite3VdbeAddOp3(v, OP_Column, iCur, 0, regHasNull);
106237 VdbeComment((v, "first_entry_in(%d)", iCur));
109412 if( pWalker->u.iCur==pExpr->iTable ){
109510 w.u.iCur = iTab;
109524 int iCur; /* Cursor number for the table corresponding to the index */
109534 && pExpr->iTable==pWalker->u.pIdxCover->iCur
109555 int iCur, /* The cursor number for the corresponding table */
109561 xcov.iCur = iCur;
112243 int iCur;
112245 iCur = pParse->nTab++;
112246 sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenWrite);
112247 addr = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
112250 sqlite3VdbeAddOp2(v, OP_Rowid, iCur, reg);
112256 sqlite3VdbeAddOp3(v, OP_Column, iCur, i, reg+i+1);
112275 sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, i, regOut);
112288 sqlite3VdbeAddOp4Int(v, OP_IdxInsert, iCur, regRec, reg+1, pPk->nKeyCol);
112290 sqlite3VdbeAddOp3(v, OP_Insert, iCur, regRec, reg);
112294 sqlite3VdbeAddOp2(v, OP_Next, iCur, addr+1); VdbeCoverage(v);
121467 int iCur /* Cursor number for ephemeral table */
121485 sqlite3SelectDestInit(&dest, SRT_EphemTab, iCur);
125060 int iCur = pParse->nTab - 1; /* Cursor number to use */
125111 sqlite3OpenTable(pParse, iCur, iDb, pTab, OP_OpenRead);
125112 sqlite3VdbeAddOp3(v, OP_NotExists, iCur, 0, regTemp); VdbeCoverage(v);
125121 sqlite3VdbeAddOp3(v, OP_OpenRead, iCur, pIdx->tnum, iDb);
125161 sqlite3VdbeAddOp4Int(v, OP_Found, iCur, iOk, regTemp, nCol);
125186 sqlite3VdbeAddOp1(v, OP_Close, iCur);
126232 int iCur, /* The cursor number of the table */
126245 sqlite3VdbeAddOp4Int(v, opcode, iCur, pTab->tnum, iDb, pTab->nNVCol);
126251 sqlite3VdbeAddOp3(v, opcode, iCur, pPk->tnum, iDb);
128712 int iCur, /* Cursor number for table */
128720 sqlite3VdbeAddOp4(v, OP_Insert, iCur, regData, r, (char*)pTab, P4_TABLE);
142592 if( pItem->iCursor!=pCteUse->iCur ){
142593 sqlite3VdbeAddOp2(v, OP_OpenDup, pItem->iCursor, pCteUse->iCur);
142638 pCteUse->iCur = pItem->iCursor;
145850 int iCur = aiCurOnePass[1];
145851 if( iCur>=0 && iCur!=iDataCur && aToOpen[iCur-iBaseCur] ){
145854 assert( iCur!=iDataCur || !HasRowid(pTab) );
146704 int iCur /* Cursor for pIdx (or pTab if pIdx==NULL) */
146718 if( pIdx && iCur!=iDataCur ){
146721 sqlite3VdbeAddOp2(v, OP_IdxRowid, iCur, regRowid);
146734 sqlite3VdbeAddOp3(v, OP_Column, iCur, k, iPk+i);
148641 int iCur; /* The VDBE cursor used by this IN operator */
149067 int iCur, /* Cursor number of LHS */
149846 pIn->iCur = iTab;
150205 int iCur;
150213 iCur = pLevel->iTabCur;
150214 assert( iCur==pWInfo->pTabList->a[pLevel->iFrom].iCursor );
150215 sHint.iTabCur = iCur;
150327 int iCur, /* Cursor for IPK b-tree */
150337 sqlite3VdbeAddOp3(v, OP_DeferredSeek, iIdxCur, 0, iCur);
150636 int iCur; /* The VDBE cursor for the table */
150656 iCur = pTabItem->iCursor;
150657 pLevel->notReady = notReady & ~sqlite3WhereGetMask(&pWInfo->sMaskSet, iCur);
150761 sqlite3VdbeAddOp4(v, OP_VFilter, iCur, addrNotFound, iReg,
150769 pLevel->p1 = iCur;
150867 sqlite3VdbeAddOp3(v, OP_SeekRowid, iCur, addrNxt, iRowidReg);
150913 testcase( pStart->leftCursor!=iCur ); /* transitive constraints */
150931 sqlite3VdbeAddOp3(v, op, iCur, addrBrk, r1);
150939 sqlite3VdbeAddOp2(v, bRev ? OP_Last : OP_Rewind, iCur, addrHalt);
150948 testcase( pEnd->leftCursor!=iCur ); /* Transitive constraints */
150965 pLevel->p1 = iCur;
150970 sqlite3VdbeAddOp2(v, OP_Rowid, iCur, iRowidReg);
151338 codeDeferredSeek(pWInfo, pIdx, iCur, iIdxCur);
151339 }else if( iCur!=iIdxCur ){
151346 sqlite3VdbeAddOp4Int(v, OP_NotFound, iCur, addrCont,
151369 whereIndexExprTrans(pIdx, iCur, iIdxCur, pWInfo);
151380 whereApplyPartialIndexConstraints(pIdx->pPartIdxWhere, iCur, pWC);
151585 if( pOrTerm->leftCursor==iCur || (pOrTerm->eOperator & WO_AND)!=0 ){
151623 sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, -1, regRowid);
151637 sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, iCol,r+iPk);
151756 pLevel->p1 = iCur;
151757 pLevel->p2 = 1 + sqlite3VdbeAddOp2(v, aStart[bRev], iCur, addrHalt);
151872 if( pTerm->leftCursor!=iCur ) continue;
151884 pAlt = sqlite3WhereFindTerm(pWC, iCur, pTerm->u.x.leftColumn, notReady,
151931 sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, iCol,r+1+iPk);
152062 int iCur = pLevel->iTabCur;
152069 sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, -1, r);
152078 sqlite3ExprCodeGetColumnOfTable(v, pTab, iCur, iCol,r+iPk);
153081 int iCur;
153083 iCur = pFrom->a[i].iCursor;
153088 if( sqlite3ExprCompareSkip(pExpr, pIdx->aColExpr->a[i].pExpr, iCur)==0 ){
153089 aiCurCol[0] = iCur;
154261 int iCur; /* The cursor on the LHS of the term */
154272 iCur = pScan->aiCur[pScan->iEquiv-1];
154274 assert( iCur>=0 );
154278 if( pTerm->leftCursor==iCur
154282 pScan->pIdxExpr,iCur)==0)
154389 int iCur, /* Cursor to scan for */
154401 pScan->aiCur[0] = iCur;
154452 int iCur, /* Cursor number of LHS */
154462 p = whereScanInit(&scan, pWC, iCur, iColumn, op, pIdx);
154987 int iCur; /* Cursor for table getting the filter */
155000 iCur = pLevel->iTabCur;
155023 addrTop = sqlite3VdbeAddOp1(v, OP_Rewind, iCur); VdbeCoverage(v);
155035 sqlite3VdbeAddOp2(v, OP_Rowid, iCur, r1);
155046 sqlite3ExprCodeGetColumnOfTable(v, pIdx->pTable, iCur, iCol,r1+jj);
156645 int iCur, /* Cursor open on pIdx */
156676 || pLhs->iTable!=iCur
157443 int iCur = pSrc->iCursor;
157447 if( !sqlite3ExprCoveredByIndex(pTerm->pExpr, iCur, pProbe) ){
157991 int iCur;
158002 iCur = pItem->iCursor;
158024 }else if( pOrTerm->leftCursor==iCur ){
158224 int iCur; /* Cursor number for current WhereLoop */
158291 iCur = pWInfo->pTabList->a[pLoop->iTab].iCursor;
158303 if( pOBExpr->iTable!=iCur ) continue;
158304 pTerm = sqlite3WhereFindTerm(&pWInfo->sWC, iCur, pOBExpr->iColumn,
158440 if( pOBExpr->iTable!=iCur ) continue;
158444 if( sqlite3ExprCompareSkip(pOBExpr, pIdxExpr, iCur) ){
159026 int iCur;
159043 iCur = pItem->iCursor;
159048 pTerm = whereScanInit(&scan, pWC, iCur, -1, WO_EQ|WO_IS, 0);
159068 pTerm = whereScanInit(&scan, pWC, iCur, j, opMask, pIdx);
159090 assert( pWInfo->sMaskSet.n==1 && iCur==pWInfo->sMaskSet.ix[0] );
159092 pWInfo->a[0].iTabCur = iCur;
159773 int iCur = pTabItem->iCursor;
159774 sqlite3VdbeAddOp4(v, OP_VOpen, iCur, 0, 0, pVTab, P4_VTAB);
160004 static int cursorIsOpen(Vdbe *v, int iCur, int k){
160007 if( pOp->p1!=iCur ) continue;
160118 sqlite3VdbeAddOp2(v, OP_IfNotOpen, pIn->iCur,
160134 sqlite3VdbeAddOp2(v, pIn->eEndLoopOp, pIn->iCur, pIn->addrInTop);