Lines Matching refs:SF_Distinct
18443 #define SF_Distinct 0x0000001 /* Output should be DISTINCT */ macro
29586 ((p->selFlags & SF_Distinct) ? " DISTINCT" : ""),
100461 if( eDistinct==SF_Distinct ) ExprSetProperty(pNew, EP_Distinct);
101855 if( p->selFlags & (SF_Distinct|SF_Aggregate) ){
101856 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
101857 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
102399 testcase( pSelect->selFlags & SF_Distinct );
122739 if( pSelect->selFlags & SF_Distinct ){
132661 if( pSub->selFlags & SF_Distinct ) return 0; /* Restriction (4) */
132670 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
132702 || (p->selFlags & SF_Distinct)!=0 /* (3d) */
132726 if( isAgg || (p->selFlags & SF_Distinct)!=0 || pSrc->nSrc!=1 ){
132730 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
132731 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
132734 if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0 /* (17b) */
132982 assert( (pSub->selFlags & SF_Distinct)==0 ); /* restriction (17b) */
134625 p->selFlags &= ~SF_Distinct;
134956 sDistinct.isTnct = (p->selFlags & SF_Distinct)!=0;
134980 if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct
134986 p->selFlags &= ~SF_Distinct;
135044 if( p->selFlags & SF_Distinct ){
135324 (sDistinct.isTnct && (p->selFlags&SF_Distinct)==0) ?
157087 {yymsp[0].minor.yy192 = SF_Distinct;}