mirror of
https://github.com/valitydev/riak_test.git
synced 2024-11-06 08:35:22 +00:00
Merge pull request #1150 from basho/bch-non-ttb-for-explain
RTS-1391: Test EXPLAIN with PBC, not TTB, which expects binaries
This commit is contained in:
commit
f176714251
@ -45,25 +45,29 @@ confirm() ->
|
||||
<<"Range Scan End Key">>,
|
||||
<<"Is End Inclusive?">>,<<"Filter">>],
|
||||
[{1,
|
||||
"dev1@127.0.0.1/49",
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 1",
|
||||
<<"dev1@127.0.0.1/49">>,
|
||||
<<"myfamily = 'wingo', myseries = 'dingo', time = 1">>,
|
||||
false,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 900000",
|
||||
<<"myfamily = 'wingo', myseries = 'dingo', time = 900000">>,
|
||||
false,
|
||||
"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))"},
|
||||
<<"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))">>},
|
||||
{2,
|
||||
"dev1@127.0.0.1/11",
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 900000",
|
||||
<<"dev1@127.0.0.1/11">>,
|
||||
<<"myfamily = 'wingo', myseries = 'dingo', time = 900000">>,
|
||||
false,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 1800000",
|
||||
<<"myfamily = 'wingo', myseries = 'dingo', time = 1800000">>,
|
||||
false,
|
||||
"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))"},
|
||||
<<"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))">>},
|
||||
{3,
|
||||
"dev1@127.0.0.1/59",
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 1800000",
|
||||
<<"dev1@127.0.0.1/59">>,
|
||||
<<"myfamily = 'wingo', myseries = 'dingo', time = 1800000">>,
|
||||
false,
|
||||
"myfamily = 'wingo', myseries = 'dingo', time = 2000000",
|
||||
<<"myfamily = 'wingo', myseries = 'dingo', time = 2000000">>,
|
||||
false,
|
||||
"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))"}]}},
|
||||
<<"((myoptional = 7) OR ((mybool = true) AND (myvarchar = 'banana')))">>}]}},
|
||||
?assertEqual(Expected, Got),
|
||||
|
||||
%% Now try NOT using TTB
|
||||
Got2 = riakc_ts:query(Conn, Qry, [], undefined, [{use_ttb, false}]),
|
||||
?assertEqual(Expected, Got2),
|
||||
pass.
|
||||
|
Loading…
Reference in New Issue
Block a user