anchor.diff:            "SELECT SUM(location), AVG(location) FROM GeoCheckin "
             "WHERE time > 5000 AND time < 10000"
             "AND user = 'user_1' AND location = 'derby'"),
  -    ?assertEqual(
  -        {error, [
  -            {invalid_function_call,'SUM',[varchar]},
  -            {invalid_function_call,'AVG',[varchar]}]},
  +    io:format(user, "~p", [compile(get_standard_ddl(), Q, 100)]),
  +    ?assertEqual(
  +        {error,{invalid_query,<<"\nFunction 'SUM' called with arguments of the wrong type [varchar].\n"
  +                                "Function 'AVG' called with arguments of the wrong type [varchar].">>}},
           compile(get_standard_ddl(), Q, 100)
       ).
   
  
positive.code:           "SELECT location + 1 FROM GeoCheckin "
            "WHERE time > 5000 AND time < 10000"
            "AND user = 'user_1' AND location = 'derby'"),
      ?assertEqual(
          {error, [{invalid_type,'+',varchar,sint64}]},
          compile(get_standard_ddl(), Q, 100)
      ).
  
  
negative.code:           "SELECT SUM(location) FROM GeoCheckin "
            "WHERE time > 5000 AND time < 10000"
            "AND user = 'user_1' AND location = 'derby'"),
      io:format(user, "~p", [compile(get_standard_ddl(), Q, 100)]),
      ?assertEqual(
          {error,{invalid_query,<<"\nFunction 'SUM' called with arguments of the wrong type [varchar].">>}},
          compile(get_standard_ddl(), Q, 100)
      ).
  
  