<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Wed Feb 07 21:40:05 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-1594] Add support for Decimal128 BSON type</title>
                <link>https://jira.mongodb.org/browse/CSHARP-1594</link>
                <project id="10041" key="CSHARP">C# Driver</project>
                    <description>&lt;p&gt;Add driver support for a new BSON type for decimal numbers, which will  be added to MongoDB in version 3.4. &lt;/p&gt;

&lt;p&gt;This type will use the decimal128 format as defined by the IEEE 754 standard and support up to 34 decimal digits and a range from -9.999999999999999999999999999999999&#215;10^6144 to +9.999999999999999999999999999999999&#215;10^6144. It also supports positive and negative zero, positive and negative infinity, and two forms of NaN (regular and signaled).&lt;/p&gt;

&lt;p&gt;Decimal values will be treated like any other numeric type, and compare and sort correctly with other types based on actual numeric value. Operations on decimals are implemented in accordance with the standard, so a value of 0.10 will retain its trailing zeros while comparing equal to 0.1, 0.10000 etc.&lt;/p&gt;</description>
                <environment></environment>
        <key id="270544">CSHARP-1594</key>
            <summary>Add support for Decimal128 BSON type</summary>
                <type id="2" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14711&amp;avatarType=issuetype">New Feature</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="robert@mongodb.com">Robert Stam</assignee>
                                    <reporter username="rathi.gnanasekaran">Rathi Gnanasekaran</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Mar 2016 20:07:30 +0000</created>
                <updated>Fri, 27 May 2022 01:35:50 +0000</updated>
                            <resolved>Thu, 1 Sep 2016 13:31:18 +0000</resolved>
                                                    <fixVersion>2.4</fixVersion>
                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>7</watches>
                                                                                                                <comments>
                            <comment id="1448510" author="shawnshaddock" created="Sat, 3 Dec 2016 14:48:14 +0000"  >&lt;p&gt;As George stated, I am also having the same experience. By default System.Decimal is still serializing to strings.&lt;/p&gt;

&lt;p&gt;I tried to force them to serialize to Decimal128 using &lt;span class=&quot;error&quot;&gt;&amp;#91;BsonRepresentation(BsonType.Decimal128)&amp;#93;&lt;/span&gt; but then I get an error when performing an InsertOneAsync:&lt;br/&gt;
&quot;MongoDB.Driver.MongoConnectionException: An exception occurred while receiving a message from the server. ---&amp;gt; System.IO.EndOfStreamException: Attempted to read past the end of the stream.&quot;&lt;/p&gt;

&lt;p&gt;I am using:&lt;br/&gt;
C# Driver v2.4.0&lt;br/&gt;
MongoDB v3.4.0&lt;/p&gt;</comment>
                            <comment id="1442267" author="gjreige79@gmail.com" created="Fri, 25 Nov 2016 09:14:54 +0000"  >&lt;p&gt;Hi All,&lt;/p&gt;

&lt;p&gt;I am trying out the c# 2.4-beta2 driver and it seems it is still treating decimals as strings and sending a string value in the query to mongo.&lt;/p&gt;

&lt;p&gt;I am using &quot;MongoDB.Driver&quot;: &quot;2.4.0-beta1&quot; in my project.json and I have mongo server 3.4 running.&lt;/p&gt;

&lt;p&gt;My filter def is:&lt;/p&gt;

&lt;p&gt;filter = filter &amp;amp; builder.Gte(x =&amp;gt; x.Price, info.PriceFrom)&lt;br/&gt;
                    &amp;amp; builder.Lte(x =&amp;gt; x.Price, info.PriceTo);&lt;/p&gt;

&lt;p&gt;info.PriceFrom and info.PriceTo are decimals and the documents in mongo are decimals not strings.&lt;/p&gt;

&lt;p&gt;The output of the query to mongo is:&lt;/p&gt;

&lt;p&gt;find({&quot;Price&quot; : &lt;/p&gt;
{ &quot;$gte&quot; : &quot;0&quot;, &quot;$lte&quot; : &quot;100000000&quot; }
&lt;p&gt; }). &lt;/p&gt;

&lt;p&gt;Query works fine when I modify the query and run it in the Mongo shell as such: find({&quot;Price&quot; : &lt;/p&gt;
{ &quot;$gte&quot; : 0, &quot;$lte&quot; : 100000000 }
&lt;p&gt; })&lt;/p&gt;

&lt;p&gt;Am I missing something here? It very well could be me...&lt;/p&gt;

&lt;p&gt;Regards,&lt;br/&gt;
George&lt;/p&gt;

</comment>
                            <comment id="1397057" author="xgen-internal-githook" created="Thu, 29 Sep 2016 20:39:14 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1594&quot; title=&quot;Add support for Decimal128 BSON type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1594&quot;&gt;&lt;del&gt;CSHARP-1594&lt;/del&gt;&lt;/a&gt;: Add support for Decimal128 BSON type.&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/ee97df791d0a42853295bcc5cd791e37b8bb076d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/ee97df791d0a42853295bcc5cd791e37b8bb076d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1392912" author="xgen-internal-githook" created="Sat, 24 Sep 2016 23:16:36 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1594&quot; title=&quot;Add support for Decimal128 BSON type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1594&quot;&gt;&lt;del&gt;CSHARP-1594&lt;/del&gt;&lt;/a&gt;: Add support for Decimal128 BSON type.&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/ee97df791d0a42853295bcc5cd791e37b8bb076d&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/ee97df791d0a42853295bcc5cd791e37b8bb076d&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1390383" author="xgen-internal-githook" created="Wed, 21 Sep 2016 21:49:01 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1594&quot; title=&quot;Add support for Decimal128 BSON type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1594&quot;&gt;&lt;del&gt;CSHARP-1594&lt;/del&gt;&lt;/a&gt;: Add support for Decimal128 BSON type.&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/277ed926ea18b9291abbe37f1c47f6e75b8e6e8c&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/277ed926ea18b9291abbe37f1c47f6e75b8e6e8c&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1386494" author="xgen-internal-githook" created="Fri, 16 Sep 2016 17:48:34 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1594&quot; title=&quot;Add support for Decimal128 BSON type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1594&quot;&gt;&lt;del&gt;CSHARP-1594&lt;/del&gt;&lt;/a&gt;: Add support for Decimal128 BSON type.&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/a3683505975fd0bb7d1d6412446e923ee3023c99&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/a3683505975fd0bb7d1d6412446e923ee3023c99&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="1374430" author="xgen-internal-githook" created="Thu, 1 Sep 2016 13:30:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{u&apos;username&apos;: u&apos;rstam&apos;, u&apos;name&apos;: u&apos;rstam&apos;, u&apos;email&apos;: u&apos;robert@robertstam.org&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/CSHARP-1594&quot; title=&quot;Add support for Decimal128 BSON type&quot; class=&quot;issue-link&quot; data-issue-key=&quot;CSHARP-1594&quot;&gt;&lt;del&gt;CSHARP-1594&lt;/del&gt;&lt;/a&gt;: Add support for Decimal128 BSON type.&lt;br/&gt;
Branch: v2.4.x&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-csharp-driver/commit/dca002e73ba42c7f49869203d2533fc8318c3a43&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-csharp-driver/commit/dca002e73ba42c7f49869203d2533fc8318c3a43&lt;/a&gt;&lt;/p&gt;</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="12405">SERVER-1393</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="268747">DRIVERS-288</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_10857" key="com.pyxis.greenhopper.jira:gh-epic-link">
                        <customfieldname>Epic Link</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>CSHARP-1595</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hrcjp3:</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>
                                                                                                                                                                                                                                        <customfield id="customfield_22279" key="com.atlassian.jira.plugin.system.customfieldtypes:labels">
                        <customfieldname>Server Compat</customfieldname>
                        <customfieldvalues>
                                        <label>3.3</label>
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="983">C# Sprint 34</customfieldvalue>
    <customfieldvalue id="984">C# Sprint 35</customfieldvalue>
    <customfieldvalue id="1086">C# Sprint 36</customfieldvalue>
    <customfieldvalue id="1107">C# Sprint 37</customfieldvalue>
    <customfieldvalue id="1134">C# Sprint 38</customfieldvalue>
    <customfieldvalue id="1189">C# Sprint 40</customfieldvalue>
    <customfieldvalue id="1199">C# Sprint 41</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>