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

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

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 0.5.1
    • Fix Version/s: 0.6.0
    • Component/s: None
    • Labels:
      None

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                Created:
                Updated:
                Resolved: