align tests with rts-351 error messages

This commit is contained in:
Gordon Guthrie 2015-10-12 14:28:03 +00:00
parent 7b3edf47e4
commit c911d75294
5 changed files with 5 additions and 5 deletions

View File

@ -141,7 +141,7 @@ get_invalid_qry(invalid_operator) ->
get_invalid_qry(field_comparison) ->
"select * from GeoCheckin Where time > 1 and time < 10 and myfamily = 'family1' and myseries ='seriesX' and weather = family1";
get_invalid_qry(type_error) ->
"select * from GeoCheckin Where time > 1 and time < 10 and myfamily = 'family1' and myseries ='seriesX' and weather = true".
"select * from GeoCheckin Where time > 1 and time < 10 and myfamily = 'family1' and myseries ='seriesX' and weather > true".
get_valid_select_data() ->
Family = <<"family1">>,

View File

@ -17,5 +17,5 @@ confirm() ->
DDL = get_ddl(docs),
Data = get_valid_select_data(),
Qry = get_invalid_qry(borked_syntax),
Expected = "some error message, fix me",
Expected = {error, <<"Message decoding error: \"Unexpected token 'selectah'\"">>},
confirm_select(single, normal, DDL, Data, Qry, Expected).

View File

@ -17,5 +17,5 @@ confirm() ->
DDL = get_ddl(docs),
Data = get_valid_select_data(),
Qry = get_invalid_qry(key_not_covered),
Expected = "some error message, fix me",
Expected = {error, <<"missing_param: Missing parameter myfamily in where clause.">>},
confirm_select(single, normal, DDL, Data, Qry, Expected).

View File

@ -17,5 +17,5 @@ confirm() ->
DDL = get_ddl(docs),
Data = get_valid_select_data(),
Qry = get_invalid_qry(invalid_operator),
Expected = "some error message, fix me",
Expected = {error, <<"invalid_query: \nincompatible_operator: field weather with type binary cannot use operator '>' in where clause.">>},
confirm_select(single, normal, DDL, Data, Qry, Expected).

View File

@ -17,5 +17,5 @@ confirm() ->
DDL = get_ddl(docs),
Data = get_valid_select_data(),
Qry = get_invalid_qry(type_error),
Expected = "some error message, fix me",
Expected = {error, <<"invalid_query: \nincompatible_operator: field weather with type binary cannot use operator '>' in where clause.">>},
confirm_select(single, normal, DDL, Data, Qry, Expected).