<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:52:42 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>[JAVA-617] Don&apos;t understand the difference between these queries:</title>
                <link>https://jira.mongodb.org/browse/JAVA-617</link>
                <project id="10006" key="JAVA">Java Driver</project>
                    <description>&lt;p&gt;given this SQL query:&lt;br/&gt;
query = &quot;select SESSION_ID from SESSIONS where PLAYER_ID=&apos;&quot; + playerId + &quot;&apos; and END_DTS is null&quot;;&lt;/p&gt;

&lt;p&gt;why does this work:&lt;br/&gt;
BasicDBObject condQry = new BasicDBObject(&quot;player_id&quot;, playerId).append(&quot;session_end_dts&quot;, 0L);&lt;br/&gt;
BasicDBObject fldsQry = new BasicDBObject(&quot;session_id&quot;, 1);&lt;/p&gt;

&lt;p&gt;cur = coll.find(condQry, fldsQry);&lt;/p&gt;

&lt;p&gt;but this does not:&lt;br/&gt;
query.put(&quot;session_id&quot;, new BasicDBObject(&quot;player_id&quot;, playerId)).append(&quot;session_end_dts&quot;, 0L).append(&quot;session_id&quot;, 1));&lt;br/&gt;
cur = coll.find(query);&lt;/p&gt;

&lt;p&gt;??&lt;/p&gt;</description>
                <environment>Win7</environment>
        <key id="46361">JAVA-617</key>
            <summary>Don&apos;t understand the difference between these queries:</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="rex@phonefusiondev.com">Bruce Rex</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Aug 2012 19:34:18 +0000</created>
                <updated>Wed, 11 Sep 2019 19:13:06 +0000</updated>
                            <resolved>Mon, 6 Aug 2012 20:24:17 +0000</resolved>
                                                                                        <votes>0</votes>
                                    <watches>0</watches>
                                                                                                                <comments>
                            <comment id="150880" author="rex@phonefusiondev.com" created="Mon, 6 Aug 2012 20:16:30 +0000"  >&lt;p&gt;Thanks.&lt;/p&gt;

</comment>
                            <comment id="150875" author="jeff.yemin" created="Mon, 6 Aug 2012 20:05:17 +0000"  >&lt;p&gt;That&apos;s just how the API works.  The query portion and the fields portion have to be two different documents.&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|hrhayv:</customfieldvalue>

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