[JAVA-157] Typo in DBCollection.findAndModify Created: 28/Aug/10  Updated: 29/Oct/10  Resolved: 28/Aug/10

Status: Closed
Project: Java Driver
Component/s: None
Affects Version/s: 2.1
Fix Version/s: 2.2

Type: Bug Priority: Major - P3
Reporter: Mikhail Vorozhtsov Assignee: Eliot Horowitz (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

There is a typo in DBCollection.java, method findAndModify, lines 269-270:
if (upsert)
cmd.append( "upsert", returnNew );
should be
if (upsert)
cmd.append( "upsert", upsert);



 Comments   
Comment by auto [ 28/Aug/10 ]

Author:

{'login': 'erh', 'name': 'Eliot Horowitz', 'email': 'eliot@10gen.com'}

Message: fix typo in findAndModify JAVA-157
http://github.com/mongodb/mongo-java-driver/commit/6e07295181d4484cf8c0fa093fb0fbcb054bb205

Generated at Thu Feb 08 08:51:37 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.