<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:35:08 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>[GODRIVER-867] options.FindOptions.SetLimit() docs suggest negative limits are still supported, but they&apos;re not</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-867</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;The &lt;a href=&quot;https://godoc.org/go.mongodb.org/mongo-driver/mongo/options#FindOptions.SetLimit&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;docs for &lt;tt&gt;options.FindOptions.SetLimit()&lt;/tt&gt;&lt;/a&gt; suggest that negative limits are valid, when in fact the server returns an error if you try (&lt;tt&gt;&quot;Error: (BadValue) Limit value must be non-negative, but received: &amp;lt;N&amp;gt;&quot;&lt;/tt&gt;).  This is because the driver uses the newer &lt;tt&gt;find&lt;/tt&gt; command, which doesn&apos;t support negative limits.  &lt;/p&gt;

&lt;p&gt;(&lt;tt&gt;mgo&lt;/tt&gt; supported negative limits, presumably by converting it to a positive limit + &lt;tt&gt;singleBatch=true&lt;/tt&gt;, which adds to the confusion - as does the fact that the shell&apos;s &lt;tt&gt;cursor.limit()&lt;/tt&gt; supports negative limits too!)&lt;/p&gt;</description>
                <environment></environment>
        <key id="712924">GODRIVER-867</key>
            <summary>options.FindOptions.SetLimit() docs suggest negative limits are still supported, but they&apos;re not</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</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="13201">Fixed</resolution>
                                        <assignee username="divjot.arora@mongodb.com">Divjot Arora</assignee>
                                    <reporter username="duncan.armstrong@mongodb.com">Duncan Armstrong</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Mar 2019 21:56:22 +0000</created>
                <updated>Sat, 28 Oct 2023 11:39:04 +0000</updated>
                            <resolved>Mon, 29 Apr 2019 14:04:11 +0000</resolved>
                                    <version>1.0.0-rc2</version>
                                    <fixVersion>1.0.2</fixVersion>
                                    <component>CRUD</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="2227641" author="xgen-internal-githook" created="Mon, 29 Apr 2019 14:50:08 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Divjot Arora&apos;, &apos;username&apos;: &apos;divjotarora&apos;, &apos;email&apos;: &apos;divjot.arora@10gen.com&apos;}
&lt;p&gt;Message: Support negative limits for find commands&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-867&quot; title=&quot;options.FindOptions.SetLimit() docs suggest negative limits are still supported, but they&amp;#39;re not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-867&quot;&gt;&lt;del&gt;GODRIVER-867&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: Ibaad9e1a081969499a91ca426f38c54bede7fad7&lt;br/&gt;
Branch: release/1.0&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/79bf12663dfd3b92cbe59e610a587fc0939327f2&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/79bf12663dfd3b92cbe59e610a587fc0939327f2&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2227533" author="xgen-internal-githook" created="Mon, 29 Apr 2019 14:02:31 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;email&apos;: &apos;divjot.arora@10gen.com&apos;, &apos;name&apos;: &apos;Divjot Arora&apos;, &apos;username&apos;: &apos;divjotarora&apos;}
&lt;p&gt;Message: Support negative limits for find commands&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-867&quot; title=&quot;options.FindOptions.SetLimit() docs suggest negative limits are still supported, but they&amp;#39;re not&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-867&quot;&gt;&lt;del&gt;GODRIVER-867&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Change-Id: Ibaad9e1a081969499a91ca426f38c54bede7fad7&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/0baf5badaea6104b40cc399fc9836f74ad418e87&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/0baf5badaea6104b40cc399fc9836f74ad418e87&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2223703" author="divjot.arora" created="Wed, 24 Apr 2019 18:09:44 +0000"  >&lt;p&gt;CR:&#160;&lt;a href=&quot;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/451903&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://review.gerrithub.io/c/mongodb/mongo-go-driver/+/451903&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="2175166" author="jeff.yemin" created="Thu, 7 Mar 2019 21:59:35 +0000"  >&lt;p&gt;The CRUD spec still requires negative limit support, so Go driver should support it for consistency, though it appears there are no CRUD spec tests that assert it.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="734326">DRIVERS-2120</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                            <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|hugus7:</customfieldvalue>

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