Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-443

bulk insert doesn't check bson documents

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.0
    • Affects Version/s: 1.0.2
    • Component/s: None
    • None

      When using mongoc_collection_insert(), the document is checked using bson_validate()

      When using a bulk insert, bson_validate() is not used.

      So this document can be inserted with a bulk insert, but not with mongoc_collection_insert():
      {
      "user":

      { "$ref": "User", "$id": "5374d465c43a034f528b45ba", "$db": "db_name" }

      }

            Assignee:
            anna.herlihy@mongodb.com Anna Herlihy (Inactive)
            Reporter:
            jeromelebel Jerome Lebel
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: