<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:35:58 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-156] Unexpected result when querying</title>
                <link>https://jira.mongodb.org/browse/CSHARP-156</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Look at the 3 following queries:&lt;/p&gt;

&lt;p&gt;                    var items1 = db.GetCollection&amp;lt;EmailMessage2&amp;gt;().Linq().Where(x =&amp;gt; x.Attribs.Count == 2).ToList();&lt;br/&gt;
                    var items2 = db.GetCollection&amp;lt;EmailMessage2&amp;gt;().Find(&quot;{ _t: \&quot;EmailMessage2\&quot;, Attribs: { $size: &lt;/p&gt;
{ $gt: 0 }
&lt;p&gt; } }&quot;).Documents.ToList();&lt;br/&gt;
                    var items3 = db.GetCollection&amp;lt;EmailMessage2&amp;gt;().Linq().Where(x =&amp;gt; x.Attribs.Count &amp;gt; 0).ToList();&lt;/p&gt;

&lt;p&gt;1 and 2 work fine but 3 brings no result back. I would expect that 3rd query return the same as 2nd (which indeed are the same query).&lt;/p&gt;

</description>
                <environment>Windows XP 32 bits</environment>
        <key id="14303">CSHARP-156</key>
            <summary>Unexpected result when querying</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="5">Cannot Reproduce</resolution>
                                        <assignee username="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="guirec">Guirec</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Jan 2011 17:25:09 +0000</created>
                <updated>Wed, 19 Oct 2016 14:16:08 +0000</updated>
                            <resolved>Tue, 25 Jan 2011 18:05:25 +0000</resolved>
                                    <version>0.9</version>
                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="22663" author="rstam" created="Tue, 25 Jan 2011 18:05:25 +0000"  >&lt;p&gt;The samus driver is a different driver than this one. I believe the current versions of that driver are now hosted at:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb-csharp/mongodb-csharp&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-csharp/mongodb-csharp&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;and they use this page for reporting issues:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb-csharp/mongodb-csharp/issues&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb-csharp/mongodb-csharp/issues&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="22659" author="guirec" created="Tue, 25 Jan 2011 17:48:38 +0000"  >&lt;p&gt;Thanks Robert for quick reply.&lt;/p&gt;

&lt;p&gt;I can&apos;t tell if it is a bug driver... I got the binaries from here : &lt;a href=&quot;https://github.com/samus/mongodb-csharp/&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/samus/mongodb-csharp/&lt;/a&gt;&lt;br/&gt;
and it is mentioned on that page that : &quot;The bug tracker is the same as the Mongodb bug tracker located at &lt;a href=&quot;http://jira.mongodb.org&quot; class=&quot;external-link&quot; rel=&quot;nofollow&quot;&gt;http://jira.mongodb.org&lt;/a&gt;&quot;&lt;/p&gt;

&lt;p&gt;Sorry if I did not post in the correct place. Any idea where I should go ?&lt;/p&gt;

&lt;p&gt;Guirec.&lt;/p&gt;

</comment>
                            <comment id="22657" author="rstam" created="Tue, 25 Jan 2011 17:33:14 +0000"  >&lt;p&gt;The Linq() method in your 3rd query is not part of the official driver.&lt;/p&gt;

&lt;p&gt;Are you sure this is a driver bug?&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|hrh9dj:</customfieldvalue>

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