Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-381

Document and/or modify the behavior of Query.EQ when value is C# null

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 1.4
    • Affects Version/s: 1.3.1
    • Component/s: None
    • None
    • Minor Change

      See: http://groups.google.com/group/mongodb-user/browse_thread/thread/8a8131a6af1daf60

      As a result of BsonDocument functional construction ignoring C# nulls (just like XDocument), the result of the following query builder expression can be surprising:

      Query.EQ("x", null) => {}

      This either needs to be documented more thoroughly, or if we choose to disallow this then Query.EQ should throw an ArgumentNullException.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: