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

LINQ3: string.Count() must translate to $strLenCP instead of $size

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

      Normally a Count method like :

      A.Count()
      

      is translated to:

      { $size : <A> }
      

      but when using Count with a string  like:

      S.Count() 

      it must instead be translated as:

      { $strLenCP : <S> } 

       

            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: