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

LINQ3: Translate string[i] == c to aggregation expression

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 2.14.0
    • Affects Version/s: None
    • Component/s: LINQ3
    • Labels:
      None

      Translate:

      s[i] == 'c'
      

      to:

      { $eq : [{ $subStrCP : [<s>, <i>, 1] }, "c"] }
      

      Similarly for other comparison operators (not equal etc...).

      The comparand must be a char constant (it will be converted to a one-character string during translation because the server doesn't have the char data type).

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

              Created:
              Updated:
              Resolved: