Lines Matching refs:SF_Distinct

19465 #define SF_Distinct      0x0000001 /* Output should be DISTINCT */  macro
32553 ((p->selFlags & SF_Distinct) ? " DISTINCT" : ""), in sqlite3TreeViewSelect()
109572 if( eDistinct==SF_Distinct ) ExprSetProperty(pNew, EP_Distinct);
111236 if( p->selFlags & (SF_Distinct|SF_Aggregate) ){
111237 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
111238 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
111790 testcase( pSelect->selFlags & SF_Distinct );
134990 if( pSelect->selFlags & SF_Distinct ){
146156 if( pSub->selFlags & SF_Distinct ) return 0; /* Restriction (4) */
146165 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
146190 || (p->selFlags & SF_Distinct)!=0 /* (3d) */
146216 if( isAgg || (p->selFlags & SF_Distinct)!=0 || isOuterJoin>0 ){
146220 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
146221 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
146225 if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0 /* (17b) */
146494 assert( (pSub->selFlags & SF_Distinct)==0 ); /* restriction (17b) */
147089 if( (pX->selFlags & (SF_Distinct|SF_Aggregate))!=0 ){
147090 testcase( pX->selFlags & SF_Distinct );
149107 p->selFlags &= ~SF_Distinct;
149569 sDistinct.isTnct = (p->selFlags & SF_Distinct)!=0;
149593 if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct
149599 p->selFlags &= ~SF_Distinct;
149670 if( p->selFlags & SF_Distinct ){
149975 (sDistinct.isTnct && (p->selFlags&SF_Distinct)==0) ?
160564 && (p->selFlags & (SF_Distinct|SF_Aggregate))==0 /* 2 */
174930 {yymsp[0].minor.yy394 = SF_Distinct;}