anchor.diff:              %% cannot safely remove the filter
               KeyElem = {Field, ToKeyTypeFn([Field]), Val},
               rewrite_where_with_additional_filters_key(
  -                Tail, ToKeyTypeFn, StartKey++[KeyElem], EndKey++[KeyElem], true, true, Filter)
  +                Tail, ToKeyTypeFn, StartKey++[KeyElem], EndKey++[KeyElem], true, true, Filter);
  +        _ ->
  +            [{startkey, StartKey}, {endkey, EndKey} | rewrite_where_with_additional_filters_inclusivity_props(SInc, EInc)]
       end.
   
   rewrite_where_with_additional_filters_inclusivity_props(SInc, EInc) ->
  
positive.code:     {Field, FieldType, _OldVal} = lists:keyfind(Field, 1, TupleList),
      lists:keyreplace(Field, 1, TupleList, {Field, FieldType, NewVal}).
  
  -record(filtercheck, {name,'='}).
  
  check_where_clause_is_possible(DDL, WhereProps) ->
      Filter1 = proplists:get_value(filter, WhereProps),
  
negative.code:         compile(DDL, Q)
      ).
  
  
  second_greater_than_check_which_is_a_great_value_is_removed_test() ->
      DDL = get_ddl(
          "CREATE TABLE table1("
          "a TIMESTAMP NOT NULL, "
          "b SINT64 NOT NULL, "
          "PRIMARY KEY ((a),a,b))"),
      {ok, Q} = get_query(
          "SELECT * FROM table1 "
          "WHERE a = 5 AND b > 10 AND b > 11"),
      {ok, [S|_]} = compile(DDL, Q),
      ?assertPropsEqual(
          [{startkey,[{<<"a">>,timestamp,5}]},
           {endkey,  [{<<"a">>,timestamp,5}]},
           {filter, {'>',{field,<<"b">>,sint64},{const, 10}}},
           {end_inclusive,true}],
          S?SQL_SELECT.'WHERE'
      ).
  
  -endif.
  