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

executeBulkWrite() should throw InvalidArgumentException for empty BulkWrite

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 1.1.4
    • Component/s: None
    • None

      phongo_execute_write() currently relies on mongoc_bulk_operation_execute() to check for an empty BulkWrite object, which means we throw a BulkWriteException (with an empty WriteResult). Since this is just argument validation (it happens before any network IO), we should throw an InvalidArgumentException.

            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: