Lines Matching refs:ExprHasProperty

19080 #define ExprHasProperty(E,P)     (((E)->flags&(P))!=0)  macro
19143 ExprHasProperty((p), EP_WinFunc) && p->y.pWin->eFrmType!=TK_FILTER \
31965 if( ALWAYS(pExpr) && ALWAYS(!ExprHasProperty(pExpr,EP_IntValue)) ){ in sqlite3_str_vappendf()
32071 && (ExprHasProperty(pExpr,EP_OuterON|EP_InnerON) || pExpr->w.iOfst<=0) in sqlite3RecordErrorOffsetOfExpr()
33091 if( ExprHasProperty(pExpr, EP_OuterON) ){ in sqlite3TreeViewExpr()
33094 if( ExprHasProperty(pExpr, EP_InnerON) ){ in sqlite3TreeViewExpr()
33097 if( ExprHasProperty(pExpr, EP_FromDDL) ){ in sqlite3TreeViewExpr()
33133 if( ExprHasProperty(pExpr, EP_FixedCol) ){ in sqlite3TreeViewExpr()
33148 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33154 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33169 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33175 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33185 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33192 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33243 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33255 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33257 !ExprHasProperty(pExpr, EP_Collate) ? "SOFT-" : "", in sqlite3TreeViewExpr()
33267 if( ExprHasProperty(pExpr, EP_TokenOnly) ){ in sqlite3TreeViewExpr()
33279 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
33337 if( ExprHasProperty(pExpr, EP_Subrtn) ){ in sqlite3TreeViewExpr()
33406 assert( !ExprHasProperty(pExpr, EP_IntValue) ); in sqlite3TreeViewExpr()
35230 assert( !ExprHasProperty(p, EP_IntValue) ); in sqlite3DequoteExpr()
84300 assert( !ExprHasProperty(p, EP_IntValue) );
84404 assert( !ExprHasProperty(pExpr, EP_IntValue) );
84428 if( ExprHasProperty(pLeft, EP_IntValue)
84442 if( ExprHasProperty(pExpr, EP_IntValue) ){
84505 assert( !ExprHasProperty(pExpr, EP_IntValue) );
84523 assert( !ExprHasProperty(pExpr, EP_IntValue) );
86660 assert( !ExprHasProperty(pExpr, EP_IntValue) );
106528 testcase( ExprHasProperty(pExpr, EP_TokenOnly) );
106529 testcase( ExprHasProperty(pExpr, EP_Reduced) );
106533 if( !ExprHasProperty(pExpr,(EP_TokenOnly|EP_Leaf)) ){
106539 assert( !ExprHasProperty(pExpr, EP_WinFunc) );
106543 assert( !ExprHasProperty(pExpr, EP_WinFunc) );
106550 if( ExprHasProperty(pExpr, EP_WinFunc) ){
106806 assert( !ExprHasProperty(pExpr, EP_Reduced|EP_TokenOnly) );
106817 assert( !ExprHasProperty(pExpr, EP_IntValue) );
106823 if( ExprHasProperty(pExpr, EP_WinFunc) ){
107028 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
107403 if( (pNC->ncFlags&NC_AllowAgg)==0 && ExprHasProperty(pOrig, EP_Agg) ){
107407 if( ExprHasProperty(pOrig, EP_Win)
107450 if( ExprHasProperty(pExpr,EP_DblQuoted)
107489 assert( !ExprHasProperty(pExpr, EP_xIsSelect|EP_IntValue) );
107494 if( ExprHasProperty(pExpr,EP_Leaf) ){
107518 }else if( cnt==0 && ExprHasProperty(pRight,EP_DblQuoted) ){
107533 if( !ExprHasProperty(pExpr,(EP_TokenOnly|EP_Leaf)) ){
107667 assert( !ExprHasProperty(p, EP_IntValue) );
107771 testcase( ExprHasProperty(pExpr, EP_OuterON) );
107772 assert( !ExprHasProperty(pExpr, EP_IntValue) );
107810 assert( !ExprHasProperty(pExpr, EP_IntValue) );
107823 assert( !ExprHasProperty(pRight, EP_IntValue) );
107854 assert( !ExprHasProperty(pExpr, EP_xIsSelect|EP_IntValue) );
107989 else if( is_agg==0 && ExprHasProperty(pExpr, EP_WinFunc) ){
108012 else if( ExprHasProperty(pExpr, EP_WinFunc) || pExpr->pLeft ){
108042 if( ExprHasProperty(pExpr, EP_WinFunc) ){
108111 assert( !ExprHasProperty(pExpr, EP_Reduced) );
108189 assert( !ExprHasProperty(pE, EP_IntValue) );
108444 if( ExprHasProperty(pExpr, EP_WinFunc) ){
108763 if( ExprHasProperty(pItem->pExpr, EP_Agg) ){
109074 assert( !ExprHasProperty(pExpr, EP_IntValue) );
109091 if( ExprHasProperty(pExpr, EP_Skip|EP_IfNullRow) ){
109213 while( pExpr && ExprHasProperty(pExpr, EP_Skip) ){
109226 while( pExpr && ExprHasProperty(pExpr, EP_Skip|EP_Unlikely) ){
109227 if( ExprHasProperty(pExpr, EP_Unlikely) ){
109284 assert( !ExprHasProperty(p, EP_IntValue) );
109298 if( ExprHasProperty(p->x.pList->a[i].pExpr, EP_Collate) ){
109458 if( ExprHasProperty(p, EP_Commuted) ){
109719 int isCommuted = ExprHasProperty(pExpr,EP_Commuted);
110182 assert( !ExprHasProperty(pNew, EP_InnerON|EP_OuterON) );
110277 if( ExprHasProperty(pExpr, EP_FromDDL) ){
110315 assert( !ExprHasProperty(pExpr, EP_IntValue|EP_Reduced|EP_TokenOnly) );
110388 if( ExprHasProperty(p, EP_Leaf) && !ExprHasProperty(p, EP_TokenOnly) ){
110395 if( !ExprHasProperty(p, (EP_TokenOnly|EP_Leaf)) ){
110399 assert( !ExprHasProperty(p, EP_WinFunc) );
110402 assert( !ExprHasProperty(p, EP_WinFunc) );
110407 if( ExprHasProperty(p, EP_WinFunc) ){
110414 if( !ExprHasProperty(p, EP_Static)
110415 && !ExprHasProperty(pLeft, EP_Static)
110426 if( !ExprHasProperty(p, EP_Static) ){
110482 if( ExprHasProperty(p, EP_TokenOnly) ) return EXPR_TOKENONLYSIZE;
110483 if( ExprHasProperty(p, EP_Reduced) ) return EXPR_REDUCEDSIZE;
110526 if( 0==flags || ExprHasProperty(p, EP_FullSize) ){
110529 assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) );
110530 assert( !ExprHasProperty(p, EP_OuterON) );
110549 if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
110627 }else if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
110654 if( !ExprHasProperty(p, EP_IntValue) && p->u.zToken ){
110662 assert( ExprHasProperty(p, EP_Reduced)==0 );
110704 if( ExprHasProperty(p, EP_WinFunc) ){
110706 assert( ExprHasProperty(pNew, EP_WinFunc) );
110716 || ExprHasProperty(p->pLeft, EP_Subquery) );
110728 || ExprHasProperty(p->pLeft, EP_Subquery) );
110777 if( pExpr->op==TK_FUNCTION && ExprHasProperty(pExpr, EP_WinFunc) ){
111325 if( !ExprHasProperty(pExpr, EP_Quoted|EP_IntValue)
111342 assert( !ExprHasProperty(pExpr, EP_IntValue) );
111401 if( ExprHasProperty(pExpr, EP_TokenOnly)
111415 || ExprHasProperty(pExpr, EP_WinFunc)
111456 if( pWalker->eCode==2 && ExprHasProperty(pExpr, EP_OuterON) ){
111466 if( (pWalker->eCode>=4 || ExprHasProperty(pExpr,EP_ConstFunc))
111467 && !ExprHasProperty(pExpr, EP_WinFunc)
111491 if( ExprHasProperty(pExpr, EP_FixedCol) && pWalker->eCode!=2 ){
111673 if( !ExprHasProperty(pExpr, EP_OuterON) ) return 0; /* rule (4a) */
111676 if( ExprHasProperty(pExpr, EP_OuterON) ) return 0; /* rule (5) */
111678 if( ExprHasProperty(pExpr, EP_OuterON|EP_InnerON) /* (6a) */
111867 return ExprHasProperty(p, EP_CanBeNull)
111970 if( ExprHasProperty(pX, EP_VarSelect) ) return 0; /* Correlated subq */
112028 assert( !ExprHasProperty(pIn, EP_xIsSelect) );
112456 if( !ExprHasProperty(pExpr, EP_VarSelect) && pParse->iSelfTab==0 ){
112461 if( ExprHasProperty(pExpr, EP_Subrtn) ){
112479 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
112653 if( ExprHasProperty(pExpr, EP_Subrtn) ){
112663 assert( !ExprHasProperty(pExpr, EP_Reduced|EP_TokenOnly) );
112679 if( !ExprHasProperty(pExpr, EP_VarSelect) ){
113555 && !ExprHasProperty(pExpr, EP_Leaf)
113613 if( ExprHasProperty(pExpr, EP_FixedCol) ){
113707 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113713 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113731 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113743 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113757 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113783 ExprHasProperty(pExpr,EP_Commuted));
113838 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113896 assert( !ExprHasProperty(pExpr, EP_IntValue) );
113915 if( ExprHasProperty(pExpr, EP_WinFunc) ){
113927 assert( !ExprHasProperty(pExpr, EP_TokenOnly) );
113931 assert( !ExprHasProperty(pExpr, EP_IntValue) );
114008 if( nFarg>=2 && ExprHasProperty(pExpr, EP_InfixFunc) ){
114092 if( !ExprHasProperty(pExpr, EP_Collate) ){
114318 assert( !ExprHasProperty(pExpr, EP_IntValue) );
114376 if( pExpr!=0 && ExprHasProperty(pExpr, EP_HasFunc) ){
114456 && (ExprHasProperty(pX,EP_Subquery) || pX->op==TK_REGISTER)
114731 r1, r2, dest, jumpIfNull, ExprHasProperty(pExpr,EP_Commuted));
114908 r1, r2, dest, jumpIfNull,ExprHasProperty(pExpr,EP_Commuted));
115088 assert( !ExprHasProperty(pA, EP_IntValue) );
115089 assert( !ExprHasProperty(pB, EP_IntValue) );
115095 if( ExprHasProperty(pA,EP_WinFunc)!=ExprHasProperty(pB,EP_WinFunc) ){
115098 if( ExprHasProperty(pA,EP_WinFunc) ){
115201 if( seenNot && ExprHasProperty(p, EP_xIsSelect) ) return 0;
115337 if( ExprHasProperty(pExpr, EP_OuterON) ) return WRC_Prune;
115338 if( ExprHasProperty(pExpr, EP_InnerON) && pWalker->mWFlags ){
115656 if( ExprHasProperty(pExpr, EP_WinFunc) ){
115682 if( ALWAYS(!ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced))
115888 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
115919 assert( !ExprHasProperty(pExpr, EP_xIsSelect) );
115946 pItem->bOBUnique = ExprHasProperty(pExpr, EP_Distinct);
115955 if( ExprHasProperty(pExpr, EP_Distinct) && !pItem->bOBUnique ){
115964 assert( !ExprHasProperty(pExpr, EP_TokenOnly|EP_Reduced) );
120851 assert( !ExprHasProperty(pAuthArg, EP_IntValue) );
123227 assert( !ExprHasProperty(pCExpr, EP_IntValue) );
125506 assert( !ExprHasProperty(pExpr, EP_IntValue) );
125604 assert( !ExprHasProperty(pListItem->pExpr, EP_IntValue) );
130935 assert( !ExprHasProperty(pExpr, EP_IntValue) );
130959 assert( !ExprHasProperty(pEscape, EP_IntValue) );
134310 ExprHasProperty(pX, EP_Subquery) ? OP_Copy : OP_SCopy, y, iRegStore);
136049 assert( pDestExpr==0 || !ExprHasProperty(pDestExpr, EP_IntValue) );
136051 assert( pSrcExpr==0 || !ExprHasProperty(pSrcExpr, EP_IntValue) );
139958 assert( pColExpr==0 || !ExprHasProperty(pColExpr, EP_IntValue)
143309 assert( !ExprHasProperty(p, EP_TokenOnly|EP_Reduced) );
143342 if( iTable<0 || (ExprHasProperty(p, EP_OuterON) && p->w.iJoin==iTable) ){
143505 assert( !ExprHasProperty(pEq, EP_TokenOnly|EP_Reduced) );
145137 assert( !ExprHasProperty(pColExpr, EP_IntValue) );
146739 if( ExprHasProperty(pExpr, EP_OuterON|EP_InnerON)
146742 testcase( ExprHasProperty(pExpr, EP_InnerON) );
146747 && !ExprHasProperty(pExpr, EP_FixedCol)
146779 testcase( ExprHasProperty(pCopy, EP_Subquery) );
146788 if( ExprHasProperty(pExpr,EP_OuterON|EP_InnerON) ){
146828 if( ExprHasProperty(pExpr, EP_WinFunc) ){
146964 if( ExprHasProperty(pExpr, EP_OuterON) ){
147678 if( ExprHasProperty(pColumn, EP_FixedCol) ) return;
147719 if( ExprHasProperty(pExpr, pConst->mExcludeOn) ){
147720 testcase( ExprHasProperty(pExpr, EP_OuterON) );
147721 testcase( ExprHasProperty(pExpr, EP_InnerON) );
147759 if( ExprHasProperty(pExpr, EP_FixedCol|pConst->mExcludeOn) ){
147760 testcase( ExprHasProperty(pExpr, EP_FixedCol) );
147761 testcase( ExprHasProperty(pExpr, EP_OuterON) );
147762 testcase( ExprHasProperty(pExpr, EP_InnerON) );
148128 if( ExprHasProperty(pWhere, EP_OuterON|EP_InnerON) /* (9a) */
148146 && (ExprHasProperty(pWhere,EP_OuterON)==0
148151 if( ExprHasProperty(pWhere,EP_OuterON)
148306 || ExprHasProperty(pFunc, EP_WinFunc)
148311 assert( !ExprHasProperty(pFunc, EP_IntValue) );
148372 testcase( ExprHasProperty(pExpr, EP_Distinct) );
148373 testcase( ExprHasProperty(pExpr, EP_WinFunc) );
148374 if( ExprHasProperty(pExpr, EP_Distinct|EP_WinFunc) ) return 0;
149045 assert( !ExprHasProperty(pE->pLeft, EP_IntValue) );
149433 if( ExprHasProperty(pExpr, EP_WinFunc) ){
149723 if( ExprHasProperty(pF->pFExpr, EP_WinFunc) ){
150037 if( ExprHasProperty(pExpr, EP_WinFunc) ) return 0;/* Not a window function */
151383 if( ExprHasProperty(pAggInfo->aFunc[i].pFExpr, EP_WinFunc) ){
152675 testcase( ExprHasProperty(pExpr, EP_VarSelect) );
154017 && (pWhere==0 || !ExprHasProperty(pWhere, EP_Subquery))
157787 && (pLevel->iLeftJoin==0 || ExprHasProperty(pTerm->pExpr, EP_OuterON))
158056 if( pExpr->iTable==0 || !ExprHasProperty(pExpr, EP_Subrtn) ){
158514 if( !ExprHasProperty(pExpr, EP_OuterON)
158523 if( ExprHasProperty(pTerm->pExpr, EP_OuterON) ) continue;
159694 if( ExprHasProperty(pExpr, EP_Subquery) ) continue; /* tag-20220303a */
159721 && !ExprHasProperty(pOrExpr, EP_OuterON)
159936 if( !ExprHasProperty(pE,EP_OuterON|EP_InnerON) ){
159941 && !ExprHasProperty(pE,EP_OuterON) ){
160017 assert( !ExprHasProperty(pE, EP_OuterON) );
160193 if( ExprHasProperty(pTerm->pExpr, EP_OuterON|EP_InnerON) ) continue;
160321 if( p && ExprHasProperty(p, EP_Unlikely) ){
160453 assert( !ExprHasProperty(pRight, EP_IntValue) );
160484 assert( !ExprHasProperty(pPrefix, EP_IntValue) );
160539 assert( !ExprHasProperty(pRight, EP_IntValue) );
160630 assert( !ExprHasProperty(pExpr, EP_IntValue) );
160661 assert( !ExprHasProperty(pExpr, EP_IntValue) );
160703 if( pDerived && ExprHasProperty(pBase, EP_OuterON|EP_InnerON) ){
161159 if( ExprHasProperty(pExpr, EP_OuterON) ) return 0;
161344 || ExprHasProperty(pExpr, EP_xIsSelect|EP_IfNullRow)
161362 if( ExprHasProperty(pExpr, EP_OuterON|EP_InnerON) ){
161364 if( ExprHasProperty(pExpr, EP_OuterON) ){
161412 && !ExprHasProperty(pRight, EP_FixedCol)
161451 && !ExprHasProperty(pExpr,EP_OuterON)
161454 assert( !ExprHasProperty(pExpr, EP_IntValue) );
161522 && !ExprHasProperty(pExpr, EP_OuterON)
161580 assert( pStr1==0 || !ExprHasProperty(pStr1, EP_IntValue) );
161581 assert( pStr2==0 || !ExprHasProperty(pStr2, EP_IntValue) );
161726 if( ExprHasProperty(pExpr, EP_OuterON) && pNewExpr ){
162005 if( ExprHasProperty(p, EP_VarSelect) ) pMaskSet->bVarSelect = 1;
162021 if( p->op==TK_COLUMN && !ExprHasProperty(p, EP_FixedCol) ){
162023 }else if( ExprHasProperty(p, EP_TokenOnly|EP_Leaf) ){
162416 if( ALWAYS(p!=0) && p->op==TK_COLUMN && !ExprHasProperty(p, EP_FixedCol) ){
162486 && (pScan->iEquiv<=1 || !ExprHasProperty(pTerm->pExpr, EP_OuterON))
162945 testcase( ExprHasProperty(pTerm->pExpr, EP_OuterON) )
162946 testcase( ExprHasProperty(pTerm->pExpr, EP_InnerON) );
162947 if( !ExprHasProperty(pTerm->pExpr, EP_OuterON|EP_InnerON)
162953 && ExprHasProperty(pTerm->pExpr, EP_InnerON)
163521 assert( !ExprHasProperty(pExpr, EP_IntValue) );
164369 if( ExprHasProperty(pTerm->pExpr, EP_OuterON) ) zType[2] = 'L';
165589 if( (!ExprHasProperty(pExpr, EP_OuterON) || pExpr->w.iJoin==iTab)
165590 && ((jointype & JT_OUTER)==0 || ExprHasProperty(pExpr, EP_OuterON))
167909 if( pExpr->op==TK_FUNCTION && ExprHasProperty(pExpr, EP_ConstFunc)==0 ){
168031 if( !ExprHasProperty(pTerm->pExpr, EP_OuterON)
168038 && ExprHasProperty(pTerm->pExpr, EP_InnerON)
168546 assert( pT->prereqAll!=0 || !ExprHasProperty(pX, EP_OuterON) );
168549 && !(ExprHasProperty(pX, EP_InnerON) /* Condition (3) */
170122 if( !ExprHasProperty(pExpr, EP_WinFunc) ){
170156 assert( ExprHasProperty(pExpr, EP_Static)==0 );
170291 assert( !ExprHasProperty(pExpr, EP_IntValue) );