Lines Matching refs:pScan

86453   ScanStatus *pScan;
86455 pScan = &p->aScan[idx];
86458 *(sqlite3_int64*)pOut = p->anExec[pScan->addrLoop];
86462 *(sqlite3_int64*)pOut = p->anExec[pScan->addrVisit];
86467 LogEst x = pScan->nEst;
86476 *(const char**)pOut = pScan->zName;
86480 if( pScan->addrExplain ){
86481 *(const char**)pOut = p->aOp[ pScan->addrExplain ].p4.z;
86488 if( pScan->addrExplain ){
86489 *(int*)pOut = p->aOp[ pScan->addrExplain ].p1;
150909 ** established when the pScan object was initialized by whereScanInit().
150912 static WhereTerm *whereScanNext(WhereScan *pScan){
150916 WhereClause *pWC; /* Shorthand for pScan->pWC */
150918 int k = pScan->k; /* Where to start scanning */
150920 assert( pScan->iEquiv<=pScan->nEquiv );
150921 pWC = pScan->pWC;
150923 iColumn = pScan->aiColumn[pScan->iEquiv-1];
150924 iCur = pScan->aiCur[pScan->iEquiv-1];
150934 pScan->pIdxExpr,iCur)==0)
150935 && (pScan->iEquiv<=1 || !ExprHasProperty(pTerm->pExpr, EP_FromJoin))
150938 && pScan->nEquiv<ArraySize(pScan->aiCur)
150942 for(j=0; j<pScan->nEquiv; j++){
150943 if( pScan->aiCur[j]==pX->iTable
150944 && pScan->aiColumn[j]==pX->iColumn ){
150948 if( j==pScan->nEquiv ){
150949 pScan->aiCur[j] = pX->iTable;
150950 pScan->aiColumn[j] = pX->iColumn;
150951 pScan->nEquiv++;
150954 if( (pTerm->eOperator & pScan->opMask)!=0 ){
150956 if( pScan->zCollName && (pTerm->eOperator & WO_ISNULL)==0 ){
150960 if( !sqlite3IndexAffinityOk(pX, pScan->idxaff) ){
150966 if( sqlite3StrICmp(pColl->zName, pScan->zCollName) ){
150973 && pX->iTable==pScan->aiCur[0]
150974 && pX->iColumn==pScan->aiColumn[0]
150979 pScan->pWC = pWC;
150980 pScan->k = k+1;
150985 pTerm, pScan->nEquiv);
150986 for(ii=0; ii<pScan->nEquiv; ii++){
150988 pScan->aiCur[ii], pScan->aiColumn[ii]);
151000 if( pScan->iEquiv>=pScan->nEquiv ) break;
151001 pWC = pScan->pOrigWC;
151003 pScan->iEquiv++;
151014 static SQLITE_NOINLINE WhereTerm *whereScanInitIndexExpr(WhereScan *pScan){
151015 pScan->idxaff = sqlite3ExprAffinity(pScan->pIdxExpr);
151016 return whereScanNext(pScan);
151039 WhereScan *pScan, /* The WhereScan object being initialized */
151046 pScan->pOrigWC = pWC;
151047 pScan->pWC = pWC;
151048 pScan->pIdxExpr = 0;
151049 pScan->idxaff = 0;
151050 pScan->zCollName = 0;
151051 pScan->opMask = opMask;
151052 pScan->k = 0;
151053 pScan->aiCur[0] = iCur;
151054 pScan->nEquiv = 1;
151055 pScan->iEquiv = 1;
151060 pScan->pIdxExpr = pIdx->aColExpr->a[j].pExpr;
151061 pScan->zCollName = pIdx->azColl[j];
151062 pScan->aiColumn[0] = XN_EXPR;
151063 return whereScanInitIndexExpr(pScan);
151067 pScan->idxaff = pIdx->pTable->aCol[iColumn].affinity;
151068 pScan->zCollName = pIdx->azColl[j];
151073 pScan->aiColumn[0] = iColumn;
151074 return whereScanNext(pScan);
222392 Fts5HashEntry *pScan; /* Current ordered scan item */
222888 return fts5HashEntrySort(p, pTerm, nTerm, &p->pScan);
222893 p->pScan = p->pScan->pScanNext;
222897 return (p->pScan==0);
222907 if( (p = pHash->pScan) ){
233271 sqlite3_stmt *pScan = 0;
233283 rc = fts5StorageGetStmt(p, FTS5_STMT_SCAN, &pScan, 0);
233286 while( rc==SQLITE_OK && SQLITE_ROW==sqlite3_step(pScan) ){
233287 i64 iRowid = sqlite3_column_int64(pScan, 0);
233294 const char *zText = (const char*)sqlite3_column_text(pScan, ctx.iCol+1);
233295 int nText = sqlite3_column_bytes(pScan, ctx.iCol+1);
233313 rc2 = sqlite3_reset(pScan);
233561 sqlite3_stmt *pScan;
233577 rc = fts5StorageGetStmt(p, FTS5_STMT_SCAN, &pScan, 0);
233580 while( SQLITE_ROW==sqlite3_step(pScan) ){
233582 ctx.iRowid = sqlite3_column_int64(pScan, 0);
233598 const char *zText = (const char*)sqlite3_column_text(pScan, i+1);
233599 int nText = sqlite3_column_bytes(pScan, i+1);
233621 rc2 = sqlite3_reset(pScan);