<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 01:30:32 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+10040+AND+labels+%3D+sqlsrv&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+10040+AND+labels+%3D+sqlsrv</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="2" total="2"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-482] SQL Server Schema Manager returns incorrect value for autoincrement on IDENTITY columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-482</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When calculating table diffs, SQLServerSchemaManager returns column definitions for identity columns with _autoincrement set to FALSE. &lt;/p&gt;

&lt;p&gt;This causes the schema update SQL generation to pump out a &lt;br/&gt;
ALTER TABLE x ALTER COLUMN id INT IDENTITY NOT NULL&lt;br/&gt;
for every single identity column in the schema.&lt;/p&gt;

&lt;p&gt;The culprit is in DBAL\Schema\SQLServerSchemaManager, starting at line 43:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;        $dbType = strtolower($tableColumn[&apos;TYPE_NAME&apos;]);
        $dbType = strtok($dbType, &apos;(), &apos;);

        $autoincrement = false;
        if (stripos($dbType, &apos;identity&apos;)) {
            $dbType = trim(str_ireplace(&apos;identity&apos;, &apos;&apos;, $dbType));
            $autoincrement = true;
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When the column in question is an identity int column, the TYPE_NAME is &quot;int identity&quot;. The second line of the snippet drops the &quot;identity&quot; signifier, causing the following lines that determine autoincrement to do nothing.&lt;/p&gt;

&lt;p&gt;I simply moved the second line to below the autoincrement block ie:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;        $dbType = strtolower($tableColumn[&apos;TYPE_NAME&apos;]);

        $autoincrement = false;
        if (stripos($dbType, &apos;identity&apos;)) {
            $dbType = trim(str_ireplace(&apos;identity&apos;, &apos;&apos;, $dbType));
            $autoincrement = true;
        }

        $dbType = strtok($dbType, &apos;(), &apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This change solves this issue for me, and as far as I can tell, has no other consequences.&lt;/p&gt;</description>
                <environment>SQL Server</environment>
            <key id="14753">DBAL-482</key>
            <summary>SQL Server Schema Manager returns incorrect value for autoincrement on IDENTITY columns</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="wschalle">William Schaller</reporter>
                        <labels>
                        <label>schematool</label>
                        <label>sqlserver</label>
                        <label>sqlsrv</label>
                    </labels>
                <created>Wed, 3 Apr 2013 15:25:55 +0000</created>
                <updated>Wed, 1 May 2013 13:09:45 +0000</updated>
                    <resolved>Wed, 1 May 2013 13:09:45 +0000</resolved>
                            <version>2.2</version>
                <version>2.3</version>
                <version>2.3.3</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20158" author="beberlei" created="Wed, 1 May 2013 13:09:45 +0000"  >&lt;p&gt;Fixed for 2.3.4 and was fixed for 2.4 in a different way already.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-422] Wrong VARCHAR default length in SQLServerPlatform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-422</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In SQLServerPlatform the default length for a VARCHAR declaration is set to &quot;255&quot;. But according to the SQLServer documentation from Microsoft the default length is &quot;1&quot;, if omitted in the declaration.&lt;br/&gt;
See remarks: &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms186939.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ms186939.aspx&lt;/a&gt;&lt;br/&gt;
Also the default length is hardcoded in the &quot;getVarcharTypeDeclarationSQLSnippet&quot; method which in my opinion should be evaluated through &quot;getVarcharDefaultLength&quot;.&lt;/p&gt;

&lt;p&gt;I don&apos;t exactly know if the current implementation is intended, otherwise it should be fixed. I would then create an PR if desired.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14407">DBAL-422</key>
            <summary>Wrong VARCHAR default length in SQLServerPlatform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="deeky666">Steve M&#252;ller</reporter>
                        <labels>
                        <label>platform</label>
                        <label>sqlserver</label>
                        <label>sqlsrv</label>
                        <label>varchar</label>
                    </labels>
                <created>Thu, 24 Jan 2013 01:25:45 +0000</created>
                <updated>Thu, 24 Jan 2013 01:25:45 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>