Uploaded image for project: 'PHP Driver: Extension'
  1. PHP Driver: Extension
  2. PHPC-438

WriteResult debug handler should display null for a missing writeConcernError

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.0.0-beta2
    • Affects Version/s: 1.0.0-beta1
    • Component/s: None
    • None

      Currently, the debug handler serializes an empty BSON document to an empty array. It would be more consistent if we displayed NULL instead.

      Coincidentally, an empty array is reported for "writeErrors"; however, that is always a collection of documents, so an empty array is analogous to "writeConcernError" being null.

            Assignee:
            jmikola@mongodb.com Jeremy Mikola
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: