Skip to content
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

Fix find_by functions in Riak Store to work with different data types, not only binaries. #222

Closed
cabol opened this issue Feb 10, 2016 · 1 comment

Comments

@cabol
Copy link
Contributor

cabol commented Feb 10, 2016

Currently, due to Riak store works with binaries inside, the find_by/5 function doesn't works well with values different than binaries in the conditions.

E.g.: if you have an integer field in your model, and you want to find all results that match with that field:

sumo:find_by(my_model, [{age, <<"10">>}]).

The idea is modify sumo_store_riak to allow work with different data types, as defined in the schema, E.g:

sumo:find_by(my_model, [{age, 10}]).
@harenson
Copy link
Member

Already fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants