<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:58:46 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>[CXX-290] Problem with Query &amp; hint (const string &amp;jsonKeyPatt) with compound index in locale with comma as decimal point</title>
                <link>https://jira.mongodb.org/browse/CXX-290</link>
                <project id="11980" key="CXX">C++ Driver</project>
                    <description>&lt;p&gt;We have compound indexes like this:&lt;/p&gt;

    {containerpath_idx:1,name_idx:1,ismanaged_idx:1}

&lt;p&gt;When we are in German locale and pass this as a string to this method:&lt;/p&gt;

&lt;p&gt;    Query &amp;amp; hint (const string &amp;amp;jsonKeyPatt)&lt;/p&gt;

&lt;p&gt;it throws an exception (FailedToParse: Expecting &apos;}&apos; or &apos;,&apos;) because the parse method in json.cpp uses strtod() to parse the numbers. In any locale that uses commas as decimal places the parsing does not work because strtod() strips the comma as part of the number.&lt;/p&gt;

&lt;p&gt;As a workaround we will use the hint() method that takes a BSON object.&lt;/p&gt;

&lt;p&gt;I&apos;m not sure if there are other places where this will cause issues.&lt;/p&gt;</description>
                <environment>Windows 2008 - German OS</environment>
        <key id="83341">CXX-290</key>
            <summary>Problem with Query &amp; hint (const string &amp;jsonKeyPatt) with compound index in locale with comma as decimal point</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="2">Won&apos;t Fix</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="judsonp">Paul Judson</reporter>
                        <labels>
                            <label>legacy-cxx</label>
                    </labels>
                <created>Wed, 24 Jul 2013 13:30:39 +0000</created>
                <updated>Wed, 7 Jan 2015 16:38:32 +0000</updated>
                            <resolved>Wed, 7 Jan 2015 16:38:32 +0000</resolved>
                                                                    <component>Implementation</component>
                                        <votes>0</votes>
                                    <watches>4</watches>
                                                                                                                <comments>
                            <comment id="799094" author="adam.midvidy" created="Wed, 7 Jan 2015 16:38:32 +0000"  >&lt;p&gt;The driver requires the C locale. We do not plan to change that at this time.&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                                                <inwardlinks description="is related to">
                                        <issuelink>
            <issuekey id="13313">SERVER-1920</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <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|hrg2cv:</customfieldvalue>

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