Lines Matching refs:SF_Distinct
18237 #define SF_Distinct 0x0000001 /* Output should be DISTINCT */ macro
30437 ((p->selFlags & SF_Distinct) ? " DISTINCT" : ""),
102721 if( eDistinct==SF_Distinct ) ExprSetProperty(pNew, EP_Distinct);
104176 if( p->selFlags & (SF_Distinct|SF_Aggregate) ){
104177 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
104178 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
104726 testcase( pSelect->selFlags & SF_Distinct );
126832 if( pSelect->selFlags & SF_Distinct ){
137342 if( pSub->selFlags & SF_Distinct ) return 0; /* Restriction (4) */
137351 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
137383 || (p->selFlags & SF_Distinct)!=0 /* (3d) */
137407 if( isAgg || (p->selFlags & SF_Distinct)!=0 || isLeftJoin>0 ){
137411 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
137412 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
137416 if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0 /* (17b) */
137673 assert( (pSub->selFlags & SF_Distinct)==0 ); /* restriction (17b) */
139608 p->selFlags &= ~SF_Distinct;
140018 sDistinct.isTnct = (p->selFlags & SF_Distinct)!=0;
140042 if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct
140048 p->selFlags &= ~SF_Distinct;
140106 if( p->selFlags & SF_Distinct ){
140424 (sDistinct.isTnct && (p->selFlags&SF_Distinct)==0) ?
163412 {yymsp[0].minor.yy64 = SF_Distinct;}