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

Class WriteResult Method getN() always return 0

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Resolution: Fixed
    • None
    • None
    • Documentation

    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

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

            Dates

              Created:
              Updated:
              Resolved: