Lines Matching refs:WHERE_DISTINCTBY
1269 if( (pWInfo->wctrlFlags & WHERE_DISTINCTBY) ){ in allocateIndexInfo()
4434 && ((wctrlFlags&(WHERE_DISTINCTBY|WHERE_SORTBYGROUP))!=WHERE_DISTINCTBY) in wherePathSatisfiesOrderBy()
4439 }else if( wctrlFlags & WHERE_DISTINCTBY ){ in wherePathSatisfiesOrderBy()
4586 testcase( wctrlFlags & WHERE_DISTINCTBY ); in wherePathSatisfiesOrderBy()
4588 if( (wctrlFlags & (WHERE_GROUPBY|WHERE_DISTINCTBY))==0 ) bOnce = 0; in wherePathSatisfiesOrderBy()
4603 if( wctrlFlags & WHERE_DISTINCTBY ){ in wherePathSatisfiesOrderBy()
4704 assert( pWInfo->wctrlFlags & (WHERE_GROUPBY|WHERE_DISTINCTBY) ); in sqlite3WhereIsSorted()
5099 && (pWInfo->wctrlFlags & WHERE_DISTINCTBY)==0 in wherePathSolver()
5105 WHERE_DISTINCTBY, nLoop-1, pFrom->aLoop[nLoop-1], ¬Used); in wherePathSolver()
5113 if( pWInfo->wctrlFlags & WHERE_DISTINCTBY ){ in wherePathSolver()
5811 pWInfo->wctrlFlags |= WHERE_DISTINCTBY; in sqlite3WhereBegin()