<!-- 
RSS generated by JIRA (5.2.4#845-sha1:c9f4cc41abe72fb236945343a1f485c2c844dac9) at Sun May 19 18:27:03 CDT 2013

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 add field=key&field=summary to the URL of your request.
For example:
http://www.couchbase.com/issues/si/jira.issueviews:issue-xml/NCBC-150/NCBC-150.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Couchbase</title>
    <link>http://www.couchbase.com/issues</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.4</version>
        <build-number>845</build-number>
        <build-date>26-12-2012</build-date>
    </build-info>

<item>
            <title>[NCBC-150] Increment examples show incorrect initialization of key</title>
                <link>http://www.couchbase.com/issues/browse/NCBC-150</link>
                <project id="10046" key="NCBC">Couchbase .NET client library</project>
                        <description>&lt;a href=&quot;http://www.couchbase.com/docs/couchbase-sdk-net-1.1/couchbase-sdk-net-update-increment.html&quot;&gt;http://www.couchbase.com/docs/couchbase-sdk-net-1.1/couchbase-sdk-net-update-increment.html&lt;/a&gt;&lt;br/&gt;
&lt;br/&gt;
All of the examples on this page show the default value as an integer when in reality it needs to be enclosed in quotes in order to function properly.  There should also be a note/warning in the documentation warning users of this idiosyncrasy&lt;br/&gt;
</description>
                <environment></environment>
            <key id="20601">NCBC-150</key>
            <summary>Increment examples show incorrect initialization of key</summary>
                <type id="1" iconUrl="http://www.couchbase.com/issues/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.couchbase.com/issues/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.couchbase.com/issues/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="john">John Zablocki</assignee>
                                <reporter username="perry">Perry Krug</reporter>
                        <labels>
                        <label>customer</label>
                    </labels>
                <created>Wed, 7 Nov 2012 05:26:02 -0600</created>
                <updated>Wed, 6 Feb 2013 06:07:56 -0600</updated>
                    <resolved>Wed, 6 Feb 2013 06:07:56 -0600</resolved>
                            <version>1.1.6</version>
                                <fixVersion>1.2.1</fixVersion>
                                <component>docs</component>
                                <votes>0</votes>
                        <watches>2</watches>
                                                    <comments>
                    <comment id="47326" author="john" created="Tue, 8 Jan 2013 17:30:08 -0600"  >The default value should be a ulong as shown in the docs.  I&amp;#39;ve updated the docs (and sent a pull request) to note that it&amp;#39;s not possible to use with Store.  &lt;br/&gt;
&lt;br/&gt;
&lt;a href=&quot;https://github.com/enyim/EnyimMemcached/issues/86&quot;&gt;https://github.com/enyim/EnyimMemcached/issues/86&lt;/a&gt;</comment>
                    <comment id="47371" author="perry" created="Wed, 9 Jan 2013 10:59:39 -0600"  >Hey John, thanks for taking a look at this.&lt;br/&gt;
&lt;br/&gt;
What do you mean that it&amp;#39;s not possible to use with Store?  Do you mean it&amp;#39;s not supported to initialize a counter with store, or just that you can&amp;#39;t use a ulong?</comment>
                    <comment id="47373" author="john" created="Wed, 9 Jan 2013 11:11:25 -0600"  >Well, technically (as you noted) it will work to set a string value via Store and then increment it, but I think that&amp;#39;s unintentional behavior and works only because (as Attila pointed out in the linked issue) of the way counters are treated on the server.  The correct use of the API should be to initialize a counter with Increment or Decrement by setting the default value.  &lt;br/&gt;
&lt;br/&gt;
Either way I think there&amp;#39;s an intentional step imposed on the developer.  I think it&amp;#39;s better to discourage setting a value as a string to initialize a counter, since that&amp;#39;s not very intuitive.  &lt;br/&gt;
&lt;br/&gt;
Thoughts?</comment>
                    <comment id="47374" author="perry" created="Wed, 9 Jan 2013 11:15:04 -0600"  >Thanks for the clarification, makes perfect sense to me.&lt;br/&gt;
&lt;br/&gt;
I do, however, think we need to make that distinction clearer in the docs, both on the increment side and the store side to let customers know what the best practices are (what to do is good, what NOT to do is even more important IMO)&lt;br/&gt;
&lt;br/&gt;
Thanks</comment>
                    <comment id="49805" author="john" created="Tue, 5 Feb 2013 16:50:00 -0600"  >Released</comment>
                    <comment id="49834" author="perry" created="Wed, 6 Feb 2013 05:52:02 -0600"  >Hey John, could you fill in the links of the areas that changed?&lt;br/&gt;
&lt;br/&gt;
Thanks</comment>
                    <comment id="49838" author="perry" created="Wed, 6 Feb 2013 06:07:56 -0600"  >Never mind, I see it now: &lt;a href=&quot;http://www.couchbase.com/docs/couchbase-sdk-net-1.2/couchbase-sdk-net-update-increment.html&quot;&gt;http://www.couchbase.com/docs/couchbase-sdk-net-1.2/couchbase-sdk-net-update-increment.html&lt;/a&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                                                                                                                                                    <customfield id="customfield_10081" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Rank</customfieldname>
                <customfieldvalues>
                    <customfieldvalue>8545</customfieldvalue>
                </customfieldvalues>
            </customfield>
                                                                                    <customfield id="customfield_10181" key="com.atlassian.jira.ext.charting:timeinstatus">
                <customfieldname>Time In Status</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                </customfields>
    </item>
</channel>
</rss>