Uploaded image for project: 'PHP Driver: Library'
  1. PHP Driver: Library
  2. PHPLIB-458

Spec: support arrayFilters in bulkWrite

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None

      Description

      The corresponding spec test currently fails because of an assertion failure:

       

      Failed asserting that stdClass Object &000000003fdd3c8c000000004d3bfe88 (
          'update' => 'test'
          'ordered' => true
          '$db' => 'crud-tests'
          'lsid' => stdClass Object &000000003fdd3cb8000000004d3bfe88 (
              'id' => MongoDB\BSON\Binary Object &000000003fdd3cb1000000004d3bfe88 (
                  'data' => Binary String: 0x641e6ab5c1f54492917c33f04460ad69
                  'type' => 4
              )
          )
          'updates' => Array &0 (
              0 => stdClass Object &000000003fdd3cb5000000004d3bfe88 (
                  'q' => stdClass Object &000000003fdd3cbe000000004d3bfe88 ()
                  'u' => stdClass Object &000000003fdd3cb2000000004d3bfe88 (
                      '$set' => stdClass Object &000000003fdd3cb0000000004d3bfe88 (
                          'y.$[i].b' => 2
                      )
                  )
                  'upsert' => false
                  'multi' => false
                  'arrayFilters' => stdClass Object &000000003fdd3cbf000000004d3bfe88 (
                      0 => stdClass Object &000000003fdd3cb9000000004d3bfe88 (
                          'i.b' => 3
                      )
                  )
              )
              1 => stdClass Object &000000003fdd3c8f000000004d3bfe88 (
                  'q' => stdClass Object &000000003fdd3c8a000000004d3bfe88 ()
                  'u' => stdClass Object &000000003fdd3c88000000004d3bfe88 (
                      '$set' => stdClass Object &000000003fdd3c8b000000004d3bfe88 (
                          'y.$[i].b' => 2
                      )
                  )
                  'upsert' => false
                  'multi' => true
                  'arrayFilters' => stdClass Object &000000003fdd3c8e000000004d3bfe88 (
                      0 => stdClass Object &000000003fdd3c89000000004d3bfe88 (
                          'i.b' => 1
                      )
                  )
              )
          )
      ) matches {"update":"test","updates":[{"q":{},"u":{"$set":{"y.$[i].b":2}},"arrayFilters":[{"i.b":3}]},{"q":{},"u":{"$set":{"y.$[i].b":2}},"multi":true,"arrayFilters":[{"i.b":1}]}],"ordered":true}.
       

        Attachments

          Activity

            People

            Assignee:
            andreas.braun Andreas Braun
            Reporter:
            andreas.braun Andreas Braun
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: