executeBulkWrite() should throw InvalidArgumentException for empty BulkWrite

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 1.3.0-beta1, 1.3.0
    • Affects Version/s: 1.1.4
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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:
              Jeremy Mikola
              Reporter:
              Jeremy Mikola
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: