[JAVA-93] DBCollection.save() doesn't throw duplicate key exception Created: 17/Mar/10 Updated: 17/Mar/10 Resolved: 17/Mar/10 |
|
| Status: | Closed |
| Project: | Java Driver |
| Component/s: | None |
| Affects Version/s: | 1.3 |
| Fix Version/s: | 1.3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Vladimir Lifar | Assignee: | Eliot Horowitz (Inactive) |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Major Change |
| Description |
|
Steps to reproduce: 3) save object {field : 1, d : 2}Expected: exception on step 3 Unit test: test.save(new BasicDBObject("field", 1).append("discriminator", 1)); catch (MongoException e) { |
| Comments |
| Comment by Vladimir Lifar [ 17/Mar/10 ] |
|
Eilot, |
| Comment by Eliot Horowitz (Inactive) [ 17/Mar/10 ] |
|
if you want insert exception you have to turn on STRICT mode |