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

Use bson_error_t message for BulkWriteException message

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.6
    • Affects Version/s: 1.1.4
    • Component/s: None
    • None

      Per SPEC-340, we can rely on libmongoc to merge multiple write and write concern error messages into the bson_error_t message, which is populated by a failed write execution.

      While the bson_error_t message is statically allocated to ~500 bytes, that should be sufficient for a meaningful error message. Users can always inspect the attached WriteResult for full error information. This will allow us to delete code that concatenated error messages (PHPC-506).

            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: