Class WriteResult Method getN() always return 0

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • None
    • Affects Version/s: None
    • Component/s: Documentation
    • Environment:
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      DBObject user = new BasicDBObject();
      user.put("name", "hoojo");
      user.put("age", 23);
      WriteResult wr = dbCollection.insert(user);// dbCollection.save(user);

      method wr.getN() return 0 both with insert and save,
      but the data save success.

      Reporter: luoch
      E-mail: luoch668@163.com

              Assignee:
              Unassigned
              Reporter:
              Docs Collector User (Inactive)
              None
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: