Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-1270

Class WriteResult Method getN() always return 0

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Documentation
    • Environment:
    • Story Points:
      1

      Description

      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

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            xgen-internal-docs Docs Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: