Lines Matching refs:SF_Distinct
19990 #define SF_Distinct 0x0000001 /* Output should be DISTINCT */ macro
33436 ((p->selFlags & SF_Distinct) ? " DISTINCT" : ""), in sqlite3TreeViewSelect()
111534 if( eDistinct==SF_Distinct ) ExprSetProperty(pNew, EP_Distinct);
113337 if( p->selFlags & (SF_Distinct|SF_Aggregate) ){
113338 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
113339 testcase( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
113971 testcase( pSelect->selFlags & SF_Distinct );
137886 if( pSelect->selFlags & SF_Distinct ){
149271 if( pSub->selFlags & SF_Distinct ) return 0; /* Restriction (4) */
149280 if( pSub->pLimit && (p->selFlags & SF_Distinct)!=0 ){
149305 || (p->selFlags & SF_Distinct)!=0 /* (3d) */
149331 if( isAgg || (p->selFlags & SF_Distinct)!=0 || isOuterJoin>0 ){
149335 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct );
149336 testcase( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))==SF_Aggregate );
149340 if( (pSub1->selFlags & (SF_Distinct|SF_Aggregate))!=0 /* (17b) */
149620 assert( (pSub->selFlags & SF_Distinct)==0 ); /* restriction (17b) */
150246 if( (pX->selFlags & (SF_Distinct|SF_Aggregate))!=0 ){
150247 testcase( pX->selFlags & SF_Distinct );
152087 if( pSub->selFlags & (SF_Aggregate|SF_Distinct) ){
152089 testcase( pSub->selFlags & SF_Distinct );
152332 p->selFlags &= ~(u32)SF_Distinct;
152827 sDistinct.isTnct = (p->selFlags & SF_Distinct)!=0;
152853 if( (p->selFlags & (SF_Distinct|SF_Aggregate))==SF_Distinct
152860 p->selFlags &= ~(u32)SF_Distinct;
152937 if( p->selFlags & SF_Distinct ){
153249 (sDistinct.isTnct && (p->selFlags&SF_Distinct)==0) ?
164209 && (p->selFlags & (SF_Distinct|SF_Aggregate))==0 /* 2 */
179339 {yymsp[0].minor.yy502 = SF_Distinct;}