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

Datastore.update() executes updateFirst() [moved] #247

Closed
jyemin opened this issue Apr 25, 2013 · 0 comments
Closed

Datastore.update() executes updateFirst() [moved] #247

jyemin opened this issue Apr 25, 2013 · 0 comments

Comments

@jyemin
Copy link
Contributor

jyemin commented Apr 25, 2013

This is Issue 247 moved from a Google Code project.
Added by 2011-03-16T11:03:18.000Z by miriam.d...@gmail.com.
Please review that bug for more context and additional comments, but update this bug.
Closed (Fixed).

Original labels: Type-Defect, Priority-Low, Milestone-Release0.99.1

Original description

Version: 1.00-SNAPSHOT

The method 
update(Query<T> query, UpdateOperations<T> ops, boolean createIfMissing, WriteConcern wc)

calls an update wiht multi=false, therefore only the first entity is updated.
Also the given WriteConcern wc is ignored.

I would expect the following implementation:

public <T> UpdateResults<T> update(Query<T> query, UpdateOperations<T> ops,   boolean createIfMissing, WriteConcern wc) {
        return update(query, ops, createIfMissing, true, wc);
    }
@jyemin jyemin closed this as completed Apr 25, 2013
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

1 participant