anchor.diff:              %% query requires a column to be equal to a value AND less than that
               %% value which is impossible
               throw({error, {impossible_where_clause, << >>}});
  +        #filtercheck{'<=' = {_,_,{const,LteVal}} = LteF} = Check1 when LteVal >= EqVal ->
  +            %% query like `a = 10 AND a <= 10` the less than or equals can be
  +            %% eliminated because it is already captured in the equality filter
  +            Acc2 = append_to_eliminate_later(LteF, Acc),
  +            Check2 = Check1#filtercheck{'<=' = undefined, '=' = F},
  +            {F, lists:keystore(FieldName, #filtercheck.name, Acc2, Check2)};
           #filtercheck{'=' = F_x} when F_x /= undefined ->
               %% there are two different checks on the same column, for equality
               %% this can never be satisfied.
  
positive.code:             %% includes it so we can safely eliminate this one.
              {eliminate, Acc}
      end;
  check_where_clause_is_possible_fold(_, _, {'<=',{field,FieldName,_},{const,_LteVal}} = F, Acc) ->
      case find_filter_check(FieldName, Acc) of
          #filtercheck{'<=' = F} ->
              {eliminate, Acc};
          #filtercheck{'<=' = undefined} = Check1 ->
              %% this is the first less than check so just record it
  
negative.code:         S?SQL_SELECT.'WHERE'
      ).
  
  
  -endif.
  