Merge pull request #938 from basho/bugfix/bch/dont-allow-ts-field-comparison

Update the error message for ts_A_select_compare_two_fields_not_allowed
This commit is contained in:
Brett Hazen 2015-11-23 14:21:40 -07:00
commit 6bd7f17cda

View File

@ -39,7 +39,6 @@ confirm() ->
"AND myfamily = 'fa2mily1' "
"AND myseries ='seriesX' "
"AND weather = myseries",
Expected = "Expect that fields cannot be compared",
Got = ts_util:ts_query(ts_util:cluster_and_connect(single), normal, DDL, Data, Qry),
?assertEqual(Expected, Got),
{error, Got} = ts_util:ts_query(ts_util:cluster_and_connect(single), normal, DDL, Data, Qry),
?assertNotEqual(0, string:str(binary_to_list(Got), "Comparing or otherwise operating on two fields is not supported")),
pass.