Lines Matching refs:ExprHasProperty

17826 #define ExprHasProperty(E,P)     (((E)->flags&(P))!=0)  macro
17886 ExprHasProperty((p), EP_WinFunc) && p->y.pWin->eFrmType!=TK_FILTER \
30663 if( ExprHasProperty(pExpr, EP_FromJoin) ){
30666 if( ExprHasProperty(pExpr, EP_FromDDL) ){
30699 if( ExprHasProperty(pExpr, EP_FixedCol) ){
30714 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30720 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30735 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30741 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30751 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30758 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30808 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30820 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30822 !ExprHasProperty(pExpr, EP_Collate) ? "SOFT-" : "",
30832 if( ExprHasProperty(pExpr, EP_TokenOnly) ){
30839 pWin = ExprHasProperty(pExpr, EP_WinFunc) ? pExpr->y.pWin : 0;
30844 assert( !ExprHasProperty(pExpr, EP_IntValue) );
30951 assert( !ExprHasProperty(pExpr, EP_IntValue) );
32296 assert( !ExprHasProperty(p, EP_IntValue) );
78669 assert( !ExprHasProperty(p, EP_IntValue) );
78774 assert( !ExprHasProperty(pExpr, EP_IntValue) );
78799 if( ExprHasProperty(pExpr, EP_IntValue) ){
78848 assert( !ExprHasProperty(pExpr, EP_IntValue) );
78866 assert( !ExprHasProperty(pExpr, EP_IntValue) );
80739 assert( !ExprHasProperty(pExpr, EP_IntValue) );
99393 testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
99394 testcase( ExprHasProperty(pExpr, EP_Reduced) );
99398 if( !ExprHasProperty(pExpr,(EP_TokenOnly|EP_Leaf)) ){
99402 assert( !ExprHasProperty(pExpr, EP_WinFunc) );
99406 assert( !ExprHasProperty(pExpr, EP_WinFunc) );
99413 if( ExprHasProperty(pExpr, EP_WinFunc) ){
99677 assert( !ExprHasProperty(pExpr, EP_IntValue) );
99691 if( !ExprHasProperty(pExpr, EP_IntValue) && pExpr->u.zToken!=0 ){
99696 if( ExprHasProperty(pExpr, EP_WinFunc) ){
99848 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
100116 if( (pNC->ncFlags&NC_AllowAgg)==0 && ExprHasProperty(pOrig, EP_Agg) ){
100120 if( ExprHasProperty(pOrig, EP_Win)
100163 if( ExprHasProperty(pExpr,EP_DblQuoted)
100232 if( !ExprHasProperty(pExpr,(EP_TokenOnly|EP_Leaf)) ){
100341 assert( !ExprHasProperty(p, EP_IntValue) );
100422 testcase( ExprHasProperty(pExpr, EP_FromJoin) );
100423 assert( !ExprHasProperty(pExpr, EP_IntValue) );
100459 assert( !ExprHasProperty(pExpr, EP_IntValue) );
100472 assert( !ExprHasProperty(pRight, EP_IntValue) );
100505 assert( !ExprHasProperty(pExpr, EP_xIsSelect|EP_IntValue) );
100640 else if( is_agg==0 && ExprHasProperty(pExpr, EP_WinFunc) ){
100660 else if( ExprHasProperty(pExpr, EP_WinFunc) ){
100686 if( ExprHasProperty(pExpr, EP_WinFunc) ){
100752 assert( !ExprHasProperty(pExpr, EP_Reduced) );
100828 assert( !ExprHasProperty(pE, EP_IntValue) );
101081 if( ExprHasProperty(pExpr, EP_WinFunc) ){
101394 if( ExprHasProperty(pItem->pExpr, EP_Agg) ){
101685 while( ExprHasProperty(pExpr, EP_Skip|EP_IfNullRow) ){
101709 assert( !ExprHasProperty(pExpr, EP_IntValue) );
101767 while( pExpr && ExprHasProperty(pExpr, EP_Skip) ){
101780 while( pExpr && ExprHasProperty(pExpr, EP_Skip|EP_Unlikely) ){
101781 if( ExprHasProperty(pExpr, EP_Unlikely) ){
101838 assert( !ExprHasProperty(p, EP_IntValue) );
101853 if( ExprHasProperty(p->x.pList->a[i].pExpr, EP_Collate) ){
102013 if( ExprHasProperty(p, EP_Commuted) ){
102273 int isCommuted = ExprHasProperty(pExpr,EP_Commuted);
102743 if( ExprHasProperty(pExpr, EP_FromDDL) ){
102781 assert( !ExprHasProperty(pExpr, EP_IntValue|EP_Reduced|EP_TokenOnly) );
102850 if( ExprHasProperty(p, EP_Leaf) && !ExprHasProperty(p, EP_TokenOnly) ){
102857 if( !ExprHasProperty(p, (EP_TokenOnly|EP_Leaf)) ){
102862 assert( !ExprHasProperty(p, EP_WinFunc) );
102865 assert( !ExprHasProperty(p, EP_WinFunc) );
102870 if( ExprHasProperty(p, EP_WinFunc) ){
102876 if( ExprHasProperty(p, EP_MemToken) ){
102877 assert( !ExprHasProperty(p, EP_IntValue) );
102880 if( !ExprHasProperty(p, EP_Static) ){
102922 if( ExprHasProperty(p, EP_TokenOnly) ) return EXPR_TOKENONLYSIZE;
102923 if( ExprHasProperty(p, EP_Reduced) ) return EXPR_REDUCEDSIZE;
102968 || ExprHasProperty(p, EP_WinFunc)
102973 assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) );
102974 assert( !ExprHasProperty(p, EP_FromJoin) );
102975 assert( !ExprHasProperty(p, EP_MemToken) );
102994 if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
103062 if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
103068 assert( ExprHasProperty(p, EP_Reduced)==0 );
103103 if( ExprHasProperty(pNew, EP_Reduced|EP_TokenOnly|EP_WinFunc) ){
103105 if( !ExprHasProperty(pNew, EP_TokenOnly|EP_Leaf) ){
103112 if( ExprHasProperty(p, EP_WinFunc) ){
103114 assert( ExprHasProperty(pNew, EP_WinFunc) );
103121 if( !ExprHasProperty(p, EP_TokenOnly|EP_Leaf) ){
103125 || ExprHasProperty(p->pLeft, EP_Subquery) );
103171 if( pExpr->op==TK_FUNCTION && ExprHasProperty(pExpr, EP_WinFunc) ){
103722 if( !ExprHasProperty(pExpr, EP_Quoted|EP_IntValue)
103739 assert( !ExprHasProperty(pExpr, EP_IntValue) );
103804 if( pWalker->eCode==2 && ExprHasProperty(pExpr, EP_FromJoin) ){
103814 if( (pWalker->eCode>=4 || ExprHasProperty(pExpr,EP_ConstFunc))
103815 && !ExprHasProperty(pExpr, EP_WinFunc)
103837 if( ExprHasProperty(pExpr, EP_FixedCol) && pWalker->eCode!=2 ){
104095 return ExprHasProperty(p, EP_CanBeNull) ||
104173 if( ExprHasProperty(pX, EP_VarSelect) ) return 0; /* Correlated subq */
104231 assert( !ExprHasProperty(pIn, EP_xIsSelect) );
104655 if( !ExprHasProperty(pExpr, EP_VarSelect) && pParse->iSelfTab==0 ){
104660 if( ExprHasProperty(pExpr, EP_Subrtn) ){
104677 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
104844 if( ExprHasProperty(pExpr, EP_Subrtn) ){
104854 assert( !ExprHasProperty(pExpr, EP_Reduced|EP_TokenOnly) );
104872 if( !ExprHasProperty(pExpr, EP_VarSelect) ){
105669 if( ExprHasProperty(pExpr, EP_FixedCol) ){
105763 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105769 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105787 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105799 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105822 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105848 ExprHasProperty(pExpr,EP_Commuted));
105903 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105961 assert( !ExprHasProperty(pExpr, EP_IntValue) );
105980 if( ExprHasProperty(pExpr, EP_WinFunc) ){
105990 assert( !ExprHasProperty(pExpr, EP_TokenOnly) );
105994 assert( !ExprHasProperty(pExpr, EP_IntValue) );
106069 if( nFarg>=2 && ExprHasProperty(pExpr, EP_InfixFunc) ){
106355 assert( !ExprHasProperty(pExpr, EP_IntValue) );
106410 if( pExpr!=0 && ExprHasProperty(pExpr, EP_HasFunc) ){
106487 if( ALWAYS(pExpr) && ExprHasProperty(pExpr,EP_Subquery) ){
106761 r1, r2, dest, jumpIfNull, ExprHasProperty(pExpr,EP_Commuted));
106937 r1, r2, dest, jumpIfNull,ExprHasProperty(pExpr,EP_Commuted));
107110 assert( !ExprHasProperty(pA, EP_IntValue) );
107111 assert( !ExprHasProperty(pB, EP_IntValue) );
107117 if( ExprHasProperty(pA,EP_WinFunc)!=ExprHasProperty(pB,EP_WinFunc) ){
107120 if( ExprHasProperty(pA,EP_WinFunc) ){
107223 if( seenNot && ExprHasProperty(p, EP_xIsSelect) ) return 0;
107341 if( ExprHasProperty(pExpr, EP_FromJoin) ) return WRC_Prune;
107630 if( ExprHasProperty(pExpr, EP_WinFunc) ){
107658 if( ALWAYS(!ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced))
107756 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
107836 assert( !ExprHasProperty(pExpr, EP_xIsSelect) );
107853 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
112520 assert( !ExprHasProperty(pAuthArg, EP_IntValue) );
114896 assert( !ExprHasProperty(pCExpr, EP_IntValue) );
117137 assert( !ExprHasProperty(pExpr, EP_IntValue) );
117233 assert( !ExprHasProperty(pListItem->pExpr, EP_IntValue) );
122126 assert( !ExprHasProperty(pExpr, EP_IntValue) );
122150 assert( !ExprHasProperty(pEscape, EP_IntValue) );
126933 assert( pDestExpr==0 || !ExprHasProperty(pDestExpr, EP_IntValue) );
126935 assert( pSrcExpr==0 || !ExprHasProperty(pSrcExpr, EP_IntValue) );
130704 assert( pColExpr==0 || !ExprHasProperty(pColExpr, EP_IntValue)
133611 assert( !ExprHasProperty(pEq, EP_TokenOnly|EP_Reduced) );
133647 assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) );
133672 if( ExprHasProperty(p, EP_FromJoin)
135375 assert( !ExprHasProperty(pColExpr, EP_IntValue) );
136890 if( ExprHasProperty(pExpr, EP_FromJoin)
136897 && !ExprHasProperty(pExpr, EP_FixedCol)
136922 testcase( ExprHasProperty(pCopy, EP_Subquery) );
136931 if( ExprHasProperty(pExpr,EP_FromJoin) ){
136960 if( ExprHasProperty(pExpr, EP_WinFunc) ){
137096 if( ExprHasProperty(pExpr, EP_FromJoin) ){
137743 if( ExprHasProperty(pColumn, EP_FixedCol) ) return;
137784 if( ExprHasProperty(pExpr, EP_FromJoin) ) return;
137820 if( ExprHasProperty(pExpr, EP_FixedCol|EP_FromJoin) ){
137821 testcase( ExprHasProperty(pExpr, EP_FixedCol) );
137822 testcase( ExprHasProperty(pExpr, EP_FromJoin) );
138106 && (ExprHasProperty(pWhere,EP_FromJoin)==0
138111 if( ExprHasProperty(pWhere,EP_FromJoin) && pWhere->iRightJoinTable!=iCursor ){
138177 || ExprHasProperty(pFunc, EP_WinFunc)
138182 assert( !ExprHasProperty(pFunc, EP_IntValue) );
138242 testcase( ExprHasProperty(pExpr, EP_Distinct) );
138243 testcase( ExprHasProperty(pExpr, EP_WinFunc) );
138244 if( ExprHasProperty(pExpr, EP_Distinct|EP_WinFunc) ) return 0;
138890 assert( !ExprHasProperty(pE->pLeft, EP_IntValue) );
139234 if( ExprHasProperty(pF->pFExpr, EP_WinFunc) ){
140301 if( ExprHasProperty(pExpr, EP_WinFunc) ){
140662 if( ExprHasProperty(pAggInfo->aFunc[i].pFExpr, EP_WinFunc) ){
146724 && (pLevel->iLeftJoin==0 || ExprHasProperty(pTerm->pExpr, EP_FromJoin))
147434 if( !ExprHasProperty(pExpr, EP_FromJoin)
147443 if( ExprHasProperty(pTerm->pExpr, EP_FromJoin) ) continue;
147612 testcase( ExprHasProperty(pExpr, EP_Skip) );
147613 testcase( ExprHasProperty(pExpr, EP_Unlikely) );
148647 && !ExprHasProperty(pOrExpr, EP_FromJoin)
148847 if( (pTabItem->fg.jointype&JT_LEFT) && !ExprHasProperty(pE,EP_FromJoin) ){
148917 assert( !ExprHasProperty(pE, EP_FromJoin) );
149058 if( p && ExprHasProperty(p, EP_Unlikely) ){
149190 assert( !ExprHasProperty(pRight, EP_IntValue) );
149221 assert( !ExprHasProperty(pPrefix, EP_IntValue) );
149276 assert( !ExprHasProperty(pRight, EP_IntValue) );
149368 assert( !ExprHasProperty(pExpr, EP_IntValue) );
149399 assert( !ExprHasProperty(pExpr, EP_IntValue) );
149898 if( ExprHasProperty(pExpr, EP_FromJoin) ) return 0;
150071 if( ExprHasProperty(pExpr, EP_FromJoin) ){
150107 && !ExprHasProperty(pRight, EP_FixedCol)
150146 && !ExprHasProperty(pExpr,EP_FromJoin)
150149 assert( !ExprHasProperty(pExpr, EP_IntValue) );
150217 && !ExprHasProperty(pExpr, EP_FromJoin)
150275 assert( pStr1==0 || !ExprHasProperty(pStr1, EP_IntValue) );
150276 assert( pStr2==0 || !ExprHasProperty(pStr2, EP_IntValue) );
150418 if( ExprHasProperty(pExpr, EP_FromJoin) && pNewExpr ){
150530 if( p->op==TK_COLUMN && !ExprHasProperty(p, EP_FixedCol) ){
150532 }else if( ExprHasProperty(p, EP_TokenOnly|EP_Leaf) ){
150542 if( ExprHasProperty(p, EP_VarSelect) ) pMaskSet->bVarSelect = 1;
150901 if( ALWAYS(p!=0) && p->op==TK_COLUMN && !ExprHasProperty(p, EP_FixedCol) ){
150935 && (pScan->iEquiv<=1 || !ExprHasProperty(pTerm->pExpr, EP_FromJoin))
151360 && !ExprHasProperty(pTerm->pExpr, EP_FromJoin)
151431 assert( !ExprHasProperty(pExpr, EP_FromJoin) /* prereq always non-zero */
151436 && !ExprHasProperty(pExpr, EP_FromJoin)
151686 && !ExprHasProperty(pTerm->pExpr, EP_FromJoin)
152451 if( ExprHasProperty(pTerm->pExpr, EP_FromJoin) ) zType[2] = 'L';
153211 && !ExprHasProperty(pTerm->pExpr, EP_FromJoin)
153580 if( (!ExprHasProperty(pExpr, EP_FromJoin) || pExpr->iRightJoinTable==iTab)
153581 && (isLeft==0 || ExprHasProperty(pExpr, EP_FromJoin))
155334 if( pExpr->op==TK_FUNCTION && ExprHasProperty(pExpr, EP_ConstFunc)==0 ){
155797 if( !ExprHasProperty(pTerm->pExpr, EP_FromJoin)
157132 if( !ExprHasProperty(pExpr, EP_WinFunc) ){
157165 assert( ExprHasProperty(pExpr, EP_Static)==0 );
157260 assert( pDup==0 || !ExprHasProperty(pDup, EP_MemToken) );
157301 assert( !ExprHasProperty(pExpr, EP_IntValue) );