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

WriteResult::getModifiedCount() should return null for legacy writes

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 0.6.0
    • Affects Version/s: 0.5.1
    • Component/s: None
    • None

      We need to check libmongoc's mongoc_write_result_t.omit_nModified property and conditionally return null. This will at least allow users to discern zero from an unset value.

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

              Created:
              Updated:
              Resolved: