Lines Matching refs:SF_Distinct
10713 #define SF_Distinct 0x0001 /* Output should be DISTINCT */ macro
74371 if( p->selFlags & (SF_Distinct|SF_Aggregate) ){
74372 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
74373 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
88552 if( pSelect->selFlags & SF_Distinct ){
92427 pNew->selFlags = isDistinct ? SF_Distinct : 0;
95088 if( pSub->selFlags & SF_Distinct ) return 0; /* Restriction (5) */
95092 if( (p->selFlags & SF_Distinct)!=0 && subqueryIsAgg ){
95100 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
95149 if( isAgg || (p->selFlags & SF_Distinct)!=0 || pSrc->nSrc!=1 ){
95153 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
95154 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
95155 if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0
95391 pParent->selFlags |= pSub->selFlags & SF_Distinct;
96118 p->selFlags &= ~SF_Distinct;
96221 isDistinct = (p->selFlags & SF_Distinct)!=0;
96275 if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct
96278 p->selFlags &= ~SF_Distinct;
96321 if( p->selFlags & SF_Distinct ){
96528 isDistinct && !(p->selFlags&SF_Distinct)?"DISTINCT":"GROUP BY");