<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed May 22 00:43:12 UTC 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.doctrine-project.org/jira/si/jira.issueviews:issue-xml/DBAL-139/DBAL-139.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

<item>
            <title>[DBAL-139] Oracle&apos;s sequences with NOCACHE</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-139</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi community,&lt;/p&gt;

&lt;p&gt;Today I tried to generate Oracle&apos;s sequences with &quot;NOCACHE&quot;, but I checked that method &quot;getCreateSequenceSQL&quot; don&apos;t accept. Can we improvement this method to allow? Below an example of the sintaxe:&lt;/p&gt;

&lt;p&gt;CREATE SEQUENCE seq_test START WITH 1 INCREMENT BY 1 NOCACHE&lt;/p&gt;</description>
                <environment></environment>
            <key id="12865">DBAL-139</key>
            <summary>Oracle&apos;s sequences with NOCACHE</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="augustoximenes">Augusto Ximenes de Souza</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Jul 2011 03:07:29 +0000</created>
                <updated>Thu, 8 Nov 2012 18:08:11 +0000</updated>
                                    <version>2.0.6</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18694" author="antrophy" created="Sat, 22 Sep 2012 13:02:53 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;If cache value is specified then syntax should contain CACHE keyword that follows the value and if value is not specified then it should go without CACHE keyword.&lt;br/&gt;
In this case sequence will be created with CACHE value 20 by default.&lt;br/&gt;
Min cache value is 2 and for determine max value we should have sequence max value defined which is by default 10^27 for an ascending sequence and -1 for a descending sequence.&lt;br/&gt;
Now the max cache value is calculated by the formula (CEIL (MAXVALUE - MINVALUE)) / ABS (INCREMENT).&lt;/p&gt;

&lt;p&gt;My Idea is to add cache attribute to Sequence object and then under the previous story, set cache to given value if value is greater than 1 and less than calculation by the given formula.&lt;/p&gt;

&lt;p&gt;For nocache, &lt;br/&gt;
I would use value of 0 so we will have values in domain (0,1&amp;lt;x&amp;lt;=(CEIL (MAXVALUE - MINVALUE)) / ABS (INCREMENT)).&lt;/p&gt;

&lt;p&gt;Some public function will return NOCACHE or CACHE n and that function could be called in getCreateSequenceSQL method from Sequence input parameter.&lt;/p&gt;

&lt;p&gt;Anyone have a better idea or I can code this and request pull from my fork?&lt;/p&gt;
</comment>
                    <comment id="18960" author="ramonornela" created="Thu, 8 Nov 2012 18:08:11 +0000"  >&lt;p&gt;Duplicate issue &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-348&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-348&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Greetings&lt;br/&gt;
Ramon Ornelas&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>