Lines Matching refs:pSrc

1730     pNew->pSrc = sqlite3SrcListDup(db, p->pSrc, flags);  in sqlite3SelectDup()
2326 int sqlite3ExprIsTableConstraint(Expr *pExpr, const SrcItem *pSrc){ in sqlite3ExprIsTableConstraint() argument
2327 if( pSrc->fg.jointype & JT_LTORJ ){ in sqlite3ExprIsTableConstraint()
2330 if( pSrc->fg.jointype & JT_LEFT ){ in sqlite3ExprIsTableConstraint()
2332 if( pExpr->w.iJoin!=pSrc->iCursor ) return 0; /* rule (4b) */ in sqlite3ExprIsTableConstraint()
2336 return sqlite3ExprIsTableConstant(pExpr, pSrc->iCursor); /* rules (1), (2) */ in sqlite3ExprIsTableConstraint()
2584 SrcList *pSrc; in isCandidateForInOpt() local
2600 pSrc = p->pSrc; in isCandidateForInOpt()
2601 assert( pSrc!=0 ); in isCandidateForInOpt()
2602 if( pSrc->nSrc!=1 ) return 0; /* Single term in FROM clause */ in isCandidateForInOpt()
2603 if( pSrc->a[0].pSelect ) return 0; /* FROM is not a subquery or view */ in isCandidateForInOpt()
2604 pTab = pSrc->a[0].pTab; in isCandidateForInOpt()
2614 assert( pRes->iTable==pSrc->a[0].iCursor ); /* Not a correlated subquery */ in isCandidateForInOpt()
2786 assert( p->pSrc!=0 ); /* Because of isCandidateForInOpt(p) */ in sqlite3FindInIndex()
2787 pTab = p->pSrc->a[0].pTab; in sqlite3FindInIndex()
6054 SrcList *pSrc = pSelect->pSrc; in selectRefEnter() local
6057 if( pSrc->nSrc==0 ) return WRC_Continue; in selectRefEnter()
6059 p->nExclude += pSrc->nSrc; in selectRefEnter()
6067 for(i=0; i<pSrc->nSrc; i++, j++){ in selectRefEnter()
6068 p->aiExclude[j] = pSrc->a[i].iCursor; in selectRefEnter()
6074 SrcList *pSrc = pSelect->pSrc; in selectRefLeave() local
6076 assert( p->nExclude>=pSrc->nSrc ); in selectRefLeave()
6077 p->nExclude -= pSrc->nSrc; in selectRefLeave()
6095 SrcList *pSrc = p->pRef; in exprRefToSrcList() local
6096 int nSrc = pSrc ? pSrc->nSrc : 0; in exprRefToSrcList()
6098 if( pExpr->iTable==pSrc->a[i].iCursor ){ in exprRefToSrcList()