<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:34:34 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-605] bson codec is not supporting pointers for inline tags</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-605</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;Currently if the inline field is a pointer to a struct it returns an error. Pointers to structs are quite common if not idiomatic in Go.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/blob/44d349d1886bcc181046312daee15bb2533a2d10/bson/bsoncodec/struct_codec.go#L342&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/blob/44d349d1886bcc181046312daee15bb2533a2d10/bson/bsoncodec/struct_codec.go#L342&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="621577">GODRIVER-605</key>
            <summary>bson codec is not supporting pointers for inline tags</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</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="13202">Works as Designed</resolution>
                                        <assignee username="-1">Unassigned</assignee>
                                    <reporter username="themihai">Mihai B</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Oct 2018 11:34:19 +0000</created>
                <updated>Fri, 27 Oct 2023 13:16:38 +0000</updated>
                            <resolved>Mon, 19 Nov 2018 20:37:37 +0000</resolved>
                                                                    <component>BSON</component>
                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="2057935" author="themihai" created="Sat, 10 Nov 2018 13:37:02 +0000"  >&lt;p&gt;Sorry for the delay. This is really something that I can&apos;t understand. Can you please let me know why you would not support pointers? What harm it makes ? You just need to check if it&apos;s a pointer and if so dereference it(like any other encoder from the Go community).&lt;/p&gt;

&lt;p&gt;Pointers are part of the language and one good reason why people should use pointers to structs is to reduce the memory usage. The language designers gave us pointers so that we can use them. Structs, being of the value data types are the main candidates for the use of pointers.&#160;&#160;Every single struct encoder&#160; supports pointers.&#160;&lt;/p&gt;</comment>
                            <comment id="2052487" author="kris.brandow" created="Mon, 5 Nov 2018 21:18:55 +0000"  >&lt;p&gt;Closing due to inactivity.&lt;/p&gt;</comment>
                            <comment id="2038204" author="kris.brandow" created="Mon, 22 Oct 2018 20:36:27 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=themihai&quot; class=&quot;user-hover&quot; rel=&quot;themihai&quot;&gt;themihai&lt;/a&gt;,&lt;/p&gt;

&lt;p&gt;This follows the current behavior of the community Go driver&apos;s BSON library, which only support value structs and not pointers to structs. Can you elaborate on your use case for inlining a pointer to a struct?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;/p&gt;

&lt;p&gt;Kris&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|hu13en:</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>