-
Notifications
You must be signed in to change notification settings - Fork 38
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixed issue #153, escape queries generated by Riak store. #161
Conversation
…, only one condition (a tuple).
…er (not inverted), such as they are delivered by DB.
…binaries, now every value is handled as binary. Added riak conditional test.
sumo:persist(Module, Module:new("Jane", "Doe")), | ||
sumo:persist(Module, Module:new("John", "Doe", 30, "2015-01-01")), | ||
sumo:persist(Module, Module:new("Jane Jr.", "Doe", 5, "2015-01-05")), | ||
sumo:persist(Module, Module:new("Joe", "Armstrong")), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to Elvis:
Remove the dynamic function call on line 49. Only modules that define callbacks should make dynamic calls.
@elbrujohalcon now is ready to merge!! |
…test to work with Riak.
sumo:persist(Module, Module:new("Alan", "Turing", 102, "Computer St.")), | ||
|
||
case Module of | ||
sumo_test_people_riak -> timer:sleep(5000); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm very aware that you will hate me… even more… after this comment but: can you keep the style and create a sumo_test_utils:sleep_if_required(Module)
and put this case (in a function-head pattern-matching fashion) in it?
That way we will not need to have cases and conditionals checking module names in the tests themselves.
Fixed issue #153, escape queries generated by Riak store.
build_query
was totally modified to support different scenarios, not only escape string values but also handle conditions such as:<, <=, >, >=, /=, ==, null, not_null
.