<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:38:21 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[CSHARP-983] string methods trim, substring, and concat throw not supported exception.</title>
                <link>https://jira.mongodb.org/browse/CSHARP-983</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;When attempting to use a Web API service (v2.2) with OData v4 (nightly build 5.2.0-alpha1-140420) the following string functions do not work:&lt;br/&gt;
Trim&lt;br/&gt;
Substring&lt;br/&gt;
Concat&lt;/p&gt;

&lt;p&gt;These are functions that per the OData v4 spec we must support (&lt;a href=&quot;http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html):&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;http://docs.oasis-open.org/odata/odata/v4.0/odata-v4.0-part1-protocol.html):&lt;/a&gt;&lt;br/&gt;
concat(concat(City,&apos;, &apos;), Country) eq &apos;Berlin, Germany&apos;&lt;br/&gt;
trim(CompanyName) eq &apos;Alfreds Futterkiste&apos;&lt;br/&gt;
substring(CompanyName,1) eq &apos;lfreds Futterkiste&apos;&lt;/p&gt;</description>
                <environment>.NET 4.5, Win 7, VS2012, Web API 2.2 OData v4.</environment>
        <key id="139579">CSHARP-983</key>
            <summary>string methods trim, substring, and concat throw not supported exception.</summary>
                <type id="3" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14718&amp;avatarType=issuetype">Task</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="9">Done</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="bothead">bothead</reporter>
                        <labels>
                            <label>question</label>
                    </labels>
                <created>Mon, 2 Jun 2014 15:42:32 +0000</created>
                <updated>Fri, 5 Apr 2019 13:59:27 +0000</updated>
                            <resolved>Mon, 25 Mar 2019 19:52:58 +0000</resolved>
                                    <version>1.9</version>
                                                    <component>API</component>
                    <component>Linq</component>
                    <component>Operations</component>
                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="2191029" author="ian@10gen.com" created="Mon, 25 Mar 2019 19:52:58 +0000"  >&lt;p&gt;This ticket looks to be against the 1.x LINQ implementation - please open a new ticket if you  find the 2.x implementation still lacks  some features that the server now supports.&lt;/p&gt;</comment>
                            <comment id="892120" author="craiggwilson" created="Sat, 18 Apr 2015 12:44:58 +0000"  >&lt;p&gt;We are beholden to the server on what it supports. For instance, Trim() doesn&apos;t exist anywhere on the server, so we can&apos;t translate a Trim call at all. However, in projections ($project, $group), we can translate Substring and Concat, but the same isn&apos;t true in a predicate ($match) since the same language doesn&apos;t exist in both. &lt;/p&gt;

&lt;p&gt;In short, we&apos;ll be supporting what we can where we can.&lt;/p&gt;</comment>
                            <comment id="605058" author="bothead" created="Mon, 2 Jun 2014 15:47:17 +0000"  >&lt;p&gt;Simple LINQ test for trim:&lt;br/&gt;
var trimmedName = from p in repository.All() &amp;#8211; Returns mongo queryable collection&lt;br/&gt;
                                  where p.InstanceId == instanceId &amp;amp;&amp;amp; p.Name.Trim() == string.Empty&lt;br/&gt;
                                  select p;&lt;br/&gt;
                var singleC = trimmedName.SingleOrDefault(); &amp;#8211; Fails&lt;br/&gt;
                singleC.Should().NotBeNull();&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hsme9r:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>129232</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>