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

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

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 2.14.0
    • None
    • LINQ3
    • None

    Description

      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).

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: