Lines Matching refs:SF_Distinct
19533 #define SF_Distinct 0x0000001 /* Output should be DISTINCT */ macro
32862 ((p->selFlags & SF_Distinct) ? " DISTINCT" : ""), in sqlite3TreeViewSelect()
110194 if( eDistinct==SF_Distinct ) ExprSetProperty(pNew, EP_Distinct);
111973 if( p->selFlags & (SF_Distinct|SF_Aggregate) ){
111974 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
111975 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
112527 testcase( pSelect->selFlags & SF_Distinct );
135948 if( pSelect->selFlags & SF_Distinct ){
147269 if( pSub->selFlags & SF_Distinct ) return 0; /* Restriction (4) */
147278 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
147303 || (p->selFlags & SF_Distinct)!=0 /* (3d) */
147329 if( isAgg || (p->selFlags & SF_Distinct)!=0 || isOuterJoin>0 ){
147333 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
147334 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
147338 if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0 /* (17b) */
147607 assert( (pSub->selFlags & SF_Distinct)==0 ); /* restriction (17b) */
148230 if( (pX->selFlags & (SF_Distinct|SF_Aggregate))!=0 ){
148231 testcase( pX->selFlags & SF_Distinct );
150253 p->selFlags &= ~SF_Distinct;
150715 sDistinct.isTnct = (p->selFlags & SF_Distinct)!=0;
150739 if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct
150745 p->selFlags &= ~SF_Distinct;
150816 if( p->selFlags & SF_Distinct ){
151121 (sDistinct.isTnct && (p->selFlags&SF_Distinct)==0) ?
161858 && (p->selFlags & (SF_Distinct|SF_Aggregate))==0 /* 2 */
176488 {yymsp[0].minor.yy144 = SF_Distinct;}