anchor.diff:      Values = Insert#riak_sql_insert_v1.values,
   
       %% Verify all values are now integers
  -    ?assertEqual([[], []],
  -                 lists:map(fun(Row) ->
  -                                   lists:filter(fun({integer, _}) -> false;
  -                                                   (_) -> true end,
  -                                                Row)
  -                           end, Values)).
  +    ?assertEqual([],
  +                 lists:filtermap(fun(Row) ->
  +                                         case lists:filter(fun({integer, _}) -> false;
  +                                                              (_) -> true end, Row) of
  +                                             [] ->
  +                                                 false;
  +                                             _ ->
  +                                                 true
  +                                         end
  +                                 end, Values)).
   
   timestamp_parsing_test() ->
       BadFormat = "20151T10",
  
positive.code:               Rows).
  
  row_timestamp_translation(Mod, Fields, Row) ->
      %% Inserted timestamps cannot be partial, so our function to
      %% complete incomplete datetime values will throw an error
      Types = lists:map(fun({identifier, [Column]}) ->
                                catch Mod:get_field_type([Column])
                        end, Fields),
      TypeMap = lists:zip(Row, Types),
  
      CompleteFun = fun(_) -> throw(<<"Incomplete date/time string">>) end,
      lists:map(fun({binary, String}=Value) ->
                        case lists:keyfind(Value, 1, TypeMap) of
                            {Value, timestamp} ->
  
negative.code: check_integer_timestamps(_, _, _) ->
      0.
  
  good_timestamp_insert_test() ->
      GoodInsert = "insert into table1 values "
          " (1, '2015', 2), "
          " (1, '2015-06', 2), "
          " (1, '2015-06-05', 2), "
          " (1, '2015-06-05 10', 2), "
          " (1, '2015-06-05 10:10:11', 2), "
          " (1, '2015-06-05 10:10:11Z', 2) ",
      {_DDL, _Mod} = helper_compile_def_to_module(
          "CREATE TABLE table1 ("
          "a SINT64 NOT NULL, "
  