Home | History | Annotate | Download | only in dist

Lines Matching refs:pNC

10573     NameContext *pNC;                          /* Naming context */
67727 NameContext *pNC, /* The name context used to resolve the name */
67736 NameContext *pTopNC = pNC; /* First namecontext in the list */
67740 assert( pNC ); /* the name context cannot be NULL. */
67750 while( pNC && cnt==0 ){
67752 SrcList *pSrcList = pNC->pSrcList;
67894 if( cnt==0 && (pEList = pNC->pEList)!=0 && zTab==0 ){
67903 if( !pNC->allowAgg && ExprHasProperty(pOrig, EP_Agg) ){
67920 pNC = pNC->pNext;
67931 ** Because no reference was made to outer contexts, the pNC->nRef
67983 assert( pNC!=0 );
67984 sqlite3AuthRead(pParse, pExpr, pSchema, pNC->pSrcList);
67990 if( pTopNC==pNC ) break;
68034 NameContext *pNC;
68037 pNC = pWalker->u.pNC;
68038 assert( pNC!=0 );
68039 pParse = pNC->pParse;
68045 if( pNC->pSrcList && pNC->pSrcList->nAlloc>0 ){
68046 SrcList *pSrcList = pNC->pSrcList;
68048 for(i=0; i<pNC->pSrcList->nSrc; i++){
68061 SrcList *pSrcList = pNC->pSrcList;
68077 return lookupName(pParse, 0, 0, pExpr->u.zToken, pNC, pExpr);
68101 return lookupName(pParse, zDb, zTable, zColumn, pNC, pExpr);
68141 pNC->nErr++;
68148 if( is_agg && !pNC->allowAgg ){
68150 pNC->nErr++;
68154 pNC->nErr++;
68158 pNC->nErr++;
68162 pNC->hasAgg = 1;
68164 if( is_agg ) pNC->allowAgg = 0;
68166 if( is_agg ) pNC->allowAgg = 1;
68179 int nRef = pNC->nRef;
68181 if( pNC->isCheck ){
68186 assert( pNC->nRef>=nRef );
68187 if( nRef!=pNC->nRef ){
68195 if( pNC->isCheck ){
68453 ** The Name context of the SELECT statement is pNC. zType is either
68470 NameContext *pNC, /* The name context of the SELECT statement */
68483 pParse = pNC->pParse;
68509 if( sqlite3ResolveExprNames(pNC, pE) ){
68536 pOuterNC = pWalker->u.pNC;
68726 ** If the function is an aggregate function, then the pNC->hasAgg is
68735 NameContext *pNC, /* Namespace to resolve expressions in. */
68744 Parse *pParse = pNC->pParse;
68745 if( sqlite3ExprCheckHeight(pParse, pExpr->nHeight+pNC->pParse->nHeight) ){
68751 savedHasAgg = pNC->hasAgg;
68752 pNC->hasAgg = 0;
68755 w.pParse = pNC->pParse;
68756 w.u.pNC = pNC;
68759 pNC->pParse->nHeight -= pExpr->nHeight;
68761 if( pNC->nErr>0 || w.pParse->nErr>0 ){
68764 if( pNC->hasAgg ){
68767 pNC->hasAgg = 1;
68796 w.u.pNC = pOuterNC;
72332 NameContext *pNC = pWalker->u.pNC;
72333 Parse *pParse = pNC->pParse;
72334 SrcList *pSrcList = pNC->pSrcList;
72335 AggInfo *pAggInfo = pNC->pAggInfo;
72408 /* The pNC->nDepth==0 test causes aggregate functions in subqueries
72410 if( pNC->nDepth==0 ){
72454 NameContext *pNC = pWalker->u.pNC;
72455 if( pNC->nDepth==0 ){
72456 pNC->nDepth++;
72458 pNC->nDepth--;
72473 SQLITE_PRIVATE void sqlite3ExprAnalyzeAggregates(NameContext *pNC, Expr *pExpr){
72477 w.u.pNC = pNC;
72478 assert( pNC->pSrcList!=0 );
72488 SQLITE_PRIVATE void sqlite3ExprAnalyzeAggList(NameContext *pNC, ExprList *pList){
72493 sqlite3ExprAnalyzeAggregates(pNC, pItem->pExpr);
88813 NameContext *pNC,
88824 if( NEVER(pExpr==0) || pNC->pSrcList==0 ) return 0;
88838 while( pNC && !pTab ){
88839 SrcList *pTabList = pNC->pSrcList;
88845 pNC = pNC->pNext;
88884 sNC.pNext = pNC;
88885 sNC.pParse = pNC->pParse;
88901 if( pNC->pParse ){
88902 int iDb = sqlite3SchemaToIndex(pNC->pParse->db, pTab->pSchema);
88903 zOriginDb = pNC->pParse->db->aDb[iDb].zName;
88919 sNC.pNext = pNC;
88920 sNC.pParse = pNC->pParse;