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

[#192] Make Riak store take care of every condition when building the query #231

Merged

Conversation

harenson
Copy link
Member

No description provided.

%% If **ONLY** the key field is present in the conditions, we are looking
%% for a particular document. Otherwise, it is a general query.
IdFieldFound = lists:keymember(IdField, 1, Conditions),
case {IdFieldFound, length(Conditions)} of
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it be possible to do…

case Conditions of
  [{IdField, Value}] -> …

?

@harenson harenson force-pushed the harenson.192.riak-is-not-correctly-matching-by-id branch from 29bbad8 to dc6824c Compare February 25, 2016 20:36
elbrujohalcon pushed a commit that referenced this pull request Feb 25, 2016
…-matching-by-id

[#192] Make Riak store take care of every condition when building the query
@elbrujohalcon elbrujohalcon merged commit a0953b7 into master Feb 25, 2016
@harenson harenson deleted the harenson.192.riak-is-not-correctly-matching-by-id branch February 25, 2016 20:58
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

Successfully merging this pull request may close these issues.

2 participants