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

Where clause comparison failure

    • Type: Icon: Task Task
    • Resolution: Works as Designed
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: API
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      I'm trying to update our mongo driver from an older version to the 2.4 version, but I've hit a problem.

      Old code:

      Query.Where("this.plan.sstats.used < this.plan.sstats.available")
      

      New code:

      builder.Filter.Where(t => t.Plan.StorageStats.UploadUsed < t.Plan.StorageStats.UploadAvailable)
      

      Using the new code returns the following error, whereas the old code worked:

      Additional information: Unsupported filter: ({plan.sstats.used} < {plan.sstats.available}).

      Is there anything I can do to resolve this and retain the atomic nature of the old operation?

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

              Created:
              Updated:
              Resolved: