Skip to content

Fix RUBY-2054 upsert option is not sent to legacy servers with w:0 due to string/symbol key mismatch #1610

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

Merged
merged 2 commits into from
Jan 7, 2020

Conversation

p-mongo
Copy link
Contributor

@p-mongo p-mongo commented Dec 20, 2019

No description provided.

@p-mongo p-mongo force-pushed the 2054 branch 2 times, most recently from 6582178 to 0c102ec Compare January 2, 2020 04:01
@p-mongo p-mongo changed the title RUBY-2054 2054 Fix RUBY-2054 upsert option is not sent to legacy servers with w:0 due to string/symbol key mismatch Jan 2, 2020
@p-mongo
Copy link
Contributor Author

p-mongo commented Jan 2, 2020

collection.count_documents({}).should == 0

res = collection.find(_id: 'foo').update_one({'$set' => {foo: 'bar'}}, upsert: true)
p res
Copy link
Contributor

Choose a reason for hiding this comment

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

Did you mean to keep this in here?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No, thank you for catching that.

@p-mongo p-mongo merged commit 03bf487 into mongodb:master Jan 7, 2020
@p-mongo p-mongo deleted the 2054 branch January 7, 2020 05:49
p-mongo added a commit that referenced this pull request Jan 7, 2020
…e to string/symbol key mismatch (#1610)

* Fix RUBY-2054 upsert option is not sent to legacy servers with w:0 due to string/symbol key mismatch

* Remove debug print

Co-authored-by: Oleg Pudeyev <p@users.noreply.github.com>
p-mongo added a commit that referenced this pull request Jan 7, 2020
…e to string/symbol key mismatch (#1610)

* Fix RUBY-2054 upsert option is not sent to legacy servers with w:0 due to string/symbol key mismatch

* Remove debug print

Co-authored-by: Oleg Pudeyev <p@users.noreply.github.com>
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.

3 participants