<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sat May 18 18:52: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+DBAL&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+DBAL</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="513" total="513"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-521] [GH-320] Fixed calculation of differences of columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-521</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/320&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/320&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14963">DBAL-521</key>
            <summary>[GH-320] Fixed calculation of differences of columns</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 May 2013 08:06:09 +0000</created>
                <updated>Fri, 17 May 2013 08:06:09 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-520] [GH-319] Delete unnecessary &quot;use PDO&quot; statement</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-520</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of alexpods:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/319&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/319&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14960">DBAL-520</key>
            <summary>[GH-319] Delete unnecessary &quot;use PDO&quot; statement</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 May 2013 15:08:21 +0000</created>
                <updated>Thu, 16 May 2013 15:08:21 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-519] MasterSlave connection does not keep Slave connections when there is a transaction</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-519</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;while doing a transaction (as a result of ORM persist),&lt;br/&gt;
the connect function sets the forceMasterAsSlave which result on setting &lt;br/&gt;
slave to master,&lt;/p&gt;

&lt;p&gt;on future selects, even if keepSlave is set to true&lt;br/&gt;
and connecting to &apos;slave&apos; as -&amp;gt;connect(&apos;slave&apos;)&lt;br/&gt;
we will get master connections&lt;/p&gt;

&lt;p&gt;I assume we need to check keepSlave when forcing slaves to master&lt;/p&gt;</description>
                <environment></environment>
            <key id="14954">DBAL-519</key>
            <summary>MasterSlave connection does not keep Slave connections when there is a transaction</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="anandagra">Ananda Agrawal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 May 2013 18:01:26 +0000</created>
                <updated>Wed, 15 May 2013 18:01:26 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-518] [GH-318] Update Type.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-518</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of vincequeiroz:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/318&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/318&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Camel case methods names.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14953">DBAL-518</key>
            <summary>[GH-318] Update Type.php</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 May 2013 14:22:02 +0000</created>
                <updated>Fri, 17 May 2013 07:12:35 +0000</updated>
                    <resolved>Fri, 17 May 2013 07:12:35 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20390" author="doctrinebot" created="Fri, 17 May 2013 07:12:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-318&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/318&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/318&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-517] [GH-317] Conditionaly upgrade utf8 to utf8mb4 for MySQL 5.5.3</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-517</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of nicolas-grekas:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/317&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.5/en/charset-unicode-utf8mb4.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As utf8mb4 is a superset of utf8, this should be transparent and backward compatible.&lt;br/&gt;
For those really requiring the &quot;utf8&quot; meant by MySQL, they can use explicitely the utf8mb3 charset.&lt;br/&gt;
But IMHO by default, Doctrine should really use utf8mb4, which is what everybody expect from a charset named &quot;utf8&quot;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14951">DBAL-517</key>
            <summary>[GH-317] Conditionaly upgrade utf8 to utf8mb4 for MySQL 5.5.3</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 May 2013 09:20:59 +0000</created>
                <updated>Wed, 15 May 2013 09:20:59 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-516] [GH-316] Fixed generated sql for postgres substring function</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-516</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of stefk:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/316&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/316&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Currently, the postgres dbal platform generates the following sql code for the substring function :  `SUBSTR(&apos;foo&apos;, 1, 2)`&lt;br/&gt;
where in postgres, it should be :&lt;br/&gt;
`SUBSTRING(&apos;foo&apos; FROM 1 FOR 2)`&lt;br/&gt;
This pull request simply fixes that issue. &lt;/p&gt;</description>
                <environment></environment>
            <key id="14950">DBAL-516</key>
            <summary>[GH-316] Fixed generated sql for postgres substring function</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 May 2013 09:11:01 +0000</created>
                <updated>Wed, 15 May 2013 16:48:06 +0000</updated>
                    <resolved>Wed, 15 May 2013 16:48:06 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20384" author="doctrinebot" created="Wed, 15 May 2013 15:45:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-316&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/316&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/316&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20385" author="ocramius" created="Wed, 15 May 2013 16:48:06 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-515] [GH-315] Shard description requires an &apos;id&apos; not &apos;name&apos;</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-515</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of johannes:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/315&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14949">DBAL-515</key>
            <summary>[GH-315] Shard description requires an &apos;id&apos; not &apos;name&apos;</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 May 2013 13:16:05 +0000</created>
                <updated>Tue, 14 May 2013 13:32:50 +0000</updated>
                    <resolved>Tue, 14 May 2013 13:32:50 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20377" author="doctrinebot" created="Tue, 14 May 2013 13:30:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-315&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/315&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/315&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20378" author="ocramius" created="Tue, 14 May 2013 13:32:50 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-514] [GH-314] Remove unnecessary code from Connection::insert</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-514</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/314&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/314&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This is a tiny optimization in the &amp;lt;code&amp;gt;Connection::insert&amp;lt;/code&amp;gt; method that remove an unnecessary &amp;lt;code&amp;gt;foreach&amp;lt;/code&amp;gt; loop an some unneeded variable assignments.&lt;br/&gt;
If this is not desired, just close this PR &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14945">DBAL-514</key>
            <summary>[GH-314] Remove unnecessary code from Connection::insert</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 May 2013 16:25:50 +0000</created>
                <updated>Tue, 14 May 2013 18:40:29 +0000</updated>
                    <resolved>Tue, 14 May 2013 18:40:29 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20381" author="doctrinebot" created="Tue, 14 May 2013 18:38:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-314&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/314&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/314&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20382" author="ocramius" created="Tue, 14 May 2013 18:40:29 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-513] downloading from github</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-513</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;https://api.github.com/repos/doctrine/dbal/zipball/2.3.4:&quot; class=&quot;external-link&quot;&gt;https://api.github.com/repos/doctrine/dbal/zipball/2.3.4:&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;500: Internal Server Error&lt;/p&gt;</description>
                <environment></environment>
            <key id="14942">DBAL-513</key>
            <summary>downloading from github</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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="webspin">Maarten Bogaert</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 May 2013 10:05:04 +0000</created>
                <updated>Sun, 12 May 2013 10:07:46 +0000</updated>
                    <resolved>Sun, 12 May 2013 10:07:46 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20370" author="webspin" created="Sun, 12 May 2013 10:07:46 +0000"  >&lt;p&gt;ok never mind, after a while the problem resolved itself and the zipball can be downloaded again&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-512] Update schema not working on MsSql due to no support for alter identity</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-512</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When running: php app/console doctrine:schema:update --force&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;&lt;br/&gt;
An exception occurred while executing &apos;ALTER TABLE tableName ALTER COLUMN id INT IDENTITY NOT NULL&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 11.0&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server&amp;#93;&lt;/span&gt;Incorrect syntax near the keyword &apos;IDENTITY&apos;.&lt;/p&gt;


&lt;p&gt;According to this stackoverflow &lt;a href=&quot;http://stackoverflow.com/a/1049305/1833322&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/a/1049305/1833322&lt;/a&gt; MSSQL does not support this query.&lt;/p&gt;</description>
                <environment>Symfony 2.1, SQL Server 2008, driver: pdo_sqlsrv</environment>
            <key id="14835">DBAL-512</key>
            <summary>Update schema not working on MsSql due to no support for alter identity</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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="flip101">Flip</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 May 2013 12:36:03 +0000</created>
                <updated>Mon, 6 May 2013 12:36:03 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-511] Schema\ColumnDiff incorrect with default varchar value and postgresql</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-511</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a Schema\Table  with a column:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$usersTable-&amp;gt;addColumn(&lt;span class=&quot;code-quote&quot;&gt;&quot;lastip&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, array(&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt; =&amp;gt; 32, &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt; =&amp;gt; &quot;&quot;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I use Schema\Comparator on this table I get a ColumnDiff:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
object(Doctrine\DBAL\Schema\ColumnDiff)[554]
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;oldColumnName&apos; =&amp;gt; string &apos;lastip&apos; (length=6)
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;column&apos; =&amp;gt; 
    object(Doctrine\DBAL\Schema\Column)[481]
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_type&apos; =&amp;gt; 
        object(Doctrine\DBAL\Types\StringType)[278]
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_length&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 32
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_precision&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 10
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_scale&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 0
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_unsigned&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_fixed&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_notnull&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_default&apos; =&amp;gt; string &apos;&apos; (length=0)
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_autoincrement&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_platformOptions&apos; =&amp;gt; 
        array
          empty
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_columnDefinition&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_comment&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_customSchemaOptions&apos; =&amp;gt; 
        array
          empty
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_name&apos; =&amp;gt; string &apos;lastip&apos; (length=6)
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_namespace&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_quoted&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;changedProperties&apos; =&amp;gt; 
    array
      0 =&amp;gt; string &apos;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&apos; (length=7)
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &apos;fromColumn&apos; =&amp;gt; 
    object(Doctrine\DBAL\Schema\Column)[293]
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_type&apos; =&amp;gt; 
        object(Doctrine\DBAL\Types\StringType)[278]
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_length&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 32
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_precision&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 10
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_scale&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt; 0
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_unsigned&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_fixed&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_notnull&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_default&apos; =&amp;gt; string &apos;&apos;&apos;::character varying&apos; (length=21)
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_autoincrement&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_platformOptions&apos; =&amp;gt; 
        array
          empty
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_columnDefinition&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_comment&apos; =&amp;gt; string &apos;&apos; (length=0)
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_customSchemaOptions&apos; =&amp;gt; 
        array
          empty
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_name&apos; =&amp;gt; string &apos;lastip&apos; (length=6)
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_namespace&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
      &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; &apos;_quoted&apos; =&amp;gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With &quot;default&quot; postgresql adds &quot;::character varying&quot; when it&apos;s a varchar.&lt;/p&gt;

&lt;p&gt;This gives a alter sql query:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
ALTER TABLE bolt_users ALTER lastip SET  DEFAULT &apos;&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After executing this, the next time it&apos;s the ColumnDiff again. Should the &quot;::character varying&quot; part be ignored by doctrine? Because then the schema will be valid.&lt;/p&gt;

&lt;p&gt;Using Doctrine 2.4.0-BETA1 (38b1a340c5ec7c58be1883696c1f956bed5b7f0c)&lt;/p&gt;</description>
                <environment>Ubuntu 12.04.2 LTS&lt;br/&gt;
PHP 5.3.10-1ubuntu3.6&lt;br/&gt;
PostgreSQL(libpq) Version =&amp;gt; 9.1.8</environment>
            <key id="14823">DBAL-511</key>
            <summary>Schema\ColumnDiff incorrect with default varchar value and postgresql</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="richardhinkamp">Richard Hinkamp</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 May 2013 16:26:54 +0000</created>
                <updated>Sat, 4 May 2013 11:15:53 +0000</updated>
                    <resolved>Sat, 4 May 2013 11:15:53 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20163" author="beberlei" created="Wed, 1 May 2013 17:19:47 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-483&quot; title=&quot;default values make orm:validate-schema fail&quot;&gt;&lt;del&gt;DBAL-483&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20190" author="richardhinkamp" created="Thu, 2 May 2013 09:37:40 +0000"  >&lt;p&gt;Hmm that&apos;s not a duplicate. The default column handling works great in mysql, sqlite and with integer/date/etc fields in postgres, just not with varchar and postgres. I think doctrine should handle the &quot;::character varying&quot; part which postgres adds to the default value of a varchar field.&lt;/p&gt;</comment>
                    <comment id="20202" author="beberlei" created="Sat, 4 May 2013 11:15:53 +0000"  >&lt;p&gt;Yes you are right, fixed the underlying issue now.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-510] Schema tool does not recognize existing columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-510</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;m using doctrine with symfony. The first schema update is working, the table exists with all defined columns.&lt;br/&gt;
When i now run the schema update a second time (without code changes), doctrine tries to create the columns - but they already exists:&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql&lt;br/&gt;
CREATE SEQUENCE users_id_seq INCREMENT BY 1 MINVALUE 1 START 1;&lt;br/&gt;
CREATE TABLE users (id INT NOT NULL, email VARCHAR(255) NOT NULL, password VARCHAR(255) DEFAULT NULL, salt VARCHAR(255) DEFAULT NULL, realname VARCHAR(255) NOT NULL, roles TEXT NOT NULL, PRIMARY KEY(id))&lt;br/&gt;
$ php app/console doctrine:schema:update --force&lt;br/&gt;
Updating database schema...&lt;br/&gt;
Database schema updated successfully! &quot;2&quot; queries were executed&lt;br/&gt;
$ php app/console doctrine:schema:update --dump-sql&lt;br/&gt;
ALTER TABLE users ADD id INT NOT NULL;&lt;br/&gt;
ALTER TABLE users ADD email VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE users ADD password VARCHAR(255) DEFAULT NULL;&lt;br/&gt;
ALTER TABLE users ADD salt VARCHAR(255) DEFAULT NULL;&lt;br/&gt;
ALTER TABLE users ADD realname VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE users ADD roles TEXT NOT NULL;&lt;br/&gt;
ALTER TABLE users ADD PRIMARY KEY (id)&lt;/p&gt;

&lt;p&gt;Doctrine seems to ignore existing columns.&lt;/p&gt;

&lt;p&gt;PHPUnit segfaults because of a backslash prepended to a FQCN and has a failure in the tests run so far (see attached PHPUnit output).&lt;/p&gt;</description>
                <environment>Ubuntu 8.04 with PHP 5.3.2 and PostgreSQL 8.4/9.1 (errors on both versions)</environment>
            <key id="14179">DBAL-510</key>
            <summary>Schema tool does not recognize existing columns</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="mlohr">Matthias Lohr</reporter>
                        <labels>
                    </labels>
                <created>Wed, 31 Oct 2012 16:43:18 +0000</created>
                <updated>Wed, 1 May 2013 12:22:31 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:22:31 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19229" author="beberlei" created="Sun, 6 Jan 2013 09:51:23 +0000"  >&lt;p&gt;Can i see your entity definition? This works normally, there must be something different in your environment.&lt;/p&gt;</comment>
                    <comment id="19232" author="mlohr" created="Sun, 6 Jan 2013 10:11:56 +0000"  >&lt;p&gt;I have the same problem in another project, so i&apos;ll give you the definitions from there. Here&apos;s the console output.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-none&quot;&gt;
$ php -v
PHP 5.3.10-1ubuntu3.4 with Suhosin-Patch (cli) (built: Sep 12 2012 18:59:41) 
Copyright (c) 1997-2012 The PHP Group
Zend Engine v2.3.0, Copyright (c) 1998-2012 Zend Technologies

$ psql --version
psql (PostgreSQL) 9.1.7
contains support for command-line editing

$ php app/console doctrine:schema:update --dump-sql
CREATE TABLE invoices (id INT NOT NULL, number VARCHAR(255) NOT NULL, PRIMARY KEY(id));
CREATE TABLE items (id INT NOT NULL, label VARCHAR(255) NOT NULL, price DOUBLE PRECISION DEFAULT NULL, withTax BOOLEAN NOT NULL, PRIMARY KEY(id));
CREATE TABLE clients (id INT NOT NULL, label VARCHAR(255) NOT NULL, PRIMARY KEY(id))

$ php app/console doctrine:schema:update --force
Updating database schema...
Database schema updated successfully! &quot;3&quot; queries were executed

$ php app/console doctrine:schema:update --dump-sql
ALTER TABLE invoices ADD id INT NOT NULL;
ALTER TABLE invoices ADD number VARCHAR(255) NOT NULL;
ALTER TABLE invoices ADD PRIMARY KEY (id);
ALTER TABLE items ADD id INT NOT NULL;
ALTER TABLE items ADD label VARCHAR(255) NOT NULL;
ALTER TABLE items ADD price DOUBLE PRECISION DEFAULT NULL;
ALTER TABLE items ADD withTax BOOLEAN NOT NULL;
ALTER TABLE items ADD PRIMARY KEY (id);
ALTER TABLE clients ADD id INT NOT NULL;
ALTER TABLE clients ADD label VARCHAR(255) NOT NULL;
ALTER TABLE clients ADD PRIMARY KEY (id)

$ php app/console doctrine:schema:update --force
Updating database schema...
                                                                   
  [Doctrine\DBAL\DBALException]                                                                   
  An exception occurred while executing &apos;ALTER TABLE invoices ADD id INT NOT NULL&apos;:               
                                                                                                  
  SQLSTATE[42701]: Duplicate column: 7 ERROR:  column &quot;id&quot; of relation &quot;invoices&quot; already exists  
                                                                                                  
                                                                                      
  [PDOException]                                                                                  
  SQLSTATE[42701]: Duplicate column: 7 ERROR:  column &quot;id&quot; of relation &quot;invoices&quot; already exists  
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Client.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace LohrTec\PureInvoiceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;clients&quot;&lt;/span&gt;)
 */
class Client {

	/**
	 * client id
	 *
	 * @ORM\Id
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
	 * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

	/**
	 * client label
	 *
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $label;


	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId() {
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;id;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getLabel() {
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;label;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLabel($label) {
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;label = $label;
	}

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Invoice.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace LohrTec\PureInvoiceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;invoices&quot;&lt;/span&gt;)
 */
class Invoice {

	/**
	 * client id
	 *
	 * @ORM\Id
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
	 * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

	/**
	 * invoice number
	 *
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $number;

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Item.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace LohrTec\PureInvoiceBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;items&quot;&lt;/span&gt;)
 */
class Item {

	/**
	 * item id
	 *
	 * @ORM\Id
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
	 * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

	/**
	 * item label
	 *
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $label = &apos;&apos;;

	/**
	 * item &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; price
	 *
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $price = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;

	/**
	 * &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;: pre tax price, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;: post tax price
	 *
	 * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;&lt;/span&gt;)
	 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;
	 */
	&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $withTax = 1;

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($label, $price = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $withTax = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setLabel($label);
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;setPrice($price, $withTax);
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId() {
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;id;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getLabel() {
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;label;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getPrice() {
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;price;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function priceIsTaxed() {
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;withTax;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLabel($label) {
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;label = $label;
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setPrice($price, $withTax = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;price = $price;
		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($withTax !== &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;withTax = ($withTax?&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;);
	}

	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setPriceIsTaxed($isTaxed) {
		$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;withTax = $isTaxed;
	}

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20016" author="adrienbrault" created="Mon, 15 Apr 2013 15:53:16 +0000"  >&lt;p&gt;This happens when the schema in which your tables are, is the first one in the list of `show search_path;`.&lt;br/&gt;
A simple workaround I&apos;m using is to add a dumb schema at the beginning of search_path `ALTER USER youruser SET search_path = foo,yourschema,public;`.&lt;/p&gt;</comment>
                    <comment id="20017" author="adrienbrault" created="Mon, 15 Apr 2013 15:55:30 +0000"  >&lt;p&gt;FYI, \Doctrine\DBAL\Platforms\PostgreSqlPlatform::getTableWhereClause doesnt seem to work when the $table has no &quot;.&quot; in it. (Which happen when the schema is the first in the search_path ...).&lt;/p&gt;</comment>
                    <comment id="20018" author="mlohr" created="Mon, 15 Apr 2013 16:04:29 +0000"  >&lt;p&gt;Hey, thank you very much for for your information!&lt;/p&gt;</comment>
                    <comment id="20019" author="mlohr" created="Mon, 15 Apr 2013 16:25:50 +0000"  >&lt;p&gt;Ok, it&apos;s not the problem with the position of your schema, but the default schema is &quot;$user&quot; and that seems not to be parsed/replaced with the username! &apos;ALTER USER youruser SET search_path TO yoursearchpath, public;&apos; works for me.&lt;/p&gt;</comment>
                    <comment id="20020" author="mlohr" created="Mon, 15 Apr 2013 16:40:58 +0000"  >&lt;p&gt;Fixed it (&lt;a href=&quot;https://github.com/doctrine/dbal/pull/305&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/305&lt;/a&gt;).&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11340" name="phpunit_with_tap.txt" size="68817" author="mlohr" created="Wed, 31 Oct 2012 16:43:18 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-508] MySqlSchemaManager accessing undefined index tableColumn[comment]</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-508</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;in the method Doctrine\DBAL\Schema\MySqlSchemaManager::_getPortableTableColumnDefinition the index &quot;comment&quot; in the array $tableColumn is accessed without ensuring that this index is set. This leads to an Undefined index: comment warning in E_ALL-environments.&lt;/p&gt;

&lt;p&gt;This method is triggered e.g. by the Doctrine\ORM\Tools\SchemaTool getUpdateSchemaSql method.&lt;/p&gt;</description>
                <environment>Linux 3.2.0-24-generic-pae #39-Ubuntu,&lt;br/&gt;
mysql Ver 14.14 Distrib 5.5.31, for debian-linux-gnu (i686) using readline 6.2</environment>
            <key id="14820">DBAL-508</key>
            <summary>MySqlSchemaManager accessing undefined index tableColumn[comment]</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mkuckert">Martin Kuckert</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Apr 2013 15:27:06 +0000</created>
                <updated>Thu, 9 May 2013 16:08:45 +0000</updated>
                    <resolved>Thu, 9 May 2013 16:08:33 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20188" author="beberlei" created="Wed, 1 May 2013 21:33:10 +0000"  >&lt;p&gt;Can&apos;t really explain this, the key has to be existant. This is only called with information from MysqlPlatform#getListTableColumnsSQL().&lt;/p&gt;</comment>
                    <comment id="20189" author="mkuckert" created="Thu, 2 May 2013 07:13:35 +0000"  >&lt;p&gt;I&apos;ve just found the issue. The main problem is the usage of &apos;DESCRIBE &apos; . $table; in the getListTableColumnsSQL, if there&apos;s no $database set. describe does not return the comment column, but &apos;show full columns from &apos; . $table; does.&lt;br/&gt;
At the basis of the missing $database value was my own DBAL\Driver implementation not properly returning the currently connected database. So $database was NULL and the alternate code path was executed, so resulting in no comment-property.&lt;/p&gt;

&lt;p&gt;Seems like an uncovered code path instead of a bug in a real environment.&lt;/p&gt;</comment>
                    <comment id="20251" author="beberlei" created="Thu, 9 May 2013 16:08:45 +0000"  >&lt;p&gt;Special case fixed for 2.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-507] [GH-313] Enhanced Master-Slave Connection</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-507</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of andrejhudec:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/313&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/313&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Q             &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; A&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; ------------- &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; &amp;#8212;&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Bug fix?      &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; New feature?  &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; BC breaks?    &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; no?&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Deprecations? &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; no&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Tests pass?   &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; yes&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Fixed tickets &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; -&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; License       &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; MIT&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;


&lt;p&gt;Current implementation of MasterSlaveConnection is very restrictive. The slave is picked up only when `executeQuery` is used. If appliacation uses `prepare` method in queries, every `SELECT` is done on master and this is bad for performance of master.&lt;/p&gt;

&lt;p&gt;This PR changes how and when it picks the slave or master:&lt;/p&gt;

&lt;p&gt;1. Slave if master was never picked before and ONLY if `getWrappedConnection`, `query`, `prepare`, or `executeQuery` is used and the query begins with `SELECT` (case insensitive) string.&lt;/p&gt;

&lt;p&gt;2. Master picked when `exec`, `executeUpdate`, `insert`, `delete`, `update`, `createSavepoint`, `releaseSavepoint`, `beginTransaction`, `rollback`, `commit` is called.&lt;/p&gt;

&lt;p&gt;3. Master picked when `query`, `prepare` or `executeQuery` is called and the query doesn&apos;t begin with `SELECT` (case insensitive) string.&lt;/p&gt;

&lt;p&gt;4. If master was picked once during the lifetime of the connection it will always get picked afterwards.&lt;/p&gt;

&lt;p&gt;5. One slave connection is randomly picked ONCE during a request.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14812">DBAL-507</key>
            <summary>[GH-313] Enhanced Master-Slave Connection</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Apr 2013 08:34:35 +0000</created>
                <updated>Sat, 27 Apr 2013 08:12:43 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 08:12:43 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20115" author="doctrinebot" created="Sat, 27 Apr 2013 07:52:45 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-313&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/313&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/313&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-506] [GH-312] [DBAL-264] Support for UIDs in PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-506</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mbadolato:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/312&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Add getGuidExpression() to PostgreSqlPlatform so that UUID support&lt;br/&gt;
works properly&lt;/p&gt;</description>
                <environment></environment>
            <key id="14811">DBAL-506</key>
            <summary>[GH-312] [DBAL-264] Support for UIDs in PostgreSQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Apr 2013 18:22:41 +0000</created>
                <updated>Sat, 27 Apr 2013 08:15:41 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 08:15:41 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20116" author="doctrinebot" created="Sat, 27 Apr 2013 08:15:29 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-312&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-505] Issue whenusing serial columns in PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-505</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>

&lt;p&gt;When using Doctrine ORM mapping fields like this:&lt;/p&gt;

&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@var integer&lt;br/&gt;
     *&lt;/li&gt;
	&lt;li&gt;@ORM\Column(name=&quot;id&quot;, type=&quot;integer&quot;, nullable=false)&lt;/li&gt;
	&lt;li&gt;@ORM\Id&lt;/li&gt;
	&lt;li&gt;@ORM\GeneratedValue(strategy=&quot;IDENTITY&quot;)&lt;/li&gt;
	&lt;li&gt;@ORM\SequenceGenerator(sequenceName=&quot;schemaname.tablename_id_seq&quot;, allocationSize=1, initialValue=1)&lt;br/&gt;
     */&lt;br/&gt;
    private $id;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;It first creates the migration perfectly as a serial column with the correct schema.&lt;/p&gt;

&lt;p&gt;However when making a new migration diff it generates DROP statements for every sequence for these id, so we have to remove them manually every time.&lt;/p&gt;</description>
                <environment>PostgreSQL</environment>
            <key id="14807">DBAL-505</key>
            <summary>Issue whenusing serial columns in PostgreSQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Apr 2013 20:02:08 +0000</created>
                <updated>Wed, 24 Apr 2013 20:02:08 +0000</updated>
                                    <version>2.3.3</version>
                                                <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-504] DBAL Enum fields migration issue / PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-504</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using Custom Doctrine DBAL Enums the migration created using diff&lt;/p&gt;

&lt;p&gt;works fine the first time.&lt;/p&gt;

&lt;p&gt;However the next time it generates a SQL statement trying to change to field type to INT from integer;  (Redundant)&lt;br/&gt;
and a truncated statement:&lt;/p&gt;

&lt;p&gt;&quot;ALTER schemaname.fieldname SET&quot; .. And that&apos;s it.&lt;/p&gt;
</description>
                <environment>postgresql</environment>
            <key id="14806">DBAL-504</key>
            <summary>DBAL Enum fields migration issue / PostgreSQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Apr 2013 19:59:54 +0000</created>
                <updated>Mon, 6 May 2013 08:32:44 +0000</updated>
                                    <version>2.3.3</version>
                                                <component>Drivers</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20157" author="tom" created="Wed, 1 May 2013 12:58:59 +0000"  >&lt;p&gt;Doesn&apos;t only happen on Enums. I don&apos;t use any enums and I have this problem. I use a couple of geo (postGIS) fields (point, linestring, polygon) as well as array fields, so either or all of those might be causing it, too.&lt;/p&gt;</comment>
                    <comment id="20204" author="beberlei" created="Sat, 4 May 2013 11:41:33 +0000"  >&lt;p&gt;We did some changes for PostgreSQL column diffs lately, can you verify this bug still exists on the 2.3 Branch of DBAL?&lt;/p&gt;</comment>
                    <comment id="20219" author="tom" created="Mon, 6 May 2013 08:32:44 +0000"  >&lt;p&gt;I&apos;m running this on Symfony2 with this composer.json config:&lt;/p&gt;

&lt;p&gt;        &quot;doctrine/orm&quot;: &quot;2.3.*&quot;,&lt;br/&gt;
        &quot;doctrine/doctrine-bundle&quot;: &quot;&amp;gt;=2.1&quot;,&lt;/p&gt;


&lt;p&gt;and I&apos;m still getting this issue today.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="14378">DDC-2238</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-503] [GH-311] [WIP] Fixed CS</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-503</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/311&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/311&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14803">DBAL-503</key>
            <summary>[GH-311] [WIP] Fixed CS</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Apr 2013 21:24:26 +0000</created>
                <updated>Sat, 27 Apr 2013 08:17:23 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 08:17:23 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20117" author="doctrinebot" created="Sat, 27 Apr 2013 08:17:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-311&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/311&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/311&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-502] [GH-310] fix function name in exception text</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-502</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of pscheit:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/310&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14799">DBAL-502</key>
            <summary>[GH-310] fix function name in exception text</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 23 Apr 2013 08:22:11 +0000</created>
                <updated>Tue, 23 Apr 2013 08:25:05 +0000</updated>
                    <resolved>Tue, 23 Apr 2013 08:25:05 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20091" author="doctrinebot" created="Tue, 23 Apr 2013 08:24:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-310&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/310&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/310&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20092" author="ocramius" created="Tue, 23 Apr 2013 08:25:05 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-501] [GH-309] Parameter parsing fixes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-501</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of lstrojny:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/309&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/309&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fix for #301 has been reverted to address &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-496&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-496&lt;/a&gt;. This fix addresses both issues in a consistent manner and ads a few more tests.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14796">DBAL-501</key>
            <summary>[GH-309] Parameter parsing fixes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Apr 2013 12:29:42 +0000</created>
                <updated>Thu, 9 May 2013 10:49:08 +0000</updated>
                    <resolved>Thu, 9 May 2013 10:49:08 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20236" author="doctrinebot" created="Thu, 9 May 2013 10:47:28 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-309&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/309&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/309&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-500] [GH-308] added index flags to schema table</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-500</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of bamarni:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/308&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/308&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This would allow, for example, to create some fulltext indexes with the MysqlPlatform, by passing the &quot;fulltext&quot; flag.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14794">DBAL-500</key>
            <summary>[GH-308] added index flags to schema table</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sat, 20 Apr 2013 15:19:29 +0000</created>
                <updated>Wed, 1 May 2013 12:33:31 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:33:31 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20149" author="doctrinebot" created="Wed, 1 May 2013 12:33:15 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-308&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/308&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/308&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-499] [GH-307] Postgres fix for a possible unavailable dbname</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-499</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of antonioribeiro:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/307&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/307&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14792">DBAL-499</key>
            <summary>[GH-307] Postgres fix for a possible unavailable dbname</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Apr 2013 20:07:44 +0000</created>
                <updated>Sat, 4 May 2013 11:58:05 +0000</updated>
                    <resolved>Sat, 4 May 2013 11:58:05 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20208" author="doctrinebot" created="Sat, 4 May 2013 11:57:53 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-307&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/307&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/307&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-498] [GH-306] [DBAL-497] Fixed SQL Server platform replacing &apos;FROM&apos; in column names during limit</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-498</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of shaneneuerburg:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/306&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/306&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The regex used to replace the FROM clause was in a &quot;starts with&quot; form, which also matched column names that start with the word &quot;FROM&quot;. This resulted in column names being replaced with the logic used for limiting, breaking the query once pagination is used. I added a whitespace requirement after &quot;FROM&apos; in the regex as well as a trailing whitespace in the replacement.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14786">DBAL-498</key>
            <summary>[GH-306] [DBAL-497] Fixed SQL Server platform replacing &apos;FROM&apos; in column names during limit</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Thu, 18 Apr 2013 15:13:48 +0000</created>
                <updated>Sat, 20 Apr 2013 07:58:03 +0000</updated>
                    <resolved>Thu, 18 Apr 2013 17:15:03 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20052" author="doctrinebot" created="Thu, 18 Apr 2013 15:56:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-306&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/306&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/306&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20053" author="ocramius" created="Thu, 18 Apr 2013 17:15:03 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-497] SQLServerPlatform modifies limit query incorrectly when column names start with &quot;from&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-497</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I am working with a table that has columns that start with the word &quot;from&quot; (fromNumber, fromCity, etc). When SQLServerPlatform-&amp;gt;doModifyLimitQuery is called, &quot;from&quot; in the names are incorrectly replaced. I suggest adding a whitespace requirement after FROM in the preg_replace on this line:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php#L848&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/SQLServerPlatform.php#L848&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So this:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$query = preg_replace(&apos;/\sFROM/i&apos;, &lt;span class=&quot;code-quote&quot;&gt;&quot;, ROW_NUMBER() OVER ($over) AS doctrine_rownum FROM&quot;&lt;/span&gt;, $query);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Becomes this:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$query = preg_replace(&apos;/\sFROM\s/i&apos;, &lt;span class=&quot;code-quote&quot;&gt;&quot;, ROW_NUMBER() OVER ($over) AS doctrine_rownum FROM &quot;&lt;/span&gt;, $query);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>OS X using FreeTDS driver, unixODBC&lt;br/&gt;
SQL Server 2008</environment>
            <key id="14785">DBAL-497</key>
            <summary>SQLServerPlatform modifies limit query incorrectly when column names start with &quot;from&quot;</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="shaneneuerburg">Shane Neuerburg</reporter>
                        <labels>
                        <label>sqlserver</label>
                    </labels>
                <created>Thu, 18 Apr 2013 04:11:42 +0000</created>
                <updated>Sat, 20 Apr 2013 07:57:51 +0000</updated>
                    <resolved>Sat, 20 Apr 2013 07:57:51 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20051" author="shaneneuerburg" created="Thu, 18 Apr 2013 15:14:14 +0000"  >&lt;p&gt;Pull request:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/306&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/306&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-496] &quot;Undefined index&quot; errors when using prepared statements</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-496</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Since a few days we are seeing errors like this in the Jackalope Doctrine DBAL test suite when using prepared statements:&lt;br/&gt;
&lt;a href=&quot;https://travis-ci.org/jackalope/jackalope-doctrine-dbal/jobs/6350278#L117&quot; class=&quot;external-link&quot;&gt;https://travis-ci.org/jackalope/jackalope-doctrine-dbal/jobs/6350278#L117&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14782">DBAL-496</key>
            <summary>&quot;Undefined index&quot; errors when using prepared statements</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Apr 2013 07:07:39 +0000</created>
                <updated>Sun, 21 Apr 2013 12:30:37 +0000</updated>
                    <resolved>Sat, 20 Apr 2013 07:40:27 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>7</watches>
                        <comments>
                    <comment id="20027" author="ocramius" created="Tue, 16 Apr 2013 07:58:01 +0000"  >&lt;p&gt;First failure I can see is at &lt;a href=&quot;https://travis-ci.org/jackalope/jackalope-doctrine-dbal/jobs/6347501&quot; class=&quot;external-link&quot;&gt;https://travis-ci.org/jackalope/jackalope-doctrine-dbal/jobs/6347501&lt;/a&gt; - is there any other relevant failure before that one?&lt;/p&gt;</comment>
                    <comment id="20032" author="ocramius" created="Tue, 16 Apr 2013 11:48:43 +0000"  >&lt;p&gt;The notice is thrown in in &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Doctrine\DBAL\SQLParserUtils::expandListParameters&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Can be reproduced with parameters:&lt;/p&gt;

&lt;p&gt;$query:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;UPDATE phpcr_nodes SET sort_order = CASE CONCAT(
          namespace,
          (CASE namespace WHEN &apos;&apos; THEN &apos;&apos; ELSE &apos;:&apos; END),
          local_name
        ) WHEN :name0 THEN :order0 WHEN :name1 THEN :order1 WHEN :name2 THEN :order2 WHEN :name3 THEN :order3 WHEN :name4 THEN :order4 ELSE sort_order END WHERE parent = :absPath
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;$params:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;array(
    &apos;:absPath&apos; =&amp;gt; &apos;/topic&apos;,
    &apos;:name0&apos; =&amp;gt; &apos;page3&apos;,
    &apos;:order0&apos; =&amp;gt; 0,
    &apos;:name1&apos; =&amp;gt; &apos;page1&apos;,
    &apos;:order1&apos; =&amp;gt; 1,
    &apos;:name2&apos; =&amp;gt; &apos;page2&apos;,
    &apos;:order2&apos; =&amp;gt; 2,
    &apos;:name3&apos; =&amp;gt; &apos;page3&apos;,
    &apos;:order3&apos; =&amp;gt; 3,
    &apos;:name4&apos; =&amp;gt; &apos;page4&apos;,
    &apos;:order4&apos; =&amp;gt; 4,
)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;$types:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;array()
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20038" author="dbu" created="Wed, 17 Apr 2013 11:15:46 +0000"  >&lt;p&gt;are we doing something wrong or is this a regression in dbal?&lt;/p&gt;

&lt;p&gt;should we for now force an older version of doctrine-dbal? (this would be annyoing however, as we would run into version conflicts with doctrine-commons then i think)&lt;/p&gt;</comment>
                    <comment id="20039" author="dantleech" created="Wed, 17 Apr 2013 11:29:23 +0000"  >&lt;p&gt;Seems this is caused by: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/64647f9e55749147b738cdba9378fa0401fadcbf&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/64647f9e55749147b738cdba9378fa0401fadcbf&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20048" author="fabio.bat.silva" created="Thu, 18 Apr 2013 13:49:23 +0000"  >&lt;p&gt;I think the problem here is the &apos;:&apos; on the parameter key, which i&apos;m not sure if are suported for DBAL.&lt;br/&gt;
Before #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-488&quot; title=&quot;[GH-301] Fixing issue when number of positional parameters != number of given types&quot;&gt;&lt;del&gt;DBAL-488&lt;/del&gt;&lt;/a&gt; it does not apply &apos;SQLParserUtils::expandListParameters&apos; for parameters without types.&lt;/p&gt;</comment>
                    <comment id="20069" author="beberlei" created="Sat, 20 Apr 2013 07:40:28 +0000"  >&lt;p&gt;Reverted in master and 2.3&lt;/p&gt;</comment>
                    <comment id="20078" author="fabio.bat.silva" created="Sat, 20 Apr 2013 17:43:16 +0000"  >&lt;p&gt;Benjamin, Not sure if we should consider this one related to #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-488&quot; title=&quot;[GH-301] Fixing issue when number of positional parameters != number of given types&quot;&gt;&lt;del&gt;DBAL-488&lt;/del&gt;&lt;/a&gt;.&lt;br/&gt;
It just show us another unsupported/unexpected behavior.&lt;/p&gt;

&lt;p&gt;Actually, it will keep failing with any parameter key starting with &apos;:&apos; when types are given.&lt;/p&gt;

&lt;p&gt;For instance :&lt;/p&gt;

&lt;p&gt;$query:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT * FROM foo WHERE bar = :bar&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;$params:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;array(&apos;:bar&apos;=&amp;gt;&apos;Some &lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;&apos;)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;$types:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;array(&apos;:bar&apos;=&amp;gt;\PDO::PARAM_STR)&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20081" author="lstrojny" created="Sun, 21 Apr 2013 12:30:37 +0000"  >&lt;p&gt;Here is a successor for the fix from PR 301, @Fabio, could you test that with your code base: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/309&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/309&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-495] [GH-305] [DDC-2110] fixed problem with existing columns (postgresql)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-495</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of MatthiasLohr:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/305&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/305&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fixed &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2110&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2110&lt;/a&gt;. While selecting the configured search_path, ```&quot;$user&quot;``` is not replaced with the name of the current user. This commit will do the replacing.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14781">DBAL-495</key>
            <summary>[GH-305] [DDC-2110] fixed problem with existing columns (postgresql)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Apr 2013 16:40:30 +0000</created>
                <updated>Wed, 1 May 2013 12:22:49 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:22:49 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20021" author="mlohr" created="Mon, 15 Apr 2013 16:42:11 +0000"  >&lt;p&gt;This is a pull request for a fix for DDC-2110.&lt;/p&gt;</comment>
                    <comment id="20145" author="doctrinebot" created="Wed, 1 May 2013 12:19:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-305&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/305&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/305&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-494] [GH-304] Fix for DBAL-442</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-494</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of yethee:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/304&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/304&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14780">DBAL-494</key>
            <summary>[GH-304] Fix for DBAL-442</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Sun, 14 Apr 2013 14:16:51 +0000</created>
                <updated>Sun, 14 Apr 2013 16:30:59 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 16:30:59 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20012" author="doctrinebot" created="Sun, 14 Apr 2013 15:29:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-304&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/304&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/304&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-493] Schema\Comparator incorrect diff with sqlite and unsigned integer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-493</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Using the Schema\Comparator to diff a table in sqlite with a unsigned integer. When creating the table and comparing it with the same definition it gives a diff which is not expected:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt; 
$schema = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Schema\Schema();
$usersTable = $schema-&amp;gt;createTable(&lt;span class=&quot;code-quote&quot;&gt;&quot;test_users&quot;&lt;/span&gt;);
$usersTable-&amp;gt;addColumn(&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, array(&lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, &apos;autoincrement&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;));
$usersTable-&amp;gt;setPrimaryKey(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;));
$usersTable-&amp;gt;addColumn(&lt;span class=&quot;code-quote&quot;&gt;&quot;username&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, array(&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt; =&amp;gt; 32));
$usersTable-&amp;gt;addIndex( array( &apos;username&apos; ) );
$usersTable-&amp;gt;addColumn(&lt;span class=&quot;code-quote&quot;&gt;&quot;password&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, array(&lt;span class=&quot;code-quote&quot;&gt;&quot;length&quot;&lt;/span&gt; =&amp;gt; 64));

$platform = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Platforms\SqlitePlatform();
$queries = $platform-&amp;gt;getCreateTableSQL($usersTable);
foreach($queries as $query) {
    $conn-&amp;gt;query($query);
}

$tableDetail = $sm-&amp;gt;listTableDetails($usersTable-&amp;gt;getName());
$comparator = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Schema\Comparator();
$diff = $comparator-&amp;gt;diffTable($tableDetail, $usersTable);
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($diff) {
    print(implode(&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;,$platform-&amp;gt;getAlterTableSQL($diff)));
} &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
    print(&lt;span class=&quot;code-quote&quot;&gt;&quot;no diff&quot;&lt;/span&gt;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Expect result:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
no diff
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;Actual result:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
DROP INDEX IDX_1F5D03E2F85E0677
CREATE TEMPORARY TABLE __temp__test_users AS SELECT id, username, password FROM test_users
DROP TABLE test_users
CREATE TABLE test_users (id INTEGER NOT NULL, username VARCHAR(32) NOT NULL, password VARCHAR(64) NOT NULL, PRIMARY KEY(id))
INSERT INTO test_users (id, username, password) SELECT id, username, password FROM __temp__test_users
DROP TABLE __temp__test_users
CREATE INDEX IDX_1F5D03E2F85E0677 ON test_users (username)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;When setting unsigned to false everything works. Shouldn&apos;t Doctrine know unsigned is not supported in sqlite?&lt;/p&gt;</description>
                <environment>php 5.3.10-1ubuntu3.6&lt;br/&gt;
SQLite Library =&amp;gt; 3.7.9</environment>
            <key id="14777">DBAL-493</key>
            <summary>Schema\Comparator incorrect diff with sqlite and unsigned integer</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="richardhinkamp">Richard Hinkamp</reporter>
                        <labels>
                    </labels>
                <created>Fri, 12 Apr 2013 14:01:13 +0000</created>
                <updated>Sun, 14 Apr 2013 08:40:08 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 08:40:08 +0000</resolved>
                            <version>2.4</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19991" author="beberlei" created="Sun, 14 Apr 2013 08:40:08 +0000"  >&lt;p&gt;SQLite doesn&apos;t have the notion of unsigned. You have to remote the &quot;unsigned&quot; =&amp;gt; true flag to stop confusing Sqlite and the Comparision and it will work.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-492] Foreign keys always changed with postgres non standard schema.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-492</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Starting with this &lt;a href=&quot;https://github.com/doctrine/dbal/commit/b84cda24335207d4e60afc88fa161317d94b6370#diff-0&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/b84cda24335207d4e60afc88fa161317d94b6370#diff-0&lt;/a&gt; all foreign keys in non standard schema all always different, because table1 doesn&apos;t contain a schema name in it but table2 does.&lt;/p&gt;</description>
                <environment>postgres</environment>
            <key id="14776">DBAL-492</key>
            <summary>Foreign keys always changed with postgres non standard schema.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="fleetfox">M&#257;rti&#326;&#353; &#352;ulcs</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Apr 2013 10:27:07 +0000</created>
                <updated>Sun, 14 Apr 2013 08:26:47 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 08:26:47 +0000</resolved>
                            <version>2.3.2</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="19990" author="beberlei" created="Sun, 14 Apr 2013 08:26:47 +0000"  >&lt;p&gt;Fixed and waiting in 2.3 release branch for next mini&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-491] Oracle platform should not support dropping database</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-491</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It appears that attempting to run the Doctrine ORM test suite against an Oracle database causes the following exception:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;root@raymond-kolbe-1 orm&amp;#93;&lt;/span&gt;# /usr/local/zend/bin/phpunit -c oracle.xml&lt;br/&gt;
PHPUnit 3.7.19 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;Configuration read from /home/rkolbe/sites/trainingv2/vendor/doctrine/orm/oracle.xml&lt;/p&gt;

&lt;p&gt;......................SSSSSS...........................E&lt;/p&gt;

&lt;p&gt;Time: 1 second, Memory: 68.75Mb&lt;/p&gt;

&lt;p&gt;There was 1 error:&lt;/p&gt;

&lt;p&gt;1) Doctrine\Tests\ORM\Functional\AdvancedAssociationTest::testIssue&lt;br/&gt;
Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP USER rkolbe CASCADE&apos;:&lt;/p&gt;

&lt;p&gt;ORA-01940: cannot drop a user that is currently connected&lt;/p&gt;

&lt;p&gt;/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/DBALException.php:47&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:189&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php:112&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:791&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:816&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:306&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/orm/tests/Doctrine/Tests/TestUtil.php:66&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/orm/tests/Doctrine/Tests/OrmFunctionalTestCase.php:315&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Functional/AdvancedAssociationTest.php:17&lt;/p&gt;

&lt;p&gt;Caused by&lt;br/&gt;
Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-01940: cannot drop a user that is currently connected&lt;/p&gt;

&lt;p&gt;/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:28&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php:189&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php:112&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Connection.php:791&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:816&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:306&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/orm/tests/Doctrine/Tests/TestUtil.php:66&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/orm/tests/Doctrine/Tests/OrmFunctionalTestCase.php:315&lt;br/&gt;
/home/rkolbe/sites/trainingv2/vendor/doctrine/orm/tests/Doctrine/Tests/ORM/Functional/AdvancedAssociationTest.php:17&lt;/p&gt;

&lt;p&gt;FAILURES!&lt;br/&gt;
Tests: 56, Assertions: 98, Errors: 1, Skipped: 6.&lt;/p&gt;

&lt;p&gt;After investigating, I asked myself &quot;Should Doctrine support dropping a &quot;database&quot;?&quot; It should not, and here is why.&lt;/p&gt;

&lt;p&gt;1) Oracle does not consider a &quot;database&quot; the same way MySQL and other vendors do. A &quot;schema&quot; &lt;b&gt;is&lt;/b&gt; the database and this &lt;b&gt;is&lt;/b&gt; the &quot;user&quot;. Dropping a &quot;database&quot; drops the user. How would we recreate the database for testing purposes (read: DBAL drops and recreates the database)?&lt;/p&gt;

&lt;p&gt;2) Oracle platform in DBAL does not support creating a database. Is this something we wish to support? I&apos;m not sure how we would recreate a schema, since creating a schema is the same as creating a user. This is something we don&apos;t support on any platform. Also note, the return value of supportsCreateDropDatabase() is misleading as it says Oracle &lt;b&gt;does&lt;/b&gt; support this feature.&lt;/p&gt;

&lt;p&gt;Although this issue originated in Doctrine ORM, the root cause is the Oracle platform implementation in DBAL. I propose we remove support for dropping &quot;databases&quot; in Oracle since there is no way to create them.&lt;/p&gt;</description>
                <environment>RHEL w/Oracle</environment>
            <key id="14774">DBAL-491</key>
            <summary>Oracle platform should not support dropping database</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rkolbe">Raymond Kolbe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Apr 2013 15:07:12 +0000</created>
                <updated>Sun, 14 Apr 2013 09:08:59 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 09:08:59 +0000</resolved>
                            <version>2.3.3</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19992" author="beberlei" created="Sun, 14 Apr 2013 09:08:21 +0000"  >&lt;p&gt;That is why you have to have two users configured in the phpunit.xml, the temporary user deletes the first user and recreates him. This works perfectly fine for us. I am not sure we should remove this.&lt;/p&gt;</comment>
                    <comment id="19993" author="beberlei" created="Sun, 14 Apr 2013 09:08:59 +0000"  >&lt;p&gt;Closing as won&apos;t fix, anything else is an enhancement, depends on the arguments for removing this approach&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-490] [GH-303] Fixed a PHP warning in DBALException::driverExceptionDuringQuery()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-490</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of BenMorel:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/303&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/303&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;When a query parameter contains binary data, `driverExceptionDuringQuery()` generates a PHP warning. This is because it internally uses `json_encode()`, which expects valid UTF-8 strings (at least in PHP 5.4.13).&lt;/p&gt;

&lt;p&gt;This PR removes the warning with the `@` operator. `json_encode()` will still return a string representation, replacing the binary data with `null`.&lt;/p&gt;

&lt;p&gt;I added a test that fails before the fix.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14770">DBAL-490</key>
            <summary>[GH-303] Fixed a PHP warning in DBALException::driverExceptionDuringQuery()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Apr 2013 10:47:35 +0000</created>
                <updated>Wed, 1 May 2013 12:40:11 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:40:11 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20151" author="doctrinebot" created="Wed, 1 May 2013 12:39:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-303&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/303&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/303&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-489] [GH-302] [DBAL-374] Fix asset identfier quotation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-489</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/302&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/302&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR introduces a real solution for the issues discussed in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-374&quot; title=&quot;[GH-222] Escape primary field name in create table sql query&quot;&gt;&lt;del&gt;DBAL-374&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-374&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-374&lt;/a&gt;).&lt;br/&gt;
It adds the possibility to retrieve quoted column names from &amp;lt;code&amp;gt;Index&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ForeignKeyConstraint&amp;lt;/code&amp;gt; assets if it is necessary (e.g. column name is a keyword reserved by the platform).&lt;br/&gt;
In general column names are wrapped into an abstraction class &amp;lt;code&amp;gt;Identifier&amp;lt;/code&amp;gt; which inherits from &amp;lt;code&amp;gt;AbstractAsset&amp;lt;/code&amp;gt; inside &amp;lt;code&amp;gt;Index&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;ForeignKeyConstraint&amp;lt;/code&amp;gt;. This allows to get a quoted representation of each column name via the &amp;lt;code&amp;gt;AbstractAsset::getQuotedName&amp;lt;/code&amp;gt;.&lt;br/&gt;
All platforms are updated to make use of the new functionality.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14769">DBAL-489</key>
            <summary>[GH-302] [DBAL-374] Fix asset identfier quotation</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="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Apr 2013 17:48:08 +0000</created>
                <updated>Wed, 1 May 2013 09:09:18 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-488] [GH-301] Fixing issue when number of positional parameters != number of given types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-488</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of lstrojny:&lt;/p&gt;

&lt;p&gt;Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/301&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/301&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;When passing incomplete type information to `Connection::query()`, `SQLParserUtils` currently behaves the wrong way as it ignores all typing information instead falling back to a default (`PDO::PARAM_STR`). I don&#65533;&#65533;&#65533;t know this place very well, so please review carefully.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14767">DBAL-488</key>
            <summary>[GH-301] Fixing issue when number of positional parameters != number of given types</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="doctrinebot">Doctrine Bot</reporter>
                        <labels>
                    </labels>
                <created>Mon, 8 Apr 2013 15:20:11 +0000</created>
                <updated>Sun, 14 Apr 2013 09:20:06 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 09:20:06 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19957" author="doctrinebot" created="Mon, 8 Apr 2013 17:45:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-301&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/301&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/301&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-487] DBAL&apos;s SqlitePlatform does not allow for fields of type &apos;integer unsigned&apos;. Whether they exist already or not.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-487</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;m getting the following error when I&apos;m merely requesting schemaManager-&amp;gt;listTables() on an SQLite DB with several columns set to &apos;integer unsigned&apos;. &lt;/p&gt;

&lt;p&gt;PHP Fatal error:  Uncaught exception &apos;Doctrine\DBAL\DBALException&apos; with message &apos;Unknown database type integer unsigned requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it.&apos; in /..&lt;del&gt;snip&lt;/del&gt;../vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:321&lt;/p&gt;

&lt;p&gt;$ sqlite3 --version&lt;br/&gt;
3.7.14.1 &lt;/p&gt;</description>
                <environment></environment>
            <key id="14764">DBAL-487</key>
            <summary>DBAL&apos;s SqlitePlatform does not allow for fields of type &apos;integer unsigned&apos;. Whether they exist already or not.</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mkor">Richard</reporter>
                        <labels>
                    </labels>
                <created>Fri, 5 Apr 2013 18:48:49 +0000</created>
                <updated>Sat, 20 Apr 2013 08:34:04 +0000</updated>
                    <resolved>Sat, 20 Apr 2013 08:34:04 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20074" author="beberlei" created="Sat, 20 Apr 2013 08:34:04 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-486] [GH-300] Improve list SQL Server table indexes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-486</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/300&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/300&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR improves listing table indexes in SQL Server. Currently table indexes are retrieved in the platform via a stored procedure &amp;lt;code&amp;gt;sp_helpindex&amp;lt;/code&amp;gt; which causes problems with some SQL Server drivers like ODBC that cannot retrieve information from stored procedure calls. Table indexes are retrieved via native system tables now, which seems cleaner and is more flexible concerning which information to retrieve.&lt;br/&gt;
Additionally code duplication in &amp;lt;code&amp;gt;SQLServerSchemaManager::_getPortableTableIndexesList&amp;lt;/code&amp;gt; is removed and simplified by this PR.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14763">DBAL-486</key>
            <summary>[GH-300] Improve list SQL Server table indexes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 22:29:21 +0000</created>
                <updated>Sat, 6 Apr 2013 13:11:00 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 13:11:00 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19947" author="beberlei" created="Sat, 6 Apr 2013 13:10:52 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-300&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/300&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/300&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-485] [GH-299] Fix list SQL Server composite foreign keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-485</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/299&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/299&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR fixes listing composite foreign keys in &amp;lt;code&amp;gt;SQLServerSchemaManager&amp;lt;/code&amp;gt;. Currently the schema manager creates a foreign key object for each column in a foreign key constraint returned by the platform&apos;s &amp;lt;code&amp;gt;listTableForeignKeysSQL&amp;lt;/code&amp;gt;, This is ok for foreign keys consisting of only one column but fails for composite foreign key constraints. The test &amp;lt;code&amp;gt;testListForeignKeysComposite&amp;lt;/code&amp;gt; in &amp;lt;code&amp;gt;SQLServerSchemaManagerTest&amp;lt;/code&amp;gt; currently fails but is fixed with this PR.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14762">DBAL-485</key>
            <summary>[GH-299] Fix list SQL Server composite foreign keys</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 22:14:01 +0000</created>
                <updated>Sat, 6 Apr 2013 09:16:06 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 09:16:06 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19945" author="beberlei" created="Sat, 6 Apr 2013 09:16:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-299&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/299&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/299&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-484] [GH-298] Fix SQL Server default constraints</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-484</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/298&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/298&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR fixes altering column default values. In SQL Server column default values are stored in constraints. &amp;lt;code&amp;gt;CREATE TABLE&amp;lt;/code&amp;gt; statements with column declarations like &amp;lt;code&amp;gt;some_column NVARCHAR(50) NOT NULL DEFAULT &apos;default value&apos;&amp;lt;/code&amp;gt; internally creates a default constraint with an automatically generated name in the the system table `sys.default_constraints`. &amp;lt;code&amp;gt;ALTER TABLE&amp;lt;/code&amp;gt; statements do not support the &amp;lt;code&amp;gt;DEFAULT&amp;lt;/code&amp;gt; clause in column alteration declarations, leading in SQL syntax errors. Thus changing a column&apos;s default value is currently not possible. &lt;br/&gt;
To alter a column&apos;s default value, the old column&apos;s default constraint hast to be dropped and recreated again. As a default constraint has to be referenced by name to be dropped, we need to create each default constraint with an own unique name. This PR generates separate statements for default constraint declarations. It generates a unique name consisting of the table name and the column name the default constraint is created for.&lt;br/&gt;
&amp;lt;code&amp;gt;DF_TABLE_NAME_HASH%_%COLUMN_NAME_HASH%&amp;lt;/code&amp;gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14761">DBAL-484</key>
            <summary>[GH-298] Fix SQL Server default constraints</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Apr 2013 21:42:02 +0000</created>
                <updated>Sat, 6 Apr 2013 09:20:22 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 09:20:22 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19946" author="beberlei" created="Sat, 6 Apr 2013 09:18:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-298&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/298&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/298&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-483] default values make orm:validate-schema fail</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-483</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&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;% ./bin/doctrine.php --env=development orm:schema-tool:update --dump-sql                                                                                                  
ALTER TABLE groups CHANGE active active TINYINT(1) DEFAULT &apos;1&apos; NOT NULL;
ALTER TABLE module ADD root_order INT DEFAULT 0 NOT NULL
% ./bin/doctrine.php --env=development orm:schema-tool:update --force
Updating database schema...
Database schema updated successfully! &quot;2&quot; queries were executed
% ./bin/doctrine.php --env=development orm:schema-tool:update --dump-sql                                                                                                  ALTER TABLE groups CHANGE active active TINYINT(1) DEFAULT &apos;1&apos; NOT NULL;
ALTER TABLE module CHANGE root_order root_order INT DEFAULT 0 NOT NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;My entities define these columns like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Group&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    /**
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;active&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt;&quot;&lt;/span&gt;, options={&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;:&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $active = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Module&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    /**
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;root_order&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, options={&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt;&quot;&lt;/span&gt;:0})
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $rootOrder = 0;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>MySQL, PHP 5.3, Doctrine 2.3</environment>
            <key id="14757">DBAL-483</key>
            <summary>default values make orm:validate-schema fail</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="till">Till</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Thu, 4 Apr 2013 10:52:22 +0000</created>
                <updated>Wed, 1 May 2013 08:45:46 +0000</updated>
                    <resolved>Wed, 1 May 2013 08:45:46 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20130" author="kaserf" created="Tue, 30 Apr 2013 17:09:39 +0000"  >&lt;p&gt;We are having the same issue. Is there any workaround for this?&lt;/p&gt;</comment>
                    <comment id="20131" author="kaserf" created="Tue, 30 Apr 2013 20:34:16 +0000"  >&lt;p&gt;I&apos;ve investigated a bit and noticed several things:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;looks like doctrine does not (officially?) support setting of default options in the annotation. It is recommended to use the instance default ($rootOrder = 0).&lt;/li&gt;
	&lt;li&gt;in the comparator class the Column-&amp;gt;getDefault() is compared, but I found out that in one table (I guess the one from mysql) the default is set directly, in the other one (I guess the doctrine one generated from the annotations) the default is empty but the customSchemaOptions&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;default&amp;quot;&amp;#93;&lt;/span&gt; is set.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So based on this I would say:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;the $column-&amp;gt;getDefault needs to be checked against the other $column-&amp;gt;getCustomSchemaOption(&quot;default&quot;) and vice versa&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Please correct me if I&apos;m wrong&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<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-481] [GH-297] check for proper type when formatting dates</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-481</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mprzytulski:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/297&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/297&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14752">DBAL-481</key>
            <summary>[GH-297] check for proper type when formatting dates</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Apr 2013 13:32:54 +0000</created>
                <updated>Tue, 2 Apr 2013 14:07:54 +0000</updated>
                    <resolved>Tue, 2 Apr 2013 14:07:54 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19932" author="beberlei" created="Tue, 2 Apr 2013 14:05:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-297&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/297&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/297&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-480] [GH-296] PDO bug workaround</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-480</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dasmfm:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/296&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/296&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;In combination of PHP 5.4 and Doctrine 2 (upto 2.4Beta1) there&apos;s a bug with &quot;boolean&quot; type of field.&lt;br/&gt;
Ref link:&#65533;&#65533;&lt;a href=&quot;http://stackoverflow.com/questions/10242312/pdo-bindvalue-with-pdoparam-bool-causes-statement-execute-to-fail-silently&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/10242312/pdo-bindvalue-with-pdoparam-bool-causes-statement-execute-to-fail-silently&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This patch binds int instead of bool and everything goes working fine.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14751">DBAL-480</key>
            <summary>[GH-296] PDO bug workaround</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Apr 2013 11:52:08 +0000</created>
                <updated>Thu, 9 May 2013 22:02:26 +0000</updated>
                    <resolved>Thu, 9 May 2013 22:02:25 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20258" author="doctrinebot" created="Thu, 9 May 2013 22:01:59 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-296&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/296&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/296&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20259" author="beberlei" created="Thu, 9 May 2013 22:02:26 +0000"  >&lt;p&gt;Not fixing PHP bugs or adding workarounds.&lt;/p&gt;

&lt;p&gt;You need to pass an integer (1 or 0) instead of a boolean to make it working. This is how we do it in the ORM.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-479] Doctrine2 schema-tool:update doesn&apos;t re-create foreign keys on entity change</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-479</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have changed a @ManyToOne relation to another entity. My workflow was this:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Having @ManyToOne(targetEntity=&quot;Entity\EntityA&quot;) in the source&lt;/li&gt;
	&lt;li&gt;Creating the database schema&lt;/li&gt;
	&lt;li&gt;Changing @ManyToOne(targetEntity=&quot;Entity\EntityA&quot;) to @ManyToOne(targetEntity=&quot;Entity\EntityB&quot;)&lt;/li&gt;
	&lt;li&gt;Calling doctrine orm:schema-tool:update&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;orm:schema-tool:update doesn&apos;t notice that and doesn&apos;t re-create the FK on MySQL and PostgreSQL (haven&apos;t tested others).&lt;/p&gt;</description>
                <environment></environment>
            <key id="13340">DBAL-479</key>
            <summary>Doctrine2 schema-tool:update doesn&apos;t re-create foreign keys on entity change</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="felicitus">Timo A. Hummel</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 Jan 2012 17:14:44 +0000</created>
                <updated>Mon, 1 Apr 2013 16:47:29 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 16:47:28 +0000</resolved>
                            <version>2.1.5</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17185" author="beberlei" created="Mon, 9 Jan 2012 08:14:01 +0000"  >&lt;p&gt;Does this use the same variable or does the many to one variable name change?&lt;/p&gt;</comment>
                    <comment id="17196" author="felicitus" created="Mon, 9 Jan 2012 13:07:09 +0000"  >&lt;p&gt;Yes, same variable name. For the real-world change, see:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/partkeepr/PartKeepr/commit/1cf520f6433dd4d14785a7791a6efe6ab67cc47c&quot; class=&quot;external-link&quot;&gt;https://github.com/partkeepr/PartKeepr/commit/1cf520f6433dd4d14785a7791a6efe6ab67cc47c&lt;/a&gt;&lt;/p&gt;
</comment>
                    <comment id="17994" author="felicitus" created="Sun, 27 May 2012 09:44:02 +0000"  >&lt;p&gt;Any news of this issue?&lt;/p&gt;

&lt;p&gt;This is actually &lt;em&gt;not&lt;/em&gt; a duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1585&quot; title=&quot;Doctrine2 doesn&amp;#39;t check for the correct entity type on @ManyToOne relations&quot;&gt;&lt;del&gt;DDC-1585&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    <comment id="18001" author="felicitus" created="Sun, 27 May 2012 11:45:53 +0000"  >&lt;p&gt;13:32:46 &amp;lt;  beberlei&amp;gt; it is a DBAL issue, so you should start replicating it there&lt;br/&gt;
13:33:10 &amp;lt;  beberlei&amp;gt; i mean, have a look at how the DBAL SchemaDiff looks like in that case, and why it creates the sql wrong&lt;br/&gt;
13:33:19 &amp;lt;  beberlei&amp;gt; probably the comperator misses something&lt;/p&gt;</comment>
                    <comment id="18025" author="felicitus" created="Tue, 29 May 2012 03:02:06 +0000"  >&lt;p&gt;I finally found the spot where the check is missing:&lt;/p&gt;

&lt;p&gt;Comparator::diffForeignKey misses to compare the foreign table name, which can be added as this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($key1-&amp;gt;getForeignTableName() != $key2-&amp;gt;getForeignTableName()) {
       &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="18845" author="jsmitty" created="Wed, 17 Oct 2012 18:30:30 +0000"  >&lt;p&gt;I&apos;ve looked through the bugs in the DBAL project that reference the Comparator and I can&apos;t find one for this issue.&lt;/p&gt;

&lt;p&gt;Has one been created for it that I have missed?&lt;/p&gt;


&lt;p&gt;Also, I tried adding the suggested code into my project and schema-tool:update generated SQL to drop and recreate every foreign key relationship. I applied those changes and ran schema-tool:update again, expecting to get the normal &quot;nothing to update&quot; message. What I got was SQL to drop and recreate every foreign key relationship. Again.&lt;/p&gt;

&lt;p&gt;Tracing the code revealed that (in one case) $key1-&amp;gt;getForeignTableName() was returning &apos;user&apos; and $key2-&amp;gt;getForeignTableName() was returning &apos;User&apos;. All of the foreign key comparisons followed the same pattern. I applied strtolower() to each of them before the comparison and now things seem to behave as I expect, but I don&apos;t know how portable my solution is.&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;if (strtolower($key1-&amp;gt;getForeignTableName()) != strtolower($key2-&amp;gt;getForeignTableName())) {
    return true;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think applying strtolower() like this is OK since something similar is done when comparing local columns and foreign columns earlier in  Comparator::diffForeignKey().&lt;/p&gt;</comment>
                    <comment id="19919" author="beberlei" created="Mon, 1 Apr 2013 16:47:29 +0000"  >&lt;p&gt;This was fixed in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/d7908fee&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/d7908fee&lt;/a&gt; and is part of Doctrine 2.3&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="13339">DDC-1585</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-478] [GH-295] Fix ModifyLimitQueryTest</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-478</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/295&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/295&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The functional &amp;lt;code&amp;gt;ModifyLimitQueryTest&amp;lt;/code&amp;gt; makes false expectations about the query results. &amp;lt;code&amp;gt;LIMIT&amp;lt;/code&amp;gt; queries without &amp;lt;code&amp;gt;ORDER BY&amp;lt;/code&amp;gt; clause return non-deterministic results, therefore the test cannot make any expectations about which values are returned and in which order. You can only expect a certain number of results.&lt;br/&gt;
The test might still work on platforms like mysql when you assume results to be in an ascending order, because the database might put the results of a non-deterministic query in an ascending order by default. Still this is not reliable and not all vendors do that.&lt;br/&gt;
This PR changes the tests to have an ordered, deterministic results by default to have more reliable expectations. Also one test about a non-deterministic query was added, which just asserts the number of results returned.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14745">DBAL-478</key>
            <summary>[GH-295] Fix ModifyLimitQueryTest</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Mar 2013 16:36:00 +0000</created>
                <updated>Mon, 1 Apr 2013 21:23:17 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 21:23:17 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19921" author="beberlei" created="Mon, 1 Apr 2013 21:23:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-295&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/295&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/295&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-477] Just doublequote all schema names and field names in PostgreSQL sql command generation, and the same for MySQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-477</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Generation of any SQL command to the database (From entities or migration versions) does not quote all the reserved keywords (For example a fieldname `right`.&lt;/p&gt;

&lt;p&gt;Simple fix that always works: double-quote dbname, schemaname and fieldname&lt;/p&gt;

&lt;p&gt;e.g   &quot;dbsecurity&quot;.&quot;userschema&quot;.&quot;users&quot; or &quot;tblusers&quot;&lt;/p&gt;

&lt;p&gt;MySQL : use the ` sign.&lt;/p&gt;

&lt;p&gt;e.g   `security`.`users` or `tblusers` (No support for schemas since I last checked some time ago)&lt;/p&gt;</description>
                <environment>Any PostgreSQL environment</environment>
            <key id="14740">DBAL-477</key>
            <summary>Just doublequote all schema names and field names in PostgreSQL sql command generation, and the same for MySQL</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>mysql</label>
                        <label>postgresql</label>
                    </labels>
                <created>Thu, 28 Mar 2013 22:11:56 +0000</created>
                <updated>Thu, 28 Mar 2013 22:11:56 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-476] [GH-294] Allow removing column comment on some platforms</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-476</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/294&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/294&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Some platforms currently do not remove a comment on a column on table alteration.&lt;br/&gt;
This PR fixes this. Also updated platform and functional schema tests for this.&lt;br/&gt;
Besides that &amp;lt;code&amp;gt;OraclePlatform&amp;lt;/code&amp;gt; now does not generate a useless &amp;lt;code&amp;gt;ALTER TABLE MODIFY&amp;lt;/code&amp;gt; SQL snippet when only the column comment has changed, as this is handled seperately through &amp;lt;code&amp;gt;COMMENT ON COLUMN&amp;lt;/code&amp;gt; SQL statement.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14739">DBAL-476</key>
            <summary>[GH-294] Allow removing column comment on some platforms</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Mar 2013 20:17:26 +0000</created>
                <updated>Mon, 1 Apr 2013 21:25:50 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 21:25:50 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19922" author="beberlei" created="Mon, 1 Apr 2013 21:25:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-294&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/294&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/294&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-475] [GH-293] Add SAP SQL Anywhere database vendor</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-475</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/293&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/293&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR adds the driver and DBAL for SAP SQL Anywhere databases. It distinguishes between versions 10 and below (base &amp;lt;code&amp;gt;SQLAnywherePlatform&amp;lt;/code&amp;gt;), 11 (&amp;lt;code&amp;gt;SQLAnywhere11Platform&amp;lt;/code&amp;gt;) and 12 (&amp;lt;code&amp;gt;SQLAnywherer12Platform&amp;lt;/code&amp;gt;), similar to Microsoft SQL Server.&lt;br/&gt;
Most of the functional tests pass but there are some exceptions:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&amp;lt;code&amp;gt;DataAccessTest::testFetchAllWithTypes&amp;lt;/code&amp;gt;&lt;br/&gt;
&amp;lt;pre&amp;gt;&lt;br/&gt;
Failed asserting that two strings are equal.
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;
		&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
			&lt;li&gt;Expected&lt;br/&gt;
+++ Actual&lt;br/&gt;
@@ @@&lt;br/&gt;
-&apos;2010-01-01 10:10:10&apos;&lt;br/&gt;
+&apos;2010-01-01 10:10:10.000&apos;&lt;br/&gt;
&amp;lt;/pre&amp;gt;&lt;br/&gt;
The test is not aware of the datetime format string of the platform, which differs in SQL Anywhere. Therefore it fails. In SQL Anywhere a datetime is stored with second fractions by default.&lt;br/&gt;
IMO I have two options here. Changing the default timestamp format for data output in the driver on every connection so that it fits &amp;lt;code&amp;gt;Y-m-d H:i:s&amp;lt;/code&amp;gt; and changing the date format strings in the platforms or modifying the test to be aware of the platform specific datetime format.&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&amp;lt;code&amp;gt;MasterSlaveConnectionTest::testKeepSlaveBeginTransactionStaysOnMaster&amp;lt;/code&amp;gt;&lt;br/&gt;
The test simply hangs up here and I don&apos;t exactly know why. When I change the value for insert in line 95 to some other value than 30 it perfectly works. Any help would be appreciated here.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&amp;lt;code&amp;gt;ModifyLimitQueryTest::testModifyLimitQueryGroupBy&amp;lt;/code&amp;gt;&lt;br/&gt;
&amp;lt;pre&amp;gt;&lt;br/&gt;
Failed asserting that two arrays are equal.
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;
		&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
			&lt;li&gt;Expected&lt;br/&gt;
+++ Actual&lt;br/&gt;
@@ @@&lt;br/&gt;
 Array (&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
		&lt;li&gt;0 =&amp;gt; 1&lt;/li&gt;
		&lt;li&gt;1 =&amp;gt; 2&lt;br/&gt;
++    0 =&amp;gt; 2&lt;br/&gt;
++    1 =&amp;gt; 1&lt;br/&gt;
 )&lt;br/&gt;
&amp;lt;/pre&amp;gt;&lt;br/&gt;
The test does not tell the SELECT statement to order the result, thus the result is not deterministic and returns the results in wrong order.&lt;br/&gt;
IMO the test should be fixed so that the result is ordered correctly. Then the test will pass for SQL Anywhere.&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&amp;lt;code&amp;gt;TemporaryTableTest&amp;lt;/code&amp;gt;&lt;br/&gt;
&amp;lt;pre&amp;gt;Exception: &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt; An exception occurred while executing &apos;CREATE GLOBAL TEMPORARY TABLE temporary (id INT NOT NULL)&apos;:&lt;br/&gt;
SQLSTATE &lt;span class=&quot;error&quot;&gt;&amp;#91;42W04&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-131&amp;#93;&lt;/span&gt; Syntaxfehler bei &apos;temporary&apos; in Zeile 1&lt;br/&gt;
With queries:&lt;br/&gt;
SQL: &apos;DROP TABLE temporary&apos; Params: &lt;br/&gt;
SQL: &apos;CREATE GLOBAL TEMPORARY TABLE temporary (id INT NOT NULL)&apos;     Params: &lt;br/&gt;
SQL: &apos;DROP TABLE nontemporary&apos; Params:&amp;lt;/pre&amp;gt;&lt;br/&gt;
The tests use the unquoted keyword &quot;temporary&quot; reserved by SQL Anywhere for the temporary table name to create.&lt;br/&gt;
I cannot quote the name of the temporary table in the platform as the method &amp;lt;code&amp;gt;getTemporaryTableName&amp;lt;/code&amp;gt; expects a string and not an instance of &amp;lt;code&amp;gt;Doctrine\DBAL\Schema\Table&amp;lt;/code&amp;gt; as parameter.&lt;br/&gt;
Either the tests should use a non reserved keyword as temporary table name or the temporary table name has to be quoted in the platform (but I don&apos;t know exactly how).&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&amp;lt;code&amp;gt;TemporaryTableTest::testDropTemporaryTableNotAutoCommitTransaction&amp;lt;/code&amp;gt;&lt;br/&gt;
&amp;lt;pre&amp;gt;In an event of an error this result has one row, because of an implicit commit.&lt;br/&gt;
Failed asserting that two arrays are equal.
	&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
		&lt;li&gt;
		&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
			&lt;li&gt;Expected&lt;br/&gt;
+++ Actual&lt;br/&gt;
@@ @@&lt;br/&gt;
 Array (&lt;br/&gt;
++    0 =&amp;gt; Array (...)&lt;br/&gt;
 )&lt;br/&gt;
&amp;lt;/pre&amp;gt;&lt;br/&gt;
The test fails because of an implicit commit during the transaction (drop temporary table) which inserts the first value. I couldn&apos;t find a solution for this problem. Seems to be the same problem as reported in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1337&quot; title=&quot;Rollback doesn&amp;#39;t work on transactional multi table update with mysql&quot;&gt;&lt;del&gt;DDC-1337&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1337&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1337&lt;/a&gt;).&lt;/li&gt;
		&lt;/ul&gt;
		&lt;/li&gt;
	&lt;/ul&gt;
	&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;&amp;lt;code&amp;gt;WriteTest::testLastInsertIdNoSequenceGiven&amp;lt;/code&amp;gt;&lt;br/&gt;
&amp;lt;pre&amp;gt;Failed asserting that 14 is false.&amp;lt;/pre&amp;gt;&lt;br/&gt;
I don&apos;t exactly know why the test expects the lastInsertId to be false here. Using the same connection for 14 inserts into a newly created autoincrement table should result in lastInsertId = 14 IMO. Is this a bug in the test? How do other vendors behave here?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I hope this addition is appreciated and any feedback/help on the above issues would be welcomed.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14736">DBAL-475</key>
            <summary>[GH-293] Add SAP SQL Anywhere database vendor</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Mar 2013 13:45:41 +0000</created>
                <updated>Sun, 14 Apr 2013 09:57:46 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-474] SchemaManager / Connection on PostgreSQL platform does not respect filterExpression for sequences</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-474</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Dear Symfony team,&lt;/p&gt;

&lt;p&gt;the filterExpression on AbstractSchemaManager seems not to work for sequences.&lt;/p&gt;

&lt;p&gt;This only happens under postgres. &lt;/p&gt;

&lt;p&gt;It seems the way the sequences are handled are the culprit: It tries to get min_value etc of sequences without matching sequence names to the filter expression in advance. &lt;/p&gt;

&lt;p&gt;If for example access to the sequences is denied, (Different schema without permissions for the current entity manager), any higher-level ORM operations like generating migration versions fail.&lt;/p&gt;

&lt;p&gt;--------------------- UPDATE&lt;/p&gt;

&lt;p&gt;the context is when using migrations. Positive regexp expressions do not limit the migration to a single schema. eg ^schemaname.$&lt;br/&gt;
Instead, all sequences on the current database are returned.&lt;br/&gt;
When trying to limit a migration to a single schema consecutively this doesn&apos;t work.&lt;br/&gt;
We are using a per-schema connection, so this results in a lot of hassle for us.&lt;/p&gt;</description>
                <environment>Windows &amp;amp; Linux</environment>
            <key id="14734">DBAL-474</key>
            <summary>SchemaManager / Connection on PostgreSQL platform does not respect filterExpression for sequences</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 27 Mar 2013 20:39:57 +0000</created>
                <updated>Wed, 24 Apr 2013 20:05:59 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20000" author="beberlei" created="Sun, 14 Apr 2013 10:16:56 +0000"  >&lt;p&gt;Can you paste an exception trace? I see that filtering is applied to sequences, but your description seems to indicate this happens due to an SQL query much earlier?&lt;/p&gt;</comment>
                    <comment id="20097" author="josdewitte" created="Wed, 24 Apr 2013 10:43:00 +0000"  >&lt;p&gt;Dear Benjamin,&lt;/p&gt;

&lt;p&gt;the context is when using migrations. Positive regexp expressions do not limit the migration to a single schema. eg ^schemaname.$&lt;br/&gt;
Instead, all sequences on the current database are returned. &lt;br/&gt;
When trying to limit a migration to a single schema consecutively this doesn&apos;t work.&lt;br/&gt;
We are using a per-schema connection, so this results in a lot of hassle for us.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-473] [GH-292] Add length in the OCI8 bindParam</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-473</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Juliens:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/292&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/292&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14726">DBAL-473</key>
            <summary>[GH-292] Add length in the OCI8 bindParam</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Mar 2013 13:10:25 +0000</created>
                <updated>Tue, 26 Mar 2013 19:49:21 +0000</updated>
                    <resolved>Tue, 26 Mar 2013 19:49:21 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19897" author="beberlei" created="Tue, 26 Mar 2013 19:48:47 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-292&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/292&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/292&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-472] Oracle schema modification - incorrect SQL to change the nullable status of column</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-472</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When updating the nullable status of a column the sql generated is &lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE MET MODIFY (METAR  VARCHAR2(2000) DEFAULT NULL)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This will set the default column value to null but does not modify the nullable status of the column. The correct sql would be &lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE MET MODIFY (METAR  VARCHAR2(2000) NULL)&lt;/tt&gt;&lt;/p&gt;


&lt;p&gt;The field definition changed from &lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;      metar:&lt;br/&gt;
            type: string&lt;br/&gt;
            length: 2000&lt;br/&gt;
            nullable: false&lt;br/&gt;
            column: METAR&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;to&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;      metar:&lt;br/&gt;
            type: string&lt;br/&gt;
            length: 2000&lt;br/&gt;
            nullable: true&lt;br/&gt;
            column: METAR&lt;/p&gt;&lt;/blockquote&gt;</description>
                <environment>Centos 6 PHP 5.3.3 Oracle 11g</environment>
            <key id="14724">DBAL-472</key>
            <summary>Oracle schema modification - incorrect SQL to change the nullable status of column</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="acp">Andy Park</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Mar 2013 12:26:23 +0000</created>
                <updated>Thu, 4 Apr 2013 21:36:22 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19942" author="beberlei" created="Thu, 4 Apr 2013 21:36:22 +0000"  >&lt;p&gt;Works for me strangely.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-471] when persisting objects to Doctrine2 and one of the tables are named the same as a MySQL reserved word</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-471</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I am not sure this is a correct posting to your issue tracker, as I am a beginner at development, at least in the sense of doctrine.&lt;/p&gt;

&lt;p&gt;I have an entity named Trigger in my Symfony2 project. I had set the table name to be &quot;trigger&quot;, and this did not work. However, the entities were created without any problems, I first discovered the problem when attempting to persist a Trigger entity. The solution was to rename the table to &quot;mtrigger&quot; or something else, but I think the error message could be better somehow. Now it throws an exception with the MySQL error, which only says there&apos;s an error in the syntax, and to check the manual. The manual is quite huge and it was a horror for me before I started thinking in the field of reserved words.&lt;/p&gt;

&lt;p&gt;Note that this is just a proposal to an improvement. It might be that it is hard to implement it for you. In that case, please just close the issue.&lt;/p&gt;</description>
                <environment>MySQL on Ubuntu</environment>
            <key id="14722">DBAL-471</key>
            <summary>when persisting objects to Doctrine2 and one of the tables are named the same as a MySQL reserved word</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="pan100">Per-&#216;ivin Berg Andersen</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Mar 2013 15:53:29 +0000</created>
                <updated>Sun, 24 Mar 2013 16:05:48 +0000</updated>
                    <resolved>Sun, 24 Mar 2013 16:05:44 +0000</resolved>
                            <version>2.3.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19887" author="ocramius" created="Sun, 24 Mar 2013 16:05:48 +0000"  >&lt;p&gt;Doctrine 2 ORM allows you to define &quot;naming strategies&quot; and/or to quote the table names with mysql-style ticks that get automatically quoted, like:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
/** @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`foo`&quot;&lt;/span&gt;) */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-470] [GH-291] Optimize abstract platform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-470</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/291&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/291&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR optimizes the &amp;lt;code&amp;gt;AbstractPlatform&amp;lt;/code&amp;gt; class in the following ways:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Add dedicated use statemtent for each class import&lt;/li&gt;
	&lt;li&gt;Add missing class imports&lt;/li&gt;
	&lt;li&gt;Add missing phpDoc blocks for methods&lt;/li&gt;
	&lt;li&gt;Fix existing phpDocs (parameters, return types, @throws tags, FQDN types, indentation etc.)&lt;/li&gt;
	&lt;li&gt;&quot;Normalize&quot; phpDocs (consistent verbs for what a method does, reuse of certain phrases for similar method types etc.)&lt;/li&gt;
	&lt;li&gt;Fix CS&lt;/li&gt;
	&lt;li&gt;Improve certain code portions&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I hope this is a welcomed improvement. It reads much better now and feels somewhat cleaner to me.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14721">DBAL-470</key>
            <summary>[GH-291] Optimize abstract platform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Mar 2013 13:54:44 +0000</created>
                <updated>Sun, 24 Mar 2013 13:54:44 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-469] [GH-290] Quote sequence name in PostgreSQL before grabbing information about it</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-469</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mrkrstphr:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/290&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/290&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14715">DBAL-469</key>
            <summary>[GH-290] Quote sequence name in PostgreSQL before grabbing information about it</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 22 Mar 2013 17:56:10 +0000</created>
                <updated>Sat, 4 May 2013 11:55:55 +0000</updated>
                    <resolved>Sat, 4 May 2013 11:55:55 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19885" author="beberlei" created="Fri, 22 Mar 2013 17:56:59 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-290&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/290&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/290&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20207" author="beberlei" created="Sat, 4 May 2013 11:55:55 +0000"  >&lt;p&gt;Closed by author&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-468] [GH-288] Fix fetchColumn not caching</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-468</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Alan01252:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/288&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/288&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Column cache wasn&apos;t working because the emptied flag is only set&lt;br/&gt;
when fetch no longer returns a row. With fetch column the code&lt;br/&gt;
only calls fetch once and so emptied flag never got set.&lt;/p&gt;

&lt;p&gt;Created two test cases, one to test fetchColumn, and one to test &lt;br/&gt;
that the return value is false if the data doesn&apos;t get saved in the cache.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14708">DBAL-468</key>
            <summary>[GH-288] Fix fetchColumn not caching</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Mar 2013 20:40:20 +0000</created>
                <updated>Wed, 20 Mar 2013 20:40:20 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-467] DateTime handling in sqlsrv 2005 not quite right</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-467</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The problem I am having is with how the DateTimeType converts the DateTime field from sql svr. It seems to need different formats in the ::getDateTimeFormatString() depending in if you are converting from the database to PHP or the other way.&lt;/p&gt;

&lt;p&gt;The method format &apos;Y-m-d H:i:s.000&apos; that is there now works if the database is only written to with PHP, and not anything else.&lt;/p&gt;

&lt;p&gt;In my case I am sharing access with other technologies. So basically when converting from the Database to PHP the format needs to be &apos;Y-m-d H:i:s.u&apos; and &apos;Y-m-d H:i:s.000&apos; when converting the other way.&lt;/p&gt;

&lt;p&gt;If there functions convertToDatabaseValue() and convertToPHPValue() where in the Platform, then I could override these with my own custom platform and I would be right.&lt;/p&gt;

&lt;p&gt;Otherwise to do this right we need to split this up getDateTimeFormatString() into 2 different methods, 1 for the database, and 1 for php.&lt;/p&gt;</description>
                <environment>window, sql svr 2005</environment>
            <key id="14706">DBAL-467</key>
            <summary>DateTime handling in sqlsrv 2005 not quite right</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gordonh">Gordon Heydon</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Mar 2013 05:36:42 +0000</created>
                <updated>Mon, 1 Apr 2013 13:24:57 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 13:20:23 +0000</resolved>
                                                            <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19916" author="beberlei" created="Mon, 1 Apr 2013 13:20:23 +0000"  >&lt;p&gt;You can register your own type to handle this, or use the &quot;VarDateTime&quot; that is more flexible with this kind of date format.&lt;/p&gt;</comment>
                    <comment id="19917" author="beberlei" created="Mon, 1 Apr 2013 13:24:57 +0000"  >&lt;p&gt;I have clarified the VarDateTime approach in the SQL Server Platform Known Issues and Limitations documentation.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-466] [GH-287] Fix platform create constraint foreign table name quotation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-466</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/287&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/287&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Creating foreign key constraints via &amp;lt;code&amp;gt;getCreateConstraintSQL&amp;lt;/code&amp;gt; in the platform doesn&apos;t quote the foreign table name leading to invalid SQL when the foreign table name is a reserved keyword. This PR fixes this issue.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14704">DBAL-466</key>
            <summary>[GH-287] Fix platform create constraint foreign table name quotation</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Mar 2013 18:21:30 +0000</created>
                <updated>Tue, 19 Mar 2013 23:46:17 +0000</updated>
                    <resolved>Tue, 19 Mar 2013 23:46:17 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19875" author="beberlei" created="Tue, 19 Mar 2013 23:23:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-287&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/287&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/287&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-465] [GH-286] Fix data not being cached in ResultCache</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-465</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Alan01252:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/286&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/286&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The ResultCacheStatement has a small logic error, it tested for emptied&lt;br/&gt;
being true when it should have tested for emptied being false. The&lt;br/&gt;
comments also statement that the function returns a boolean, however the&lt;br/&gt;
function didn&apos;t return a boolean.&lt;/p&gt;

&lt;p&gt;This is my first time committing to a larger open source project like dbal. Very worried I&apos;ll of done something wrong, please go easy / teach me.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14703">DBAL-465</key>
            <summary>[GH-286] Fix data not being cached in ResultCache</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Mar 2013 13:25:22 +0000</created>
                <updated>Wed, 20 Mar 2013 22:27:56 +0000</updated>
                    <resolved>Wed, 20 Mar 2013 22:27:56 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19876" author="beberlei" created="Wed, 20 Mar 2013 07:10:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-286&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/286&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/286&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19877" author="beberlei" created="Wed, 20 Mar 2013 07:10:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-286&amp;#93;&lt;/span&gt; was reopened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/286&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/286&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19878" author="beberlei" created="Wed, 20 Mar 2013 19:46:06 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-286&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/286&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/286&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-464] MySQL fails when try to drop a primary index with Auto Increment</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-464</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When an update of schema tries to drop a primary key with &quot;auto increment&quot; property (example : @ORM\GeneratedValue(strategy=&quot;AUTO&quot;)), the execution will fail : it say : &lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;                                                                                                                          &lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE odesadicola DROP PRIMARY KEY&apos;:                                                                      &lt;/p&gt;

&lt;p&gt;  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1075 Incorrect table definition; there can be only one auto column and it must be defined as a key&lt;/p&gt;


&lt;p&gt;Apparently, this error occurs because Doctrine try to execute a &quot;drop primary key&quot; on a table and the resulting column of old primary key will be &quot;auto increment&quot;.&lt;/p&gt;

&lt;p&gt;The answer is to remove &quot;auto increment&quot; attribut of primary key column juste before try to drop the primary key itself.&lt;/p&gt;</description>
                <environment>Linux (ubuntu), PHP 5.3.10, MySQL 5.5.29, Symfony2 </environment>
            <key id="14693">DBAL-464</key>
            <summary>MySQL fails when try to drop a primary index with Auto Increment</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="darkelfe">Julien Rosset</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Mar 2013 14:52:14 +0000</created>
                <updated>Thu, 14 Mar 2013 14:52:14 +0000</updated>
                                    <version>2.3.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-463] [GH-285] Add IBM iSeries Driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-463</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of spicajames:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/285&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/285&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Added driver pdo_ibmi to support to db2 iSeries using pdo_odbc&lt;/p&gt;</description>
                <environment></environment>
            <key id="14688">DBAL-463</key>
            <summary>[GH-285] Add IBM iSeries Driver</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Mar 2013 22:18:00 +0000</created>
                <updated>Thu, 14 Mar 2013 21:49:22 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-462] [GH-284] Correcting code example</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-462</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of intel352:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/284&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/284&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Doc incorrectly makes a call to close(), when it should be calling closeCursor()&lt;/p&gt;</description>
                <environment></environment>
            <key id="14679">DBAL-462</key>
            <summary>[GH-284] Correcting code example</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Mar 2013 06:02:50 +0000</created>
                <updated>Sun, 10 Mar 2013 08:01:44 +0000</updated>
                    <resolved>Sun, 10 Mar 2013 08:01:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19820" author="beberlei" created="Sun, 10 Mar 2013 08:01:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-284&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/284&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/284&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-461] Numeric() syntax in columns fails on SQL Server</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-461</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue occurred when I tried to create entities from existing MSSQL Database. My database have several fields that are defined as &quot;numeric&quot; data types. When I tried to reverse engineer this data base, doctrine threw an error mentioning that doctrine numeric data types are not supported. I have attached code that I used to create entities. And error that was generated. Hope this Helps narrow down the process. One thing that ca in to notice was that the &quot;SQLServerSchemaManager&quot; class does not have any specific mechanism to handle &quot;numeric&quot; as compared to &quot;MySqlSchemaManager&quot;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14673">DBAL-461</key>
            <summary>Numeric() syntax in columns fails on SQL Server</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Mar 2013 06:59:15 +0000</created>
                <updated>Thu, 14 Mar 2013 21:30:44 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 21:30:44 +0000</resolved>
                            <version>2.2.2</version>
                <version>2.3.2</version>
                                <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19855" author="beberlei" created="Thu, 14 Mar 2013 21:30:44 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-460] [GH-283] Fix SchemaManagerFunctionalTestCase composite foreign keys test</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-460</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/283&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/283&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR fixes a bug in the &amp;lt;code&amp;gt;SchemaManagerFunctionalTestCase&amp;lt;/code&amp;gt; composite foreign keys test I encountered today. In SQL Server the test case fails because both &amp;lt;code&amp;gt;testListForeignKeys&amp;lt;/code&amp;gt; and &amp;lt;code&amp;gt;testListForeignKeysComposite&amp;lt;/code&amp;gt; tests create a foreign key with the same name which is not possible for one single DB in SQL Server.&lt;br/&gt;
I don&apos;t know if this applies to other RDBMS also but this should also fix the others.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14664">DBAL-460</key>
            <summary>[GH-283] Fix SchemaManagerFunctionalTestCase composite foreign keys test</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Mar 2013 01:08:47 +0000</created>
                <updated>Tue, 12 Mar 2013 20:00:29 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 20:00:28 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19845" author="beberlei" created="Tue, 12 Mar 2013 20:00:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-283&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/283&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/283&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-459] [GH-282] Add column collation support for SQL Server</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-459</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/282&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/282&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR contributes to PR #274 and adds the missing SQL Server driver support for column collations. It&apos;s fully functional tested on my own SQL Server database.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14663">DBAL-459</key>
            <summary>[GH-282] Add column collation support for SQL Server</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Mar 2013 00:54:32 +0000</created>
                <updated>Tue, 12 Mar 2013 20:01:44 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 20:01:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19846" author="beberlei" created="Tue, 12 Mar 2013 20:01:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-282&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/282&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/282&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-458] [GH-281] Upgrading doctrine/common 2.4 (via composer)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-458</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Ocramius:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/281&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/281&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR introduces changes necessary to make the DBAL recognize `&quot;doctrine/common&quot;: &quot;2.4&quot;` as compatible as discussed in &lt;a href=&quot;https://groups.google.com/d/topic/doctrine-dev/8WjzboENQgg/discussion&quot; class=&quot;external-link&quot;&gt;https://groups.google.com/d/topic/doctrine-dev/8WjzboENQgg/discussion&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Ping @dbu&lt;/p&gt;</description>
                <environment></environment>
            <key id="14662">DBAL-458</key>
            <summary>[GH-281] Upgrading doctrine/common 2.4 (via composer)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Mar 2013 22:01:47 +0000</created>
                <updated>Mon, 4 Mar 2013 22:38:23 +0000</updated>
                    <resolved>Mon, 4 Mar 2013 22:38:23 +0000</resolved>
                                            <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19802" author="beberlei" created="Mon, 4 Mar 2013 22:38:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-281&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/281&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/281&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-457] [GH-280] Use int values instead of strings for PostgreSQL booleans</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-457</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of chEbba:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/280&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/280&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;The Problem:&lt;br/&gt;
The current implementation for PostgreSQL uses strings &apos;true&apos; and &apos;false&apos; which are not working with PDO::ATTR_EMULATE_PREPARES.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Solution:&lt;br/&gt;
Use ints like in the default platform implementation.&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;Comments&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;
&lt;ul&gt;
	&lt;li&gt;Tested only on my local php 5.4.9&lt;/li&gt;
	&lt;li&gt;Fixed NamedParametersTest to use int columns instead of strings (does not work with PDO::ATTR_EMULATE_PREPARES when compare string column IN array of ints)&lt;/li&gt;
	&lt;li&gt;Fixed DbalFunctionalTestCase sql parameters dumping (found while fixing NamedParametersTest)&lt;/li&gt;
	&lt;li&gt;Added support for driver options configuration via phpunit config globals&lt;/li&gt;
&lt;/ul&gt;

</description>
                <environment></environment>
            <key id="14661">DBAL-457</key>
            <summary>[GH-280] Use int values instead of strings for PostgreSQL booleans</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 4 Mar 2013 10:42:57 +0000</created>
                <updated>Mon, 4 Mar 2013 22:48:40 +0000</updated>
                    <resolved>Mon, 4 Mar 2013 22:48:40 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19801" author="beberlei" created="Mon, 4 Mar 2013 22:34:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-280&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/280&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/280&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19804" author="ocramius" created="Mon, 4 Mar 2013 22:48:40 +0000"  >&lt;p&gt;Solved at &lt;a href=&quot;https://github.com/doctrine/dbal/commit/55128a6549b777ec91d7808989df236dbd508111&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/55128a6549b777ec91d7808989df236dbd508111&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-456] [GH-279] adds new output format</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-456</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of schmittjoh:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/279&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/279&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The output of the ::dump command is very unstable (depends on platform/PHP version/installed extensions).&lt;/p&gt;

&lt;p&gt;This pull request adds a new format which is more suitable for machine consumption.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14656">DBAL-456</key>
            <summary>[GH-279] adds new output format</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Mar 2013 09:59:03 +0000</created>
                <updated>Tue, 5 Mar 2013 00:47:09 +0000</updated>
                    <resolved>Tue, 5 Mar 2013 00:47:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19806" author="beberlei" created="Mon, 4 Mar 2013 23:12:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-279&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/279&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/279&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-455] [GH-278] OraclePlatform sequence naming for primary keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-455</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jrjohnson:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/278&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/278&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Change Oracle sequence generation to match what is being created by ORM and other platforms in the form of $table_$column_SQL instead of $table_SEQ&lt;/p&gt;

&lt;p&gt;This is a solution for &lt;a href=&quot;https://github.com/doctrine/migrations/issues/112&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/112&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14653">DBAL-455</key>
            <summary>[GH-278] OraclePlatform sequence naming for primary keys</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 2 Mar 2013 22:32:57 +0000</created>
                <updated>Tue, 12 Mar 2013 20:03:23 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 20:03:23 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19847" author="beberlei" created="Tue, 12 Mar 2013 20:03:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-278&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/278&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/278&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-454] [GH-277] Remove duplicate SQL parts in query generation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-454</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of gigablah:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/277&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/277&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Presently, it&apos;s possible to do this using QueryBuilder:&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
$qb-&amp;gt;select(&apos;u.*&apos;)&lt;br/&gt;
   -&amp;gt;from(&apos;users&apos;, &apos;u&apos;)&lt;br/&gt;
   -&amp;gt;addOrderBy(&apos;u.name&apos;, &apos;ASC&apos;)&lt;br/&gt;
   -&amp;gt;addOrderBy(&apos;u.name&apos;, &apos;ASC&apos;); // duplicate&lt;br/&gt;
```&lt;br/&gt;
Which produces:&lt;br/&gt;
```sql&lt;br/&gt;
SELECT u.* FROM users u ORDER BY u.name ASC, u.name ASC&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;This patch removes duplicates from the `SELECT`, `SET`, `ORDER BY` and `GROUP BY` parts during SQL generation (there&apos;s already logic that removes duplicate `FROM` parts).&lt;/p&gt;

&lt;p&gt;I&apos;ve added test cases for each affected keyword as well.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14652">DBAL-454</key>
            <summary>[GH-277] Remove duplicate SQL parts in query generation</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 2 Mar 2013 04:04:20 +0000</created>
                <updated>Sun, 3 Mar 2013 01:53:39 +0000</updated>
                    <resolved>Sun, 3 Mar 2013 01:53:39 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19795" author="beberlei" created="Sun, 3 Mar 2013 01:23:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-277&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/277&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/277&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-453] PostgreSqlSchemaManager::getSchemaSearchPaths does not work for secondary schemas</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-453</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;PostgreSqlSchemaManager::getSchemaSearchPaths() uses &quot;SHOW search_path&quot; to get the current search path for the connection and explodes it using a comma delimiter. On my installation Postgresql 9.1 on Ubuntu 12.04 &quot;SHOW search__path&quot; returns the schemas in the search path separated by &quot;, &quot; (i.e. a comma followed by a space). This means that the array of schemas returned by getSchemaSearchPaths() will including a leading space on the schema names for the second and subsequent schemas in the search list.&lt;/p&gt;

&lt;p&gt;This is a particular problem if you call PostgreSqlSchemaManager::getExistingSchemaSearchPaths() because that calls determineExistingSchemaSearchPaths() which filters the list from getSchemaSearchPaths() to make sure they are in the list of schemas in the database (as returned from getSchemaNames(). The second and subsequent schemas in the search path still have a leading space when they are compared to the array of schema names, and consequently they do not match and are not included in the array returned by getExistingSchemaSearchPaths().&lt;/p&gt;

&lt;p&gt;I think that getSchemaSearchPaths should trim the leading space from the schemas.&lt;/p&gt;</description>
                <environment>Postgresql 9.1 on Ubuntu 12.04</environment>
            <key id="14547">DBAL-453</key>
            <summary>PostgreSqlSchemaManager::getSchemaSearchPaths does not work for secondary schemas</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="rhunwicks">Roger Hunwicks</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Feb 2013 14:42:17 +0000</created>
                <updated>Wed, 1 May 2013 17:16:44 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:16:44 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20162" author="beberlei" created="Wed, 1 May 2013 17:16:44 +0000"  >&lt;p&gt;Fixed in 2.3.4&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-452] range is a reserved word in several platforms</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-452</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&apos;range&apos; is a reserved word for MySQL, Oracle, and on future reserved list for SQL Server as well so should really be added for escaping. Working on a new project using Doctrine accessing an external API which used it as a field and got an error when running orm:schema-tool:create on my entity with MySQL.&lt;/p&gt;</description>
                <environment>Linux 64bit</environment>
            <key id="14510">DBAL-452</key>
            <summary>range is a reserved word in several platforms</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="dragonaire">Michael Cummings</reporter>
                        <labels>
                    </labels>
                <created>Thu, 21 Feb 2013 07:49:49 +0000</created>
                <updated>Fri, 15 Mar 2013 03:02:01 +0000</updated>
                    <resolved>Thu, 14 Mar 2013 21:55:32 +0000</resolved>
                            <version>2.3.3</version>
                                <fixVersion>2.3.3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19856" author="beberlei" created="Thu, 14 Mar 2013 21:55:32 +0000"  >&lt;p&gt;Added for MySQL and Oracle. Didn&apos;t find data on when its added to SQL Server.&lt;/p&gt;</comment>
                    <comment id="19862" author="dragonaire" created="Fri, 15 Mar 2013 03:02:01 +0000"  >&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms189822.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ms189822.aspx&lt;/a&gt; under Future Keywords&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-451] [GH-276] DBAL-446</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-451</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of nemekzg:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/276&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/276&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fix for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-446&quot; title=&quot;Type json_array can&amp;#39;t be null&quot;&gt;&lt;del&gt;DBAL-446&lt;/del&gt;&lt;/a&gt; with a proper test case and two general test cases.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14500">DBAL-451</key>
            <summary>[GH-276] DBAL-446</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Feb 2013 19:18:21 +0000</created>
                <updated>Sat, 6 Apr 2013 14:41:18 +0000</updated>
                    <resolved>Sat, 6 Apr 2013 14:41:18 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-450] [GH-275] accept array as parameter in getConcatExpression</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-450</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of broncha:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/275&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/275&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The function `getConcatExpression` accepts strings, but as there can be any number of parameters passed to this and while calling from `ConcatFunction` sqlwalker has to walk all the parameters. So it would be better if `getConcatExpression` accepts array. Infact even better if it only accepts array. It would be much cleaner. Also I am opening a pull request in ORM for `ConcatFunction` as it only validates 2 primaryStrings. It should support more than two. SO for that to happen, `getConcatExpression` should accept array as parameter.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14497">DBAL-450</key>
            <summary>[GH-275] accept array as parameter in getConcatExpression</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Feb 2013 15:44:04 +0000</created>
                <updated>Tue, 12 Mar 2013 20:04:12 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 20:04:12 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-449] [GH-274] Support column charset/collation on capable platforms</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-449</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of adrienbrault:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/274&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/274&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Basically the same feature wanted as in #245&lt;/p&gt;</description>
                <environment></environment>
            <key id="14495">DBAL-449</key>
            <summary>[GH-274] Support column charset/collation on capable platforms</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Feb 2013 00:28:10 +0000</created>
                <updated>Tue, 19 Feb 2013 00:28:10 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-448] [GH-273] Use BLOB for Object mapping type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-448</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of ludekstepan:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/273&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/273&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://php.net/manual/en/function.serialize.php&quot; class=&quot;external-link&quot;&gt;http://php.net/manual/en/function.serialize.php&lt;/a&gt;&lt;br/&gt;
&amp;gt; Note that this is a binary string which may include null bytes, and needs to be stored and handled as such. For example, serialize() output should generally be stored in a BLOB field in a database, rather than a CHAR or TEXT field.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14490">DBAL-448</key>
            <summary>[GH-273] Use BLOB for Object mapping type</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 17 Feb 2013 18:24:44 +0000</created>
                <updated>Tue, 12 Mar 2013 20:13:06 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 20:13:06 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-447] [GH-272] Refactor SQL Server keyword dictionaries and MsSQL leftovers</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-447</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/272&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/272&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Each Microsoft SQL Server version has its own specific reserved keyword dictionary. Therefore each platform version should implement the correct dictionary. This PR adds dedicated dictionaries for Microsoft SQL Server 2000 (base), 2005, 2008 and 2012. Moreover all the &quot;mssql&quot; leftovers are refactored to fit the &quot;sqlserver&quot; term.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14480">DBAL-447</key>
            <summary>[GH-272] Refactor SQL Server keyword dictionaries and MsSQL leftovers</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Feb 2013 18:08:23 +0000</created>
                <updated>Tue, 12 Mar 2013 20:12:35 +0000</updated>
                    <resolved>Tue, 12 Mar 2013 20:12:35 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-446] Type json_array can&apos;t be null</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-446</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Column type json_array can be set to nullable, but if there&apos;s null in the database, it is returned as an empty array to PHP.&lt;/p&gt;

&lt;p&gt;Null should be returned instead, as that&apos;s how the other types behave too.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14479">DBAL-446</key>
            <summary>Type json_array can&apos;t be null</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="hrubi">Jan Hruban</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Feb 2013 16:58:40 +0000</created>
                <updated>Mon, 1 Apr 2013 21:48:49 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 21:48:49 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19925" author="beberlei" created="Mon, 1 Apr 2013 21:48:49 +0000"  >&lt;p&gt;This was fixed in 2.3.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-445] [GH-271] added the possibility to use column names as keys for the types in Connection::insert()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-445</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of fabpot:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/271&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/271&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The Connection::insert() method takes an array of types as its third argument:&lt;/p&gt;

&lt;p&gt;$conn-&amp;gt;insert(&apos;foo&apos;, array(&apos;foo&apos; =&amp;gt; &apos;foo&apos;, &apos;date&apos; =&amp;gt; new \DateTime()), array(2 =&amp;gt; &apos;datetime&apos;));&lt;/p&gt;

&lt;p&gt;But without looking at the implementation, I&apos;m sure you would have written the following instead:&lt;/p&gt;

&lt;p&gt;$conn-&amp;gt;insert(&apos;foo&apos;, array(&apos;foo&apos; =&amp;gt; &apos;foo&apos;, &apos;date&apos; =&amp;gt; new \DateTime()), array(&apos;date&apos; =&amp;gt; &apos;datetime&apos;));&lt;/p&gt;

&lt;p&gt;But unfortunately, that&apos;s does not work. This commit add support for this, and of course, the old way still works.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14478">DBAL-445</key>
            <summary>[GH-271] added the possibility to use column names as keys for the types in Connection::insert()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Feb 2013 17:42:52 +0000</created>
                <updated>Sun, 14 Apr 2013 12:23:38 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:23:38 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20003" author="doctrinebot" created="Sun, 14 Apr 2013 12:23:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-271&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/271&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/271&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-444] OraclePlatform getSequenceNextValSQL not handling case/quoting properly on 11g</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-444</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have an installer script that uses ORM SchemaTool to create the entities in the DB and then populates with basic data using basic EM-&amp;gt;persist calls via ORM.&lt;/p&gt;

&lt;p&gt;Sequence objects are created, and when using the 10g Instant Client everything worked correctly, however, upon upgrade to latest version of the Instant Client Oracle seems to be expecting consistent case for these schema objects. It appears as if they are being created with a quoted name as they are created in lowercase. OraclePlatform::getSequenceNextValSQL, however, generates &quot;SELECT entity_id_seq.nextval FROM DUAL&quot; and this fails with error &quot;General error: 2289 OCIStmtExecute: ORA-02289: sequence does not exist&quot;.&lt;/p&gt;

&lt;p&gt;Executing &quot;SELECT &quot;entity_id_seq&quot;.nextval FROM DUAL&quot; directly on the DB returns the correct value.&lt;/p&gt;

&lt;p&gt;I believe this may also impact the code in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-278&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-278&lt;/a&gt;&lt;/p&gt;</description>
                <environment>PHP version 5.4.11&lt;br/&gt;
Oracle 11g Instant Client version 11.2.0.3.0&lt;br/&gt;
Oracle Database 11g Enterprise Edition version 11.2.0.3.0 (x64)&lt;br/&gt;
OCI8 DBAL driver</environment>
            <key id="14474">DBAL-444</key>
            <summary>OraclePlatform getSequenceNextValSQL not handling case/quoting properly on 11g</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="maxmilaney">Max Milaney</reporter>
                        <labels>
                        <label>oci8</label>
                        <label>oracle</label>
                        <label>sequence</label>
                    </labels>
                <created>Sun, 10 Feb 2013 23:13:00 +0000</created>
                <updated>Thu, 4 Apr 2013 21:22:17 +0000</updated>
                                    <version>2.3.2</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19819" author="maxmilaney" created="Sun, 10 Mar 2013 05:06:49 +0000"  >&lt;p&gt;Hi there,&lt;br/&gt;
Wondering if there is any update on this? I&apos;m having to use a workaround in my applications.&lt;br/&gt;
Cheers,&lt;br/&gt;
Max&lt;/p&gt;</comment>
                    <comment id="19853" author="beberlei" created="Thu, 14 Mar 2013 20:54:52 +0000"  >&lt;p&gt;Can you maybe show an entity definition with its sequence mapping?&lt;/p&gt;</comment>
                    <comment id="19872" author="maxmilaney" created="Sun, 17 Mar 2013 21:05:36 +0000"  >&lt;p&gt;Here you are mate. Please see attachment.&lt;/p&gt;</comment>
                    <comment id="19941" author="beberlei" created="Thu, 4 Apr 2013 21:22:17 +0000"  >&lt;p&gt;I cant seem to find the problem, in DBAL &quot;lib/Doctrine/DBAL/Platforms/OraclePlatform.php&quot; on line 171, the sequence statement is created with $sequence-&amp;gt;getQuotedName($platform), but this only works if quoting is requrested for the sequence.&lt;/p&gt;

&lt;p&gt;How do you actually create the sequence? Your entity doesnt have @GeneratedValue.&lt;/p&gt;

&lt;p&gt;What does the create schema command say with &quot;--dump-sql&quot; flag? Is the SQL quoted?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11512" name="example.php" size="1001" author="maxmilaney" created="Sun, 17 Mar 2013 21:05:36 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-443] [GH-270] Fix for DBAL-442</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-443</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of yethee:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/270&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/270&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14473">DBAL-443</key>
            <summary>[GH-270] Fix for DBAL-442</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 10 Feb 2013 14:46:28 +0000</created>
                <updated>Sun, 14 Apr 2013 10:31:12 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 10:31:12 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20001" author="doctrinebot" created="Sun, 14 Apr 2013 10:31:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-270&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/270&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/270&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20002" author="beberlei" created="Sun, 14 Apr 2013 10:31:12 +0000"  >&lt;p&gt;Invalid branch&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-442] Break the query building with multiple from parts</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-442</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For example:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$queryBuilder
    -&amp;gt;select(&apos;DISTINCT c.id&apos;)
    -&amp;gt;from(&apos;Campaigns&apos;, &apos;c&apos;)
    -&amp;gt;leftJoin(&apos;c&apos;, &apos;CampaignOperations&apos;, &apos;od&apos;, &apos;od.campaignId = c.id AND od.operation = :operation&apos;)
    -&amp;gt;from(&apos;BannerGroups&apos;, &apos;bg&apos;)
    -&amp;gt;innerJoin(&apos;bg&apos;, &apos;BannerGroupStrategies&apos;, &apos;bgs&apos;, &apos;bgs.groupId = bg.id AND bgs.advSystem = :system&apos;)
    -&amp;gt;where(&apos;bg.campaignId = c.id&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Builded the query:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; DISTINCT c.id &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; Campaigns s 
  LEFT JOIN CampaignOperations od ON (od.campaignId = c.id AND od.operation = :operation)
  INNER JOIN BannerGroupStrategies bgs ON (bgs.groupId = bg.id AND bgs.advSystem = :system), 
  BannerGroups bg
  &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; (bg.campaignId = c.id)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If this query execute on mysql, we get error: &lt;br/&gt;
SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S22&amp;#93;&lt;/span&gt;: Column not found: 1054 Unknown column &apos;bg.id&apos; in &apos;on clause&apos;&lt;/p&gt;

&lt;p&gt;Expected result:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; DISTINCT c.id &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; Campaigns s 
  LEFT JOIN CampaignOperations od ON (od.campaignId = c.id AND od.operation = :operation),
  BannerGroups bg
  INNER JOIN BannerGroupStrategies bgs ON (bgs.groupId = bg.id AND bgs.advSystem = :system)
  &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; (bg.campaignId = c.id)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Regression after patch &lt;a href=&quot;https://github.com/doctrine/dbal/pull/175&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/175&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14472">DBAL-442</key>
            <summary>Break the query building with multiple from parts</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="yethee">Denis Vasilev</reporter>
                        <labels>
                        <label>mysql</label>
                    </labels>
                <created>Sun, 10 Feb 2013 10:25:02 +0000</created>
                <updated>Mon, 22 Apr 2013 14:51:48 +0000</updated>
                    <resolved>Mon, 22 Apr 2013 14:51:48 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19523" author="yethee" created="Sun, 10 Feb 2013 14:59:51 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/pull/270&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/270&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20089" author="fabio.bat.silva" created="Mon, 22 Apr 2013 14:51:48 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/99574240f332a814ec193b6e7a88abb6a457f061&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/99574240f332a814ec193b6e7a88abb6a457f061&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-441] [GH-269] Fix SQLServerPlatform regular expression SQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-441</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/269&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/269&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;SQL Server has no native support for regular expressions. Furthermore there is no &quot;RLIKE&quot; expression in T-SQL. This PR fixes this.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14453">DBAL-441</key>
            <summary>[GH-269] Fix SQLServerPlatform regular expression SQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Feb 2013 18:47:18 +0000</created>
                <updated>Sun, 3 Feb 2013 19:32:37 +0000</updated>
                    <resolved>Sun, 3 Feb 2013 19:32:37 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19468" author="beberlei" created="Sun, 3 Feb 2013 19:19:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-269&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/269&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/269&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-440] [GH-268] Remove deprecated getShowDatabasesSQL() from Platforms</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-440</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/268&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/268&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;As stated in PR #265 the getShowDatabasesSQL() method is deprecated in the platforms. This PR removes them entirely now.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14452">DBAL-440</key>
            <summary>[GH-268] Remove deprecated getShowDatabasesSQL() from Platforms</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Feb 2013 18:09:00 +0000</created>
                <updated>Sun, 10 Feb 2013 00:04:34 +0000</updated>
                    <resolved>Sun, 10 Feb 2013 00:04:34 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19467" author="beberlei" created="Sun, 3 Feb 2013 18:42:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-268&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/268&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/268&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19514" author="asm89" created="Sun, 10 Feb 2013 00:04:34 +0000"  >&lt;p&gt;Was merged in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/fc77f6de46d936552b445920a80b12af2c019cd4&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/fc77f6de46d936552b445920a80b12af2c019cd4&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-439] [GH-267] Add SQLServerPlatform supports schemas</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-439</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/267&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/267&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;SQL Server supports schemas. This PR modifies SQLServerPlatform to return true when asked for schema support.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14451">DBAL-439</key>
            <summary>[GH-267] Add SQLServerPlatform supports schemas</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Feb 2013 11:35:31 +0000</created>
                <updated>Tue, 5 Feb 2013 15:21:50 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:21:50 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19465" author="beberlei" created="Sun, 3 Feb 2013 16:22:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-267&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/267&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/267&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19480" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:21:50 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/e3f1af51eaec0707d5d387fc8cae1a585f2b5634&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/e3f1af51eaec0707d5d387fc8cae1a585f2b5634&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-438] [GH-266] Removed outdated methods in DatabasePlatformMock.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-438</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of BenMorel:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/266&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/266&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Same as &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/567&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/567&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14450">DBAL-438</key>
            <summary>[GH-266] Removed outdated methods in DatabasePlatformMock.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 3 Feb 2013 02:10:07 +0000</created>
                <updated>Tue, 5 Feb 2013 15:19:24 +0000</updated>
                    <resolved>Tue, 5 Feb 2013 15:19:24 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19459" author="beberlei" created="Sun, 3 Feb 2013 04:03:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-266&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/266&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/266&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19460" author="beberlei" created="Sun, 3 Feb 2013 04:03:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-567&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/567&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/567&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19478" author="fabio.bat.silva" created="Tue, 5 Feb 2013 15:19:24 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/2a58ac0e15315b785f3ee5edb822dc5e45d154d7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/2a58ac0e15315b785f3ee5edb822dc5e45d154d7&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-437] [GH-265] fix getShowDatabasesSQL() in SQLServerPlatform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-437</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/265&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/265&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The getShowDatabasesSQL() in SQLServerPlatform returns invalid SQL. Maybe copy/paste error from MySqlPlatform? This PR fixes this to return the correct statement.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14441">DBAL-437</key>
            <summary>[GH-265] fix getShowDatabasesSQL() in SQLServerPlatform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Feb 2013 05:53:20 +0000</created>
                <updated>Sun, 10 Feb 2013 00:05:14 +0000</updated>
                    <resolved>Sun, 10 Feb 2013 00:05:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19466" author="beberlei" created="Sun, 3 Feb 2013 16:31:45 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-265&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/265&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/265&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19515" author="asm89" created="Sun, 10 Feb 2013 00:05:14 +0000"  >&lt;p&gt;PR was invalid.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-436] Logger should specify connection used in a master/slave situation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-436</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Suppose there is a master connection with four slaves specified. Connections are being handled by the Doctrine\DBAL\Connections\MasterSlaveConnection class. Under the current implementation, all queries are logged under the &quot;master&quot; connection, even queries that are routed to the slaves by the Doctrine\DBAL\Connections\MasterSlaveConnection class.&lt;/p&gt;

&lt;p&gt;Since slave connections are separate, distinct connections, queries should be logged appropriately under their respective connections.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14440">DBAL-436</key>
            <summary>Logger should specify connection used in a master/slave situation</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jarrod">Jarrod Nettles</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Jan 2013 22:47:28 +0000</created>
                <updated>Mon, 1 Apr 2013 16:34:12 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 16:34:12 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19918" author="beberlei" created="Mon, 1 Apr 2013 16:34:12 +0000"  >&lt;p&gt;Two reasons why this is not feasible:&lt;/p&gt;

&lt;p&gt;1. We actually don&apos;t ship loggers on our own, so if you want you can implement this yourself. We wouldn&apos;t have a way to &quot;add&quot; this, we only provide the interface.&lt;/p&gt;

&lt;p&gt;2. However the logger does not have access to the connection to find out which slave or master its currently using, you can create a logger that has a &quot;setConnection($conn)&quot; method and call this during bootstrapping the logger+connection.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-435] [GH-264] Allow passing empty arrays as parameters</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-435</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of frosas:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/264&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/264&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Right now something like&lt;/p&gt;

&lt;p&gt;```php&lt;br/&gt;
$entityManager&lt;br/&gt;
    -&amp;gt;createQuery(&quot;SELECT e FROM Entity e WHERE e IN (:entities)&quot;)&lt;br/&gt;
    -&amp;gt;execute(array(&apos;entities&apos; =&amp;gt; array()));&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;produces a `Warning: array_fill(): Number of elements must be positive`&lt;/p&gt;</description>
                <environment></environment>
            <key id="14439">DBAL-435</key>
            <summary>[GH-264] Allow passing empty arrays as parameters</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 31 Jan 2013 16:06:51 +0000</created>
                <updated>Mon, 1 Apr 2013 13:45:44 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 13:45:43 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-434] Incorrect type mapping on Oracle Platform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-434</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;I&apos;m noticed a strange behaviour when I executed a migration for my Oracle database. Doctrine detects changes on all &lt;tt&gt;date&lt;/tt&gt; columns, generating queries like:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE the_table MODIFY (the_date DATE DEFAULT NULL);&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;even if the entity property was not modified. Check in out the Doctrine 2 source code I&apos;ve detected that Doctrine map the &lt;tt&gt;DATE&lt;/tt&gt; Oracle columns as &lt;tt&gt;datetime&lt;/tt&gt; type, but entity &lt;tt&gt;date&lt;/tt&gt; property are mapped as &lt;tt&gt;date&lt;/tt&gt; (as it should be), so Doctrine believes that entity property and column type are different and generate the alter query.&lt;/p&gt;

&lt;p&gt;I found the problem on the method Doctrine\DBAL\Platforms\OraclePlatform::initializeDoctrineTypeMappings, when it say &lt;tt&gt;&apos;date&apos; =&amp;gt; &apos;datetime&apos;&lt;/tt&gt; should say &lt;tt&gt;&apos;date&apos; =&amp;gt; &apos;date&apos;&lt;/tt&gt;, that fix the migration problem and does not break my application.&lt;/p&gt;

&lt;p&gt;Was a typo?&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;</description>
                <environment>Oracle 10g on Windows, using Doctrine 2 with Symfony2</environment>
            <key id="14436">DBAL-434</key>
            <summary>Incorrect type mapping on Oracle Platform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="eagleoneraptor">Dami&#225;n Nohales</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 Jan 2013 19:31:43 +0000</created>
                <updated>Sun, 17 Feb 2013 13:55:08 +0000</updated>
                    <resolved>Wed, 30 Jan 2013 20:07:39 +0000</resolved>
                                                            <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19442" author="beberlei" created="Wed, 30 Jan 2013 20:07:39 +0000"  >&lt;p&gt;The problem is that Oracle has a &quot;DATE&quot; type, which is actually a DATETIME. That is why we map it to Doctrine&apos;s Datetime type.&lt;/p&gt;

&lt;p&gt;As a workaround, you can set this information yourself using:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;date&apos;, &apos;date&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Be aware this is a global change for all columns. If you map DateTimes to a TIMESTAMP field you are good to go though.&lt;/p&gt;</comment>
                    <comment id="19549" author="johnkary" created="Sun, 17 Feb 2013 07:57:29 +0000"  >&lt;p&gt;I ran into this same issue with the default &lt;tt&gt;OraclePlatform&lt;/tt&gt; configuration. I was trying to run &lt;tt&gt;doctrine:schema:update --force&lt;/tt&gt; from the Symfony2 Console on my Oracle database, and ALTER statements were generated for some DATE columns that were fully up to date when looking at the actual table.&lt;/p&gt;

&lt;p&gt;But the major issue I ran into was these unnecessary ALTER statements were for DATE columns with NOT NULL constraints, resulting in a query like &lt;tt&gt;ALTER TABLE your_table MODIFY (created_at_date  DATE NOT NULL);&lt;/tt&gt; Yet when running this query, Oracle throws an error: &lt;tt&gt;ORA-01442: column to be modified to NOT NULL is already NOT NULL&lt;/tt&gt;. So I could no longer use &lt;tt&gt;doctrine:schema:update&lt;/tt&gt; to update my schema during development against Oracle.&lt;/p&gt;

&lt;p&gt;While technically correct, Oracle DATE types actually store time data in addition to date data, I don&apos;t agree that this should be considered Doctrine&apos;s default behavior.&lt;/p&gt;

&lt;p&gt;I believe Oracle DATE columns should be date-only (e.g. Day, Month, Year) and time data should be disregarded. All other drivers except SQLServer map &quot;date&quot; fields to Doctrine&apos;s &quot;date&quot; type. I would rather see someone wanting to store time data with their DATE field need to make the suggested change, instead of the other way around:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;date&apos;, &apos;datetime&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Oracle 11g Release 1 DATE type docs: &lt;a href=&quot;http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#i1847&quot; class=&quot;external-link&quot;&gt;http://docs.oracle.com/cd/B28359_01/server.111/b28318/datatype.htm#i1847&lt;/a&gt;)&lt;/p&gt;</comment>
                    <comment id="19550" author="beberlei" created="Sun, 17 Feb 2013 13:55:08 +0000"  >&lt;p&gt;Well the other thing is, that we cannot change this for BC reasons.&lt;/p&gt;

&lt;p&gt;We could introduce a new platform that solves this issue though.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-433] [GH-263] Fix wrong class names in SQLAzureFederationsSynchronizer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-433</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of BenMorel:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/263&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/263&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;There is a wrong import in this class:&lt;/p&gt;

&lt;p&gt;    use Doctrine\DBAL\Sharding\SingleDatabaseSynchronizer;&lt;/p&gt;

&lt;p&gt;Should be:&lt;/p&gt;

&lt;p&gt;    use Doctrine\DBAL\Schema\Synchronizer\SingleDatabaseSynchronizer;&lt;/p&gt;

&lt;p&gt;The following import is also missing:&lt;/p&gt;

&lt;p&gt;    use Doctrine\DBAL\Schema\Synchronizer\SchemaSynchronizer;&lt;/p&gt;

&lt;p&gt;This PR fixes them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14433">DBAL-433</key>
            <summary>[GH-263] Fix wrong class names in SQLAzureFederationsSynchronizer</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jan 2013 20:25:06 +0000</created>
                <updated>Wed, 30 Jan 2013 18:38:19 +0000</updated>
                    <resolved>Wed, 30 Jan 2013 18:38:19 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19440" author="beberlei" created="Wed, 30 Jan 2013 12:24:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-263&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/263&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/263&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-432] [GH-262] Add Symfony Console dependency to composer.json</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-432</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of BenMorel:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/262&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/262&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The DBAL component offers a command-line tool based on Symfony Console, but this one is not present as a dependency in `composer.json`.&lt;/p&gt;

&lt;p&gt;This PR adds the dependency.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14432">DBAL-432</key>
            <summary>[GH-262] Add Symfony Console dependency to composer.json</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jan 2013 20:12:54 +0000</created>
                <updated>Sun, 14 Apr 2013 12:24:51 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:24:51 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20004" author="doctrinebot" created="Sun, 14 Apr 2013 12:24:46 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-262&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/262&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/262&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-431] [GH-261] Fix OFFSET without LIMIT cause MySQL syntax error.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-431</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Everus:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/261&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/261&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;MySQL OFFSET require LIMIT.&lt;br/&gt;
So fixed it to use the biggest limit possible as it recommended in &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/select.html#id4651990&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/select.html#id4651990&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14431">DBAL-431</key>
            <summary>[GH-261] Fix OFFSET without LIMIT cause MySQL syntax error.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jan 2013 10:37:55 +0000</created>
                <updated>Sun, 14 Apr 2013 12:42:21 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:41:40 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20009" author="doctrinebot" created="Sun, 14 Apr 2013 12:42:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-261&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/261&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/261&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-430] [GH-260] Add SQL Server 2012 platform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-430</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/260&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/260&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This adds the platform for SQL Server 2012 introducing sequences. I don&apos;t exactly know if sequences should be preferred for ID generation or not so I left identity columns preferred for ID generation. Also added new keywords to MsSqlKeywords since SQL Server 2008.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14429">DBAL-430</key>
            <summary>[GH-260] Add SQL Server 2012 platform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jan 2013 06:49:19 +0000</created>
                <updated>Mon, 4 Feb 2013 00:14:09 +0000</updated>
                    <resolved>Mon, 4 Feb 2013 00:14:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19470" author="beberlei" created="Mon, 4 Feb 2013 00:12:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-260&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/260&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/260&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-429] [GH-259] fix named_token</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-429</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dready:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/259&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/259&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Regex Token Pattern for NAMED_TOKEN does not support sql cast operator ::&lt;/p&gt;

&lt;p&gt;For example a query like this:&lt;br/&gt;
Select mydate::date from mytable; &lt;/p&gt;

&lt;p&gt;will return  a place holder &apos;:date&apos; instead of ignoring this.&lt;/p&gt;

&lt;p&gt;fixed by adjusting the regex to ignore the operator.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14428">DBAL-429</key>
            <summary>[GH-259] fix named_token</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Jan 2013 12:24:40 +0000</created>
                <updated>Sun, 14 Apr 2013 12:27:11 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:27:11 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20005" author="doctrinebot" created="Sun, 14 Apr 2013 12:26:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-259&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/259&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/259&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-428] [GH-258] Guid type requires SQL typehint comment</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-428</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of pkruithof:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/258&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/258&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Since guid extends the string type, it needs to be type hinted.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14421">DBAL-428</key>
            <summary>[GH-258] Guid type requires SQL typehint comment</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 26 Jan 2013 15:31:15 +0000</created>
                <updated>Wed, 30 Jan 2013 18:37:43 +0000</updated>
                    <resolved>Wed, 30 Jan 2013 18:37:43 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19441" author="beberlei" created="Wed, 30 Jan 2013 12:36:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-258&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/258&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/258&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-427] [GH-257] fix SQLServerPlatform locking hints</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-427</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/257&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/257&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This should completely implement the locking hints of the SQLServerPlatform according to &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/aa213026%28v=sql.80%29.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/aa213026%28v=sql.80%29.aspx&lt;/a&gt;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14417">DBAL-427</key>
            <summary>[GH-257] fix SQLServerPlatform locking hints</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jan 2013 23:35:01 +0000</created>
                <updated>Sun, 3 Feb 2013 19:54:20 +0000</updated>
                    <resolved>Sun, 3 Feb 2013 19:54:20 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19469" author="beberlei" created="Sun, 3 Feb 2013 19:53:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-257&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/257&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/257&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-426] [GH-256] Create queryBuilder from parts.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-426</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of NoUseFreak:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/256&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/256&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Add a feature that can create a queryBuilder from queryBuilder parts.&lt;/p&gt;

&lt;p&gt;This can be used when a query is build and needs to be stored somehow and restore it later.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14416">DBAL-426</key>
            <summary>[GH-256] Create queryBuilder from parts.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jan 2013 23:01:53 +0000</created>
                <updated>Sat, 26 Jan 2013 16:24:46 +0000</updated>
                    <resolved>Sat, 26 Jan 2013 16:24:46 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19414" author="beberlei" created="Fri, 25 Jan 2013 23:33:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-256&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/256&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/256&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-425] [GH-255] fix typo in AbstractPlatform phpDocs</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-425</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/255&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/255&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fixes typo in AbstractPlatform phpDocs. &quot;ASNI&quot; -&amp;gt; &quot;ANSI&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14414">DBAL-425</key>
            <summary>[GH-255] fix typo in AbstractPlatform phpDocs</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jan 2013 22:29:26 +0000</created>
                <updated>Sat, 26 Jan 2013 16:29:21 +0000</updated>
                    <resolved>Sat, 26 Jan 2013 16:29:21 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19413" author="beberlei" created="Fri, 25 Jan 2013 22:44:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-255&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/255&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/255&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-424] [GH-254] fix SQLServerPlatform GUID expression</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-424</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of deeky666:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/254&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/254&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The GUID expression UUID() does not exist in SQLServer. Instead NEWID() is used. This PR fixes this.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14412">DBAL-424</key>
            <summary>[GH-254] fix SQLServerPlatform GUID expression</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jan 2013 15:59:29 +0000</created>
                <updated>Fri, 25 Jan 2013 19:18:58 +0000</updated>
                    <resolved>Fri, 25 Jan 2013 19:18:58 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19412" author="beberlei" created="Fri, 25 Jan 2013 18:34:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-254&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/254&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/254&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-423] Type GUID = VARCHAR(255) on platforms that don&apos;t have a native GUID support</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-423</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;m using MySQL with entities that have GUID ids. Therefore I&apos;m using @ORM\Column(type=&quot;guid&quot;) for the ORM mapping. As MySQL does not have a native GUID data type, it gets mapped to type=&quot;string&quot; with a default length of 255 -&amp;gt; VARCHAR(255). I don&apos;t really understand why we don&apos;t limit the length to 36, which is the fixed length for GUIDs. You could even think about using CHAR(36) for MySQL.&lt;/p&gt;

&lt;p&gt;-&amp;gt; see Doctrine\DBAL\Platforms\AbstractPlatform -&amp;gt; getGuidTypeDeclarationSQL()&lt;/p&gt;</description>
                <environment></environment>
            <key id="14410">DBAL-423</key>
            <summary>Type GUID = VARCHAR(255) on platforms that don&apos;t have a native GUID support</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="amr">amr</reporter>
                        <labels>
                    </labels>
                <created>Fri, 25 Jan 2013 11:03:03 +0000</created>
                <updated>Fri, 25 Jan 2013 11:03:03 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <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>

<item>
            <title>[DBAL-421] [GH-253] Added GUID expression to SQLite platform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-421</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jankramer:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/253&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/253&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This will add an implementation of getGuidExpression to the SqlitePlatform. It is based on &lt;span class=&quot;error&quot;&gt;&amp;#91;UUID version 4&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29&quot; class=&quot;external-link&quot;&gt;http://en.wikipedia.org/wiki/Universally_unique_identifier#Version_4_.28random.29&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;Don&apos;t know if this is appropriate, but I&apos;m open to suggestions.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14405">DBAL-421</key>
            <summary>[GH-253] Added GUID expression to SQLite platform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 Jan 2013 13:44:14 +0000</created>
                <updated>Fri, 25 Jan 2013 08:43:47 +0000</updated>
                    <resolved>Fri, 25 Jan 2013 08:43:47 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19404" author="beberlei" created="Fri, 25 Jan 2013 06:00:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-253&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/253&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/253&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19405" author="ocramius" created="Fri, 25 Jan 2013 08:43:47 +0000"  >&lt;p&gt;merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-420] Schema Drop SQL incorrect on PostgreSQL with entities with GeneratedValue(strategy=&quot;IDENTITY&quot;)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-420</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This problem is probably related to #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-54&quot; title=&quot;Incorrect sequence dropping in PostgreSQL&quot;&gt;&lt;del&gt;DBAL-54&lt;/del&gt;&lt;/a&gt;. However that was closed by the raiser as he changed his Entity model and it went away.&lt;/p&gt;

&lt;p&gt;When schema drop is run the following error occurs:&lt;br/&gt;
Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP SEQUENCE radacct_radacctid_seq&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;2BP01&amp;#93;&lt;/span&gt;: Dependent objects still exist: 7 ERROR:  cannot drop sequence radacct_radacctid_seq because other objects depend on it&lt;br/&gt;
DETAIL:  default for table radacct column radacctid depends on sequence radacct_radacctid_seq&lt;br/&gt;
HINT:  Use DROP ... CASCADE to drop the dependent objects too.&lt;/p&gt;


&lt;p&gt;The source of this problem is the difference between strategy=&quot;IDENTITY&quot; and strategy=&quot;SEQUENCE&quot;&lt;/p&gt;

&lt;p&gt;With SEQUENCE doctrine creates the table schema with field type BIGINT and no specified. It then creates a seperate sequence and as far as I can tell takes care of getting and inserting the next id number itself.&lt;/p&gt;

&lt;p&gt;With IDENTITY doctrine creates the table schema with field type BIGSERIAL and no specified default. Now postgres automatically creates a sequence and creates the column with type BIGINT and sets the DEFAULT to the pgpsql statement required to get the nextval from the sequence.&lt;/p&gt;

&lt;p&gt;At this point the two differently configured tables will work successfully and identically, except SEQUENCE tables will only get a correct new ID when run through the doctrine code while IDENTITY tables will get the correct new ID whenever an insert is done to the table.&lt;/p&gt;

&lt;p&gt;Because in the case of an IDENTITY field postgresql creates the field with a default value refering to the sequence the sequence can not be deleted before the table reference is removed.&lt;/p&gt;

&lt;p&gt;For my case I need the IDENTITY fields to work as we have a RADIUS server that needs to insert into one table which is managed and mapped to an entity in Doctrine.&lt;/p&gt;

&lt;p&gt;Swapping the order of DROP TABLE and DROP SEQUENCE commands in Doctrine/DBAL/Schema/Visitor/DropSchemaSqlCollector.php in getQueries() line 159. Does not work as a quick fix. The following error occurs as the sequence is quite correctly be dropped along with the table.&lt;/p&gt;

&lt;p&gt;Doctrine\DBAL\DBALException: An exception occurred while executing &apos;DROP SEQUENCE radacct_radacctid_seq&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42P01&amp;#93;&lt;/span&gt;: Undefined table: 7 ERROR:  sequence &quot;radacct_radacctid_seq&quot; does not exist&lt;/p&gt;
</description>
                <environment>Symfony 2.1, PHP5.4, PostgreSQL 9.1 on Ubuntu 12.04</environment>
            <key id="14403">DBAL-420</key>
            <summary>Schema Drop SQL incorrect on PostgreSQL with entities with GeneratedValue(strategy=&quot;IDENTITY&quot;)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="adamashley">Adam Ashley</reporter>
                        <labels>
                        <label>postgresql</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 23 Jan 2013 09:22:22 +0000</created>
                <updated>Sun, 14 Apr 2013 12:37:30 +0000</updated>
                    <resolved>Sun, 14 Apr 2013 12:37:30 +0000</resolved>
                            <version>2.3.2</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19395" author="adamashley" created="Thu, 24 Jan 2013 00:00:41 +0000"  >&lt;p&gt;This issue also appears to affect Doctrine_Migrations. Generated migrations try to drop and recreate automatically generated sequences associated with SERIAL fields making a mess of the database.&lt;/p&gt;</comment>
                    <comment id="19882" author="beberlei" created="Fri, 22 Mar 2013 10:05:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-289&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19985" author="powerkiki" created="Fri, 12 Apr 2013 06:20:15 +0000"  >&lt;p&gt;@Adam Ashley, could you test whether &lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt; solve your issue ?&lt;/p&gt;</comment>
                    <comment id="20008" author="doctrinebot" created="Sun, 14 Apr 2013 12:36:08 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-289&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/289&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/289&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-419] [GH-252] Sqlserver limit</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-419</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of norzechowicz:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/252&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/252&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Unfortunately fix from my last commit it not enough to handle more complicated queries.&lt;br/&gt;
This change should fix points 2 and 3 &lt;span class=&quot;error&quot;&gt;&amp;#91;from this list&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1785&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1785&lt;/a&gt;) but it also removes adding TOP statement if ``$offset`` is not set. &lt;br/&gt;
I know it looks realy messy but I can&apos;t figure out any other solution to handel queries with subqueries and ordering (such thing is generated after using Doctrine Paginator and ordering). &lt;/p&gt;

</description>
                <environment></environment>
            <key id="14400">DBAL-419</key>
            <summary>[GH-252] Sqlserver limit</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Jan 2013 14:36:53 +0000</created>
                <updated>Wed, 30 Jan 2013 18:39:38 +0000</updated>
                    <resolved>Wed, 30 Jan 2013 18:39:38 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19439" author="beberlei" created="Wed, 30 Jan 2013 12:14:41 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-252&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/252&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/252&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-418] [GH-251] Escape identifier names in MySQL ALTER queries</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-418</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Xowap:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/251&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/251&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The generated MySQL queries did not properly escape the identifier, thus&lt;br/&gt;
making it impossible to use SQL keywords as field/index/table name.&lt;/p&gt;

&lt;p&gt;Although this is indeed a quite unwise design choice, this is required&lt;br/&gt;
for many legacy applications.&lt;/p&gt;

&lt;p&gt;The submitted modifications do cover MySQL only, because it is the one that I need to use. However, I think that all the platforms are flawed with this issue and that a general re-work should be done here.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14399">DBAL-418</key>
            <summary>[GH-251] Escape identifier names in MySQL ALTER queries</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 Jan 2013 10:19:40 +0000</created>
                <updated>Mon, 1 Apr 2013 16:38:40 +0000</updated>
                    <resolved>Mon, 1 Apr 2013 16:38:40 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19354" author="beberlei" created="Mon, 21 Jan 2013 10:19:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-251&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/251&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/251&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-417] [GH-250] Lightweight export as of doctrine/doctrine2#543</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-417</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Ocramius:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/250&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/250&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;see doctrine/doctrine2#543&lt;/p&gt;</description>
                <environment></environment>
            <key id="14395">DBAL-417</key>
            <summary>[GH-250] Lightweight export as of doctrine/doctrine2#543</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 19 Jan 2013 19:15:26 +0000</created>
                <updated>Sat, 19 Jan 2013 23:00:19 +0000</updated>
                    <resolved>Sat, 19 Jan 2013 23:00:19 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19340" author="beberlei" created="Sat, 19 Jan 2013 23:00:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-250&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/250&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/250&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-416] [GH-249] Fixed doModifyLimitQuery for SQLServerPlatform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-416</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of norzechowicz:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/249&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/249&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;It seems that there is a problem in SQLServerPlatform ``doModifyLimitQuery`` method. &lt;br/&gt;
I can&apos;t use Doctrine ORM Paginator because of wrong position of ``DISTINCT`` statement in final limit subquery, here is the exception message I&apos;m getting.&lt;br/&gt;
``SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 10.0&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server&amp;#93;&lt;/span&gt;Incorrect syntax near the keyword &apos;DISTINCT&apos;.``&lt;/p&gt;

&lt;p&gt;My proposition is to change ``doModifyLimitQuery`` result from:&lt;/p&gt;

&lt;p&gt;``SELECT * FROM (SELECT ROW_NUMBER() OVER (ORDER BY username DESC) AS doctrine_rownum, * FROM user) ...``&lt;/p&gt;

&lt;p&gt;into:&lt;/p&gt;

&lt;p&gt;``SELECT * FROM (SELECT *, ROW_NUMBER() OVER (ORDER BY username DESC) AS doctrine_rownum FROM user) ...``&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14391">DBAL-416</key>
            <summary>[GH-249] Fixed doModifyLimitQuery for SQLServerPlatform</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Jan 2013 12:28:05 +0000</created>
                <updated>Sun, 20 Jan 2013 11:50:54 +0000</updated>
                    <resolved>Sun, 20 Jan 2013 11:50:54 +0000</resolved>
                                            <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19343" author="beberlei" created="Sun, 20 Jan 2013 11:48:10 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-249&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/249&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/249&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-415] [GH-248] Enable multiple postgresql datetime formats</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-415</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of cedriclombardot:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/248&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/248&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Postgre use ISO 8601 date formats so some times can be Y-m-d H:i:s or sometime Y-m-d H:i:s.u&lt;/p&gt;</description>
                <environment></environment>
            <key id="14384">DBAL-415</key>
            <summary>[GH-248] Enable multiple postgresql datetime formats</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Jan 2013 13:23:11 +0000</created>
                <updated>Mon, 14 Jan 2013 13:23:11 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-414] zaza</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-414</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;yu&lt;/p&gt;</description>
                <environment>aaan</environment>
            <key id="14367">DBAL-414</key>
            <summary>zaza</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bilgee">batbileg</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Jan 2013 18:28:51 +0000</created>
                <updated>Wed, 9 Jan 2013 18:30:19 +0000</updated>
                    <resolved>Wed, 9 Jan 2013 18:30:19 +0000</resolved>
                            <version>2.2.1</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19267" author="bilgee" created="Wed, 9 Jan 2013 18:30:03 +0000"  >&lt;p&gt;yu wm&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-413] [GH-247] Obtain all informations about a column via Column::toArray()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-413</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/247&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/247&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14361">DBAL-413</key>
            <summary>[GH-247] Obtain all informations about a column via Column::toArray()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jan 2013 13:45:38 +0000</created>
                <updated>Tue, 8 Jan 2013 15:33:50 +0000</updated>
                    <resolved>Tue, 8 Jan 2013 15:33:50 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19256" author="beberlei" created="Tue, 8 Jan 2013 15:30:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-247&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/247&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/247&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-412] PostgreSqlSchemaManager::listTableColumns() fails if there are columns defined by domains in multiple schemas</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-412</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;We use Postgresql Domains to ensure consistent column definitions across multiple tables. We also have multiple schemas in a database. Therefore we can have two domains defined in the same database with the same name, but in different schemas.&lt;/p&gt;

&lt;p&gt;In this situation, PostgreSqlSchemaManager::listTableColumns() fails when called for a table with a column defined by one of those domains. This means that PostgreSqlSchemaManager::createSchema() also fails for a schema containing such a table.&lt;/p&gt;

&lt;p&gt;```&lt;br/&gt;
SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;21000&amp;#93;&lt;/span&gt;: Cardinality violation: 7 ERROR:  more than one row returned by a subquery used as an expression&lt;br/&gt;
```&lt;/p&gt;

&lt;p&gt;This happens because of an error in the query definition in PostgreSqlPlatform::getListTableColumnsSQL(). The &lt;tt&gt;domain_complete_type&lt;/tt&gt; column in the query is defined by matching the name only, without reference to the schema:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;
(&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; format_type(t2.typbasetype, t2.typtypmod) &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt;   
  pg_catalog.pg_type t2                                                        
                       &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; t2.typtype = &apos;d&apos; AND t2.typname = format_type(a.atttypid, a.atttypmod)) AS domain_complete_type,                             
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The error can be corrected by making sure that the correct domain is matched by using the OID instead of the name to match:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;
(&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; format_type(t2.typbasetype, t2.typtypmod) &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt;   
  pg_catalog.pg_type t2                                                        
                       &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; t2.typtype = &apos;d&apos; AND t2.oid = a.atttypid) AS domain_complete_type
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I can create a GitHub PR if it helps.&lt;/p&gt;</description>
                <environment>Postgresql 9.1</environment>
            <key id="14360">DBAL-412</key>
            <summary>PostgreSqlSchemaManager::listTableColumns() fails if there are columns defined by domains in multiple schemas</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="rhunwicks">Roger Hunwicks</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jan 2013 11:50:35 +0000</created>
                <updated>Wed, 1 May 2013 12:53:32 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:53:32 +0000</resolved>
                            <version>2.3.1</version>
                                <fixVersion>2.3.4</fixVersion>
                                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="20154" author="beberlei" created="Wed, 1 May 2013 12:53:32 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-411] Schema updater breaks when using backticks in tablenames.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-411</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using backticks around table-names (for example &quot;`Order`&quot;), the Doctrine schema update tool wants to recreate all foreign keys on every run.&lt;/p&gt;

&lt;p&gt;This error was introduced in commit cb3ec49cb4401bd1c8be6ba9671f651802586eaf&lt;/p&gt;</description>
                <environment>Debian Linux 6.0, PHP 5.3.3, MySQL 5.1.63</environment>
            <key id="14359">DBAL-411</key>
            <summary>Schema updater breaks when using backticks in tablenames.</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="endaco">Endaco</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Tue, 8 Jan 2013 11:24:46 +0000</created>
                <updated>Tue, 8 Jan 2013 11:24:46 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-410] [GH-246] Fixed sql for creating table with fulltext index</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-410</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/246&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/246&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14358">DBAL-410</key>
            <summary>[GH-246] Fixed sql for creating table with fulltext index</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jan 2013 10:31:21 +0000</created>
                <updated>Tue, 8 Jan 2013 15:40:37 +0000</updated>
                    <resolved>Tue, 8 Jan 2013 15:40:37 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19257" author="beberlei" created="Tue, 8 Jan 2013 15:37:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-246&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/246&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/246&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-409] [GH-245] Added support for column collation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-409</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/245&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/245&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14357">DBAL-409</key>
            <summary>[GH-245] Added support for column collation</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jan 2013 10:30:49 +0000</created>
                <updated>Sat, 4 May 2013 13:07:13 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-408] [GH-244] Enable Postgresql plateform to map inet column type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-408</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of cedriclombardot:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/244&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/244&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.postgresql.org/docs/8.2/static/functions-net.html&quot; class=&quot;external-link&quot;&gt;http://www.postgresql.org/docs/8.2/static/functions-net.html&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14356">DBAL-408</key>
            <summary>[GH-244] Enable Postgresql plateform to map inet column type</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 Jan 2013 08:41:51 +0000</created>
                <updated>Tue, 8 Jan 2013 15:26:05 +0000</updated>
                    <resolved>Tue, 8 Jan 2013 15:26:05 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19255" author="beberlei" created="Tue, 8 Jan 2013 15:25:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-244&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/244&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/244&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-407] Refactor exceptions</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-407</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It&apos;s currently rather hard to figure out what went wrong when for example a DBALException was thrown. You have to actually match the message in it, or read the status code of the -&amp;gt;getPrevious() exception, which can be different for all drivers (as &lt;a href=&quot;https://github.com/jackalope/jackalope-doctrine-dbal/issues/80&quot; class=&quot;external-link&quot;&gt;https://github.com/jackalope/jackalope-doctrine-dbal/issues/80&lt;/a&gt; shows).&lt;/p&gt;

&lt;p&gt;I&apos;d suggest creating new exception classes for all situations and throwing them instead. If they extend the DBAL Exception and pass the message to it as it is right now, there will be no BC break.&lt;/p&gt;

&lt;p&gt;If this were to be done, on which branch should this be applied?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14355">DBAL-407</key>
            <summary>Refactor exceptions</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="burgov">Bart van den Burg</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Jan 2013 18:09:34 +0000</created>
                <updated>Mon, 6 May 2013 06:10:18 +0000</updated>
                                                                    <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19251" author="stof" created="Mon, 7 Jan 2013 19:32:17 +0000"  >&lt;p&gt;This should be done in the master branch.&lt;/p&gt;

&lt;p&gt;Another solution, avoiding to create many classes, would be to use the exception code, which is always kept as 0 currently (the default value of the Exception class). You could have a code for each case (with constants in the DBALException class) and then checking &lt;tt&gt;$e-&amp;gt;getCode()&lt;/tt&gt; to identify what went wrong.&lt;/p&gt;</comment>
                    <comment id="19252" author="burgov" created="Mon, 7 Jan 2013 20:09:55 +0000"  >&lt;p&gt;I&apos;d prefer actual named exceptions. It makes catching them simpler. However, adding some code defined in DBAL would be an acceptable alternative. &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
    /* ... /*
} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (NoSuchTableException $e) {
    &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something
&lt;/span&gt;} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (DuplicateKeyException $e) {
    &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;v.s.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
    /* ... /*
} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (DBALException $e) {
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($e-&amp;gt;getCode() == DBALException::NO_SUCH_TABLE) {
        &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something
&lt;/span&gt;    } elseif ($e-&amp;gt;getCode() == DBALException::DUPLICATE_KEY) {
        &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; something &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
&lt;/span&gt;    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
        &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; $e;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="20217" author="chrisguitarguy" created="Mon, 6 May 2013 03:29:45 +0000"  >&lt;p&gt;I would also prefer named exceptions. You&apos;re going to have a lot of problems providing the &quot;code&quot; value in DBALException in any case: SQLSTATE codes are alphanumeric, and will cause warnings/errors when creating new exception.&lt;/p&gt;

&lt;p&gt;Besides we can get the SQL state code now:&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;    try {
        // ...
    } catch (\Doctrine\DBAL\DBALException $e) {
        $code = $e-&amp;gt;getPrevious()-&amp;gt;getCode();
        // do stuff with $code
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem is that there are a lot of error codes defined in the ANSI SQL standard: &lt;a href=&quot;http://www.postgresql.org/docs/9.2/static/errcodes-appendix.html&quot; class=&quot;external-link&quot;&gt;http://www.postgresql.org/docs/9.2/static/errcodes-appendix.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Maybe throwing an specific exception for each &quot;class&quot; of SQLSTATE codes? So if the error code from a PDO exception starts with 23, DBAL would throw `\Doctrine\DBAL\Exception\IntegrityConstraintViolationException`.&lt;/p&gt;

&lt;p&gt;This also seems like the logic to handle throwing exceptions should be contained in the platforms as some implementations may differ. You could have a method in `AbstractPlatform` that takes care of the ANSI SQLSTATE error code classes and leave it up subclasses to deal with platform specific cases. Whenever `Connection` catches a `PDOException`, dispatch it to the platform to deal with.&lt;/p&gt;

&lt;p&gt;Example: &lt;a href=&quot;https://gist.github.com/chrisguitarguy/e021918900e93dca304d&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/chrisguitarguy/e021918900e93dca304d&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Thoughts?&lt;/p&gt;</comment>
                    <comment id="20218" author="mnapoli" created="Mon, 6 May 2013 06:09:52 +0000"  >&lt;p&gt;I have implemented a thing of that kind in a personal project (on top of Doctrine). It is &lt;b&gt;really&lt;/b&gt; useful to be able to catch a ForeignKeyViolationException, and get with entity/field caused the problem (for that my EntityManager wrapper parse the exception message).&lt;/p&gt;

&lt;p&gt;However, note that exception codes differ from DB engines. In my case, I did it quick and used MySQL error codes, but managing different RDBMS implies more work.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-406] PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-406</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Please see &lt;a href=&quot;https://github.com/doctrine/migrations/issues/99&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/99&lt;/a&gt; for additional background.&lt;/p&gt;

&lt;p&gt;To reproduce:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;
CREATE SCHEMA test_schema;
CREATE TABLE test_schema.test_table (test_column TEXT);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Then in Doctrine:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;
$connection-&amp;gt;executeUpdate(&apos;SET search_path=test_schema;&apos;);
$result = $connection-&amp;gt;getSchemaManager()-&amp;gt;tablesExist(array(&apos;test_schema.test_table&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;&lt;tt&gt;$result&lt;/tt&gt; is false when it should be true.&lt;/p&gt;

&lt;p&gt;The error occurs because &lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; returns the bare table name from &lt;tt&gt;getPortableTablesList()&lt;/tt&gt; if the schema is the first one in the search path.&lt;/p&gt;

&lt;p&gt;The full explanation is...&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;AbstractSchemaManager::tablesExist()&lt;/tt&gt; calls &lt;tt&gt;$this-&amp;gt;getPortableTablesList()&lt;/tt&gt; before checking if the tables exist.&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; overrides this in &lt;tt&gt;_getPortableTableDefinition()&lt;/tt&gt;  by comparing the schema for the table with the search path for the connection. If the table schema is the first one in the search path, then it returns the bare table name, if it isn&apos;t then it returns the schema-qualified table name (i.e. schema.table).&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;tablesExist()&lt;/tt&gt; does an array_intersect to check that all the tables in the search array exist in the database.&lt;/p&gt;

&lt;p&gt;If one of the tables in the search array was schema-qualified but also in the first schema on the search path, then you end up checking:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;array_intersect(array(&apos;test_schema.test_table&apos;), array(&apos;test_table&apos;))&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;which fails.&lt;/p&gt;

&lt;p&gt;One way to fix it would be to override &lt;tt&gt;tablesExist()&lt;/tt&gt; in &lt;tt&gt;PostgreSqlSchemaManager&lt;/tt&gt; so that it passes the search array through &lt;tt&gt;getPortableTableDefinition()&lt;/tt&gt; before doing the array_intersect:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: php.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt;
    /**
     * Return &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; all the given tables exist.
     *
     * @param array $tableNames
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; bool
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function tablesExist($tableNames)
    {
        foreach ($tableNames as $key =&amp;gt; $tableName) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strpos($tableName, &apos;.&apos;) !== &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
                $tableName = explode(&apos;.&apos;, $tableName, 2);
                $tableNames[$key] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_getPortableTableDefinition(array(&apos;schema_name&apos;=&amp;gt;$tableName[0], &apos;table_name&apos;=&amp;gt;$tableName[1]));
            }
        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::tablesExist($tableNames);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;m happy to provide a PR on GitHub if you want.&lt;/p&gt;</description>
                <environment>Postgresql 9.1</environment>
            <key id="14352">DBAL-406</key>
            <summary>PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</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="rhunwicks">Roger Hunwicks</reporter>
                        <labels>
                        <label>postgresql</label>
                    </labels>
                <created>Mon, 7 Jan 2013 08:33:41 +0000</created>
                <updated>Mon, 7 Jan 2013 08:33:41 +0000</updated>
                                    <version>2.3.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-405] [GH-241] Added support of key length for text indexes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-405</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of maxlun86:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/241&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/241&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14340">DBAL-405</key>
            <summary>[GH-241] Added support of key length for text indexes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 29 Dec 2012 20:58:51 +0000</created>
                <updated>Sun, 30 Dec 2012 17:26:39 +0000</updated>
                    <resolved>Sun, 30 Dec 2012 17:26:39 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-404] Support of index length for text fields</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-404</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For table with text field description with index on it generated query is:&lt;/p&gt;

&lt;p&gt;CREATE TABLE t (id INT UNSIGNED AUTO_INCREMENT NOT NULL, description LONGTEXT DEFAULT NULL, number INT DEFAULT NULL, INDEX index2 (description), INDEX index3 (description, number), PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB&lt;/p&gt;

&lt;p&gt;This query lead to error, because for index on text field absented key length.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14339">DBAL-404</key>
            <summary>Support of index length for text fields</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="maxlun86">Maksim Lunochkin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 29 Dec 2012 20:31:53 +0000</created>
                <updated>Sat, 29 Dec 2012 20:31:53 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-403] [GH-240] Fix for DBAL-209</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-403</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of nemekzg:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/240&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/240&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fix for &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-209&quot; title=&quot;fetchAll should include $types array for executeQuery&quot;&gt;DBAL-209&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14338">DBAL-403</key>
            <summary>[GH-240] Fix for DBAL-209</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="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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 29 Dec 2012 17:21:28 +0000</created>
                <updated>Sun, 6 Jan 2013 09:07:04 +0000</updated>
                    <resolved>Sun, 6 Jan 2013 09:07:04 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19222" author="beberlei" created="Sun, 6 Jan 2013 09:06:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-240&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/240&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/240&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-402] Fatal error: Uncaught exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-402</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Fatal error: Uncaught exception &apos;Doctrine\DBAL\Driver\OCI8\OCI8Exception&apos; with message &apos;ORA-00904: &lt;span class=&quot;code-quote&quot;&gt;&quot;T0&quot;&lt;/span&gt;.&lt;span class=&quot;code-quote&quot;&gt;&quot;ID&quot;&lt;/span&gt;: invalid identifier&apos; in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php on line 28 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-00904: &lt;span class=&quot;code-quote&quot;&gt;&quot;T0&quot;&lt;/span&gt;.&lt;span class=&quot;code-quote&quot;&gt;&quot;ID&quot;&lt;/span&gt;: invalid identifier in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php on line 28

Call Stack: 0.0002 665368
1. {main}() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/tools/sandbox/index.php:0 0.3389 6023864
2. Doctrine\ORM\EntityManager-&amp;gt;find() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/tools/sandbox/index.php:71 0.3514 8264024
3. Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;load() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/Doctrine/ORM/EntityManager.php:444 0.3521 8413576 
4. Doctrine\DBAL\Connection-&amp;gt;executeQuery() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:725 0.3532 8625920
5. Doctrine\DBAL\Driver\OCI8\OCI8Statement-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php:635 Variables in local scope (#5): $hasZeroIndex = *uninitialized* $key = *uninitialized* $params = NULL $ret = FALSE $val = *uninitialized* 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14337">DBAL-402</key>
            <summary>Fatal error: Uncaught exception</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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="userua">Ruslan</reporter>
                        <labels>
                        <label>dql</label>
                        <label>oracle</label>
                    </labels>
                <created>Sat, 29 Dec 2012 13:03:19 +0000</created>
                <updated>Mon, 8 Apr 2013 18:23:52 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19225" author="beberlei" created="Sun, 6 Jan 2013 09:37:59 +0000"  >&lt;p&gt;Format code sample&lt;/p&gt;</comment>
                    <comment id="19938" author="beberlei" created="Thu, 4 Apr 2013 17:01:08 +0000"  >&lt;p&gt;What is wrong here? The error alone is not very helpful&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-401] Log connection info with SQL logger</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-401</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;while using MasterSlave connection, it would be nice to see the  connection being used  ( master or which slave), this will help debug the app, if lots read queries are going to Master&lt;/p&gt;</description>
                <environment></environment>
            <key id="14334">DBAL-401</key>
            <summary>Log connection info with SQL logger</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="anandagra">Ananda Agrawal</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Dec 2012 06:52:06 +0000</created>
                <updated>Fri, 28 Dec 2012 14:23:33 +0000</updated>
                    <resolved>Fri, 28 Dec 2012 08:50:02 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19187" author="beberlei" created="Fri, 28 Dec 2012 08:50:02 +0000"  >&lt;p&gt;It is possible already, when you have a logger that has access to the connection again. MasterSlaveConnection#isConnectedToMaster() can be used to check. Since we don&apos;t provide any useful loggers for production anyways this is up to your own logger.&lt;/p&gt;</comment>
                    <comment id="19191" author="anandagra" created="Fri, 28 Dec 2012 14:23:33 +0000"  >&lt;p&gt;thanks Eberlei, when using SQLLogger I donot get much information other than the query and params etc, I am using DebugStack or willing to extend it but Connection objects looks like they donot send much info, is there a way this could be achieved&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-400] can&apos;t add primary key to mysql table after the table is created</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-400</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;A table in this application had no primary keys. I created an entity&lt;br/&gt;
so i could attempt to use the doctrine:schema:update command to fix it up.&lt;/p&gt;

&lt;p&gt;When i attempted to add this:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;@ORM\Id&lt;/li&gt;
	&lt;li&gt;@ORM\GeneratedValue(strategy=&quot;NONE&quot;)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;to this:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@ORM\Column(name=&quot;session_id&quot;, type=&quot;string&quot;, length=128,&lt;br/&gt;
nullable=false)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;it generates SQL like this:&lt;/p&gt;
 &lt;blockquote&gt;
&lt;p&gt;ALTER TABLE whos_online DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (session_id);&lt;br/&gt;
ALTER TABLE whos_online CHANGE ip_address ip_address VARCHAR(45) NOT NULL, CHANGE host_address host_address VARCHAR(512) NOT NULL;&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;and says this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;  An exception occurred while executing &apos;ALTER TABLE whos_online DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (session_id  );                                                     &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to  &lt;br/&gt;
   your MySQL server version for the right syntax to use near &apos;primary (session_id)&apos; at line 1  &lt;/p&gt;&lt;/blockquote&gt; </description>
                <environment></environment>
            <key id="14327">DBAL-400</key>
            <summary>can&apos;t add primary key to mysql table after the table is created</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="jrobeson">John Robeson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Dec 2012 06:59:04 +0000</created>
                <updated>Thu, 20 Dec 2012 07:08:06 +0000</updated>
                                                                    <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-399] [GH-237] Do not treat assignment operator as a parameter DBAL-398</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-399</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of roverwolf:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/237&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/237&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;A native (mysql) query should be able to use the assignment operator := but currently the SQLParserUtils method treats that as a missing parameter.&lt;/p&gt;

&lt;p&gt;The patch solves the issue, but it looks like a higher-level fix might be desired that also handles the regular expression better.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14323">DBAL-399</key>
            <summary>[GH-237] Do not treat assignment operator as a parameter DBAL-398</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 18 Dec 2012 20:35:30 +0000</created>
                <updated>Sat, 22 Dec 2012 11:35:14 +0000</updated>
                    <resolved>Sat, 22 Dec 2012 11:35:14 +0000</resolved>
                                            <fixVersion>2.3.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19157" author="dward" created="Tue, 18 Dec 2012 20:46:11 +0000"  >&lt;p&gt;Noting that this auto-generated issue duplicates &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-398&quot; title=&quot;Native query does not allow mysql assignment operator :=&quot;&gt;&lt;del&gt;DBAL-398&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19168" author="beberlei" created="Sat, 22 Dec 2012 11:35:06 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-237&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/237&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/237&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-398] Native query does not allow mysql assignment operator :=</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-398</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When trying to use the mysql assignment operator in a native query one gets an exception as SqlParserUtils does not qualify the character after the : as being part of a valid parameter value.&lt;/p&gt;

&lt;p&gt;Undefined index: in vendor/doctrine/dbal/lib/Doctrine/DBAL/SQLParserUtils.php line 156 (uncaught exception)&lt;/p&gt;


&lt;p&gt;A simple example is&lt;br/&gt;
$rsm = new ResultSetMapping();&lt;br/&gt;
$rsm-&amp;gt;addScalarResult(&apos;rank&apos;, &apos;rank&apos;);&lt;br/&gt;
$qry = $em-&amp;gt;createNativeQuery(&quot;&lt;br/&gt;
  SELECT (@rank := 1) AS rank&lt;br/&gt;
&quot;);&lt;br/&gt;
$result = $qry-&amp;gt;getResult(Query::HYDRATE_ARRAY);&lt;/p&gt;


&lt;p&gt;Or a more complicated example is (similar to actual use):&lt;/p&gt;

&lt;p&gt;$rsm = new ResultSetMapping();&lt;br/&gt;
$rsm-&amp;gt;addScalarResult(&apos;rank&apos;, &apos;rank&apos;);&lt;br/&gt;
$qry = $em-&amp;gt;createNativeQuery(&quot;&lt;br/&gt;
  SELECT rank FROM&lt;br/&gt;
    (SELECT (@rank := @rank +1) AS rank FROM (SELECT @rank :=0) rnk2) rnk1&lt;br/&gt;
&quot;);&lt;br/&gt;
$result = $qry-&amp;gt;getResult(Query::HYDRATE_ARRAY);&lt;/p&gt;


&lt;p&gt;I have attached quick-fix patch, but it looks like the getPlaceholderPositions method is wanting something better overall (due to the TODO comment in it).&lt;/p&gt;</description>
                <environment>Using Doctrine within Symfony 2.1.x</environment>
            <key id="14322">DBAL-398</key>
            <summary>Native query does not allow mysql assignment operator :=</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="dward">David Ward</reporter>
                        <labels>
                        <label>mysql</label>
                    </labels>
                <created>Tue, 18 Dec 2012 19:40:18 +0000</created>
                <updated>Thu, 3 Jan 2013 22:38:50 +0000</updated>
                    <resolved>Sat, 22 Dec 2012 13:24:23 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19156" author="dward" created="Tue, 18 Dec 2012 20:38:25 +0000"  >&lt;p&gt;A pull request has been added at &lt;a href=&quot;https://github.com/doctrine/dbal/pull/237&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/237&lt;/a&gt; which also has tests added.&lt;/p&gt;</comment>
                    <comment id="19213" author="brysonarmstrong" created="Thu, 3 Jan 2013 22:36:42 +0000"  >&lt;p&gt;I ran into this error and the fix caused other queries to have errors. &lt;/p&gt;

&lt;p&gt;I fixed it by changing line 57 in vendor/doctrine/dbal/lib/Doctrine/DBAL/SQLParserUtils.php:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($statement[$i] == $match &amp;amp;&amp;amp; !$inLiteral &amp;amp;&amp;amp; (!$isPositional &amp;amp;&amp;amp; $statement[$i+1] != &apos;=&apos;)) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;to: &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($statement[$i] == $match &amp;amp;&amp;amp; !$inLiteral &amp;amp;&amp;amp; ($isPositional || $statement[$i+1] != &apos;=&apos;)) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </comment>
                </comments>
                    <attachments>
                    <attachment id="11365" name="FixNativeAssignmentOperator.patch" size="613" author="dward" created="Tue, 18 Dec 2012 19:40:18 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-397] PostgreSQL - getDateTimeTzFormatString()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-397</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In: &lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;vendor/doctrine/dbal/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The function:&lt;/p&gt;

&lt;p&gt;    getDateTimeTzFormatString()&lt;/p&gt;

&lt;p&gt;only returns one datetime format:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;

    /**
     * {@inheritDoc}
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getDateTimeTzFormatString()
    {
        &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;Y-m-d H:i:sO&apos;; // original format
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;Y-m-d H:i:s.uO&apos;; &lt;span class=&quot;code-comment&quot;&gt;// format also needed
&lt;/span&gt;    }


&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Here is the error I get using the original format:&lt;/p&gt;

&lt;p&gt;    Could not convert database value &quot;2012-12-07 16:01:52.580789-05&quot; to Doctrine Type datetimetz. Expected format: Y-m-d H:i:s.O&lt;/p&gt;

&lt;p&gt;If I use this format: &apos;Y-m-d H:i:s.uO&apos; it works.&lt;/p&gt;




</description>
                <environment>PostgreSQL Database</environment>
            <key id="14308">DBAL-397</key>
            <summary>PostgreSQL - getDateTimeTzFormatString()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ppafford">Phill Pafford</reporter>
                        <labels>
                        <label>datetime</label>
                        <label>dql</label>
                        <label>format</label>
                        <label>postgresql</label>
                    </labels>
                <created>Wed, 12 Dec 2012 14:15:20 +0000</created>
                <updated>Mon, 17 Dec 2012 15:21:20 +0000</updated>
                    <resolved>Sun, 16 Dec 2012 11:36:02 +0000</resolved>
                            <version>2.3.1</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19126" author="ppafford" created="Wed, 12 Dec 2012 14:16:38 +0000"  >&lt;p&gt;adding html tags for code to display correctly &lt;/p&gt;</comment>
                    <comment id="19139" author="beberlei" created="Sun, 16 Dec 2012 11:36:02 +0000"  >&lt;p&gt;DateTimeTz is created as &apos;TIMESTAMP(0) WITH TIME ZONE&apos; on DBAL. If you have &apos;TIMESTAMP(6) WITH TIME ZONE&apos; instead, then you have to create your own datatye.&lt;/p&gt;</comment>
                    <comment id="19154" author="ppafford" created="Mon, 17 Dec 2012 15:19:53 +0000"  >&lt;p&gt;Why would this be a new data type? I understand how to fix the problem with creating my own data type to handle the formatting issue and would even suggest just overriding the data type with &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;

        Type::overrideType(&apos;datetimetz&apos;, &apos;Doctrine\DBAL\Types\VarDateTimeType&apos;);
    Type::overrideType(&apos;datetime&apos;, &apos;Doctrine\DBAL\Types\VarDateTimeType&apos;);

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it&apos;s not a new data type, it&apos;s a formatting issue.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-396] [GH-236] DBAL-200 Missing docs for 1 parameter in Connection::update</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-396</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of posulliv:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/236&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/236&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Trivial addition of docs for 1 parameter that was missing in Connection::update. Resolves an open issue so figured it was worth a pull request.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14304">DBAL-396</key>
            <summary>[GH-236] DBAL-200 Missing docs for 1 parameter in Connection::update</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Dec 2012 15:41:10 +0000</created>
                <updated>Wed, 12 Dec 2012 13:34:39 +0000</updated>
                    <resolved>Wed, 12 Dec 2012 13:34:39 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19121" author="beberlei" created="Tue, 11 Dec 2012 16:41:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-236&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/236&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/236&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19124" author="fabio.bat.silva" created="Wed, 12 Dec 2012 13:34:39 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/74c7616132ad82420320e76fa49781ee2f6af532&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/74c7616132ad82420320e76fa49781ee2f6af532&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-395] [GH-235] Update links in Readme</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-395</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of joshuajabbour:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/235&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/235&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Just updating some broken and old links in the Readme file.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14286">DBAL-395</key>
            <summary>[GH-235] Update links in Readme</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Nov 2012 17:20:19 +0000</created>
                <updated>Mon, 3 Dec 2012 19:48:02 +0000</updated>
                    <resolved>Mon, 3 Dec 2012 19:48:02 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19097" author="beberlei" created="Fri, 30 Nov 2012 21:33:24 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-235&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/235&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/235&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19102" author="fabio.bat.silva" created="Mon, 3 Dec 2012 19:48:02 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/2e2336a6c1c3dd3897f9419df9675a5fb0a0edda&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/2e2336a6c1c3dd3897f9419df9675a5fb0a0edda&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-394] Unsigned integers are not respected by the schema tool for assocations</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-394</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Before commenting, I&apos;ve done so much debugging and searching into this issue and if I missed something major, I apologise.&lt;/p&gt;

&lt;p&gt;From what I understand, the ORM doesn&apos;t care about unsigned. That&apos;s fair enough. That leaves it to DBAL to handle it.&lt;/p&gt;

&lt;p&gt;However, it&apos;s not possible to successfully use something like the following table without having the schema manager complain.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
CREATE TABLE `account` (
  `id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned NOT NULL AUTO_INCREMENT COMMENT &apos;(DC2Type:unsigned_integer)&apos;,
  `user_id` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(10) unsigned DEFAULT NULL COMMENT &apos;(DC2Type:unsigned_integer)&apos;,
  PRIMARY KEY (`id`),
  KEY `IDX_7D3656A461220EA6` (`user_id`)
) ENGINE=InnoDB
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In that code, I&apos;m using a custom type &quot;unsigned_integer&quot; that extends the DBAL integer type with this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
    {
        $fieldDeclaration[&apos;unsigned&apos;] = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $platform-&amp;gt;getIntegerTypeDeclarationSQL($fieldDeclaration);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reason for this is because the ORM won&apos;t map unsigned ints for me. Combined with this is an event listener for the class metadata. Something like this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    /**
     * Maps additional metadata.
     *
     * Specifically, &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; there exist an unsigned integer field, attach the
     * &lt;span class=&quot;code-quote&quot;&gt;&quot;unsigned&quot;&lt;/span&gt; option to it. This is required because the Doctrine ORM does
     * not &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; and we are using &lt;span class=&quot;code-quote&quot;&gt;&quot;UNSIGNED INT&quot;&lt;/span&gt;s in our MySQL columns.
     * Without &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;. the Doctrine Schema Tool will complain about column
     * differences.
     *
     * Note: there is no performance impact in doing &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; because the class
     * metadata should be cached after the first request.
     *
     * @param LoadClassMetadataEventArgs $eventArgs
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function loadClassMetadata(LoadClassMetadataEventArgs $eventArgs)
    {
        foreach ($eventArgs-&amp;gt;getClassMetadata()-&amp;gt;fieldMappings as &amp;amp;$mapping) {
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($mapping[&apos;type&apos;]) &amp;amp;&amp;amp; UnsignedIntegerType::UNSIGNED_INTEGER === $mapping[&apos;type&apos;]) {
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!isset($mapping[&apos;options&apos;])) {
                    $mapping[&apos;options&apos;] = array();
                }

                $mapping[&apos;options&apos;][&apos;unsigned&apos;] = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
            }
        }
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Now, in the example table above, the schema tool will honour the &quot;id&quot; column, however it won&apos;t honour the association join column no matter what I do. My attempts include adding an event listener for class meta data as above (basically tricking the ORM) and also adding an event listener for the schema events.&lt;/p&gt;

&lt;p&gt;The other day on GitHub there was a commit (&lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/a27be2fab61b1cfde4d2ecbc729a4a68816fca76&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/a27be2fab61b1cfde4d2ecbc729a4a68816fca76&lt;/a&gt;) to help with this, but it&apos;s still not all working.&lt;/p&gt;

&lt;p&gt;Also, comments and issues on the Jira tracker have said how there&apos;s legacy code related to &quot;unsigned&quot; and &quot;default&quot;, but I can&apos;t tell what&apos;s legacy and what&apos;s allowed, especially when there&apos;s a commit like that one above.&lt;/p&gt;

&lt;p&gt;By the way, I have found that the simple unsigned field mapping works. E.g.:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    fields:
        counter:
            type: integer
            column: counter
            options:
                unsigned: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;If it helps at all, here&apos;s the YAML mapping file for the above table/entity:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Account:
    type: entity
    table: account
    id:
        id:
            type: unsigned_integer
            generator:
                strategy: AUTO
    manyToOne:
        creator:
            targetEntity: User
            joinColumn:
                name: user_id
                referencedColumnName: id # Note: user table id is also unsigned_integer
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Is it possible to 1) fix this or 2) let me know if I&apos;m just doing something wrong?&lt;/p&gt;

&lt;p&gt;Note: as I said above, I know that Doctrine DBAL and ORM does not care so much for unsigned ints because of portability, etc. but it seems that because of that commit above (24 days ago), there&apos;s a half-implememented/legacy solution going on here.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Jon&lt;/p&gt;</description>
                <environment></environment>
            <key id="14284">DBAL-394</key>
            <summary>Unsigned integers are not respected by the schema tool for assocations</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jonathaningram">Jonathan Ingram</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Nov 2012 04:54:20 +0000</created>
                <updated>Fri, 3 May 2013 14:37:41 +0000</updated>
                    <resolved>Wed, 1 May 2013 18:45:46 +0000</resolved>
                            <version>2.3</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="20178" author="beberlei" created="Wed, 1 May 2013 18:45:46 +0000"  >&lt;p&gt;This was fixed in 657a54da&lt;/p&gt;</comment>
                    <comment id="20191" author="naelyth" created="Fri, 3 May 2013 07:24:32 +0000"  >&lt;p&gt;This was not fixed. We can use the option &quot;unsigned&quot; for the fields but not the id.&lt;/p&gt;

&lt;p&gt;If someone has a solution or if you can fix this, that would be really cool !&lt;/p&gt;</comment>
                    <comment id="20198" author="naelyth" created="Fri, 3 May 2013 14:37:41 +0000"  >&lt;p&gt;After some research with a co-worker we&apos;ve found a solution to our little problem.&lt;/p&gt;

&lt;p&gt;To fix this you just have to add these lines in the YamlDriver (Doctrine/ORM/Mapping/Driver/YamlDriver.php) in the function &quot;loadMetadataForClass&quot;, line 265 in the 2.3.3 version of Doctrine ORM :&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;if (isset($idElement[&apos;options&apos;])) {
   $mapping[&apos;options&apos;] = $idElement[&apos;options&apos;];
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Just before the :&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;$metadata-&amp;gt;mapField($mapping);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;And that an example of schema :&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;Entities\Test:
  type: entity
  table: Test
  id:
    id:
      type: integer
      options:
        unsigned: true
      generator:
        strategy: AUTO
  fields:
    testField:
      type: smallint
      options:
        unsigned: true
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With this, the id can be unsigned without using special type of column, and yes just with this little if &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
It has been tested in more complexes schemas and all is going well.&lt;/p&gt;

&lt;p&gt;In fact, maybe it could be interesting to use the function &quot;columnToArray&quot; like it&apos;s used for the other fields.&lt;br/&gt;
In the two cases you must care about what you put in your &quot;options&quot; section.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-393] PEAR install broken</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-393</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using PEAR install, the &quot;doctrine-dbal&quot; command does not work.&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;&lt;b&gt;$ pear install doctrine/DoctrineDBAL&lt;/b&gt;&lt;br/&gt;
downloading DoctrineDBAL-2.3.0.tgz ...&lt;br/&gt;
Starting to download DoctrineDBAL-2.3.0.tgz (143,996 bytes)&lt;br/&gt;
................................done: 143,996 bytes&lt;br/&gt;
install ok: channel://pear.doctrine-project.org/DoctrineDBAL-2.3.0&lt;/p&gt;

&lt;p&gt;&lt;b&gt;$ which doctrine-dbal&lt;/b&gt;&lt;br/&gt;
/usr/bin/doctrine-dbal&lt;/p&gt;

&lt;p&gt;&lt;b&gt;$ /usr/bin/doctrine-dbal&lt;/b&gt;&lt;br/&gt;
PHP Warning:  require(Doctrine/Symfony/Component/Console/Helper/HelperSet.php): failed to open stream: No such file or directory in /usr/share/pear/Doctrine/Common/ClassLoader.php on line 164&lt;br/&gt;
PHP Stack trace:&lt;br/&gt;
PHP   1. {main}() /usr/bin/doctrine-dbal:0&lt;br/&gt;
PHP   2. include() /usr/bin/doctrine-dbal:4&lt;br/&gt;
PHP   3. Doctrine\Common\ClassLoader-&amp;gt;loadClass() /usr/bin/doctrine-dbal:0&lt;br/&gt;
PHP Fatal error:  require(): Failed opening required &apos;Doctrine/Symfony/Component/Console/Helper/HelperSet.php&apos; (include_path=&apos;.:/usr/share/pear:/usr/share/php&apos;) in /usr/share/pear/Doctrine/Common/ClassLoader.php on line 164&lt;br/&gt;
PHP Stack trace:&lt;br/&gt;
PHP   1. {main}() /usr/bin/doctrine-dbal:0&lt;br/&gt;
PHP   2. include() /usr/bin/doctrine-dbal:4&lt;br/&gt;
PHP   3. Doctrine\Common\ClassLoader-&amp;gt;loadClass() /usr/bin/doctrine-dbal:0&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;The issue can be fixed by updating file &lt;b&gt;&lt;tt&gt;doctrine-dbal.php&lt;/tt&gt;&lt;/b&gt; from:&lt;br/&gt;
&lt;font color=&quot;red&quot;&gt;&lt;tt&gt;$classLoader = new \Doctrine\Common\ClassLoader(&apos;Symfony&apos;, &apos;Doctrine&apos;);&lt;/tt&gt;&lt;/font&gt;&lt;br/&gt;
to:&lt;br/&gt;
&lt;font color=&quot;green&quot;&gt;&lt;tt&gt;$classLoader = new \Doctrine\Common\ClassLoader(&apos;Symfony&apos;);&lt;/tt&gt;&lt;/font&gt;&lt;br/&gt;
so the Symfony Console package can be used like the PEAR package.xml requires.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;NOTE: I did not want to submit a GitHub pull request for this because it seems like it would break your Git and Composer installs&lt;/b&gt;&lt;/p&gt;</description>
                <environment>PEAR, Fedora, RHEL</environment>
            <key id="14267">DBAL-393</key>
            <summary>PEAR install broken</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="siwinski">Shawn Iwinski</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Nov 2012 03:44:09 +0000</created>
                <updated>Sun, 25 Nov 2012 12:05:50 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 12:05:50 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-392] Moving entity relationship doesn&apos;t move foreign key in mysql table</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-392</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This is the copy of bug &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2161&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2161&lt;/a&gt; that I&apos;ve moved here since it&apos;s related to the dbal and not the orm.&lt;/p&gt;

&lt;p&gt;Basically when you update just the foreign table of a foreign key the constrain doesn&apos;t gets updated.&lt;/p&gt;</description>
                <environment>Mac OSX, mysql 5.5.28, php 5.4.8</environment>
            <key id="14266">DBAL-392</key>
            <summary>Moving entity relationship doesn&apos;t move foreign key in mysql table</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="alex88">Alessandro Tagliapietra</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Nov 2012 00:13:11 +0000</created>
                <updated>Sun, 23 Dec 2012 20:31:22 +0000</updated>
                    <resolved>Sun, 23 Dec 2012 20:31:22 +0000</resolved>
                                            <fixVersion>2.3.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19044" author="beberlei" created="Sat, 24 Nov 2012 00:24:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-521&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/521&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/521&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19066" author="alex88" created="Mon, 26 Nov 2012 20:01:48 +0000"  >&lt;p&gt;The related pull request is &lt;a href=&quot;https://github.com/doctrine/dbal/pull/234&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/234&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                                <inwardlinks description="is referenced by">
                            <issuelink>
            <issuekey id="14257">DDC-2161</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-391] [GH-233] convertToPHPValue should match convertToDatabaseValue</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-391</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of zyjohn:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/233&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/233&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;convertToPHPValue return resource which is not match default convertToDatabaseValue that not make and change. Change to return content of the resource.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14265">DBAL-391</key>
            <summary>[GH-233] convertToPHPValue should match convertToDatabaseValue</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Nov 2012 15:46:34 +0000</created>
                <updated>Mon, 26 Nov 2012 16:40:50 +0000</updated>
                    <resolved>Fri, 23 Nov 2012 15:55:57 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19039" author="ocramius" created="Fri, 23 Nov 2012 15:55:57 +0000"  >&lt;p&gt;Blob field types should be converted to resources:&lt;br/&gt;
&lt;a href=&quot;https://travis-ci.org/doctrine/dbal/jobs/3329007/#L77&quot; class=&quot;external-link&quot;&gt;https://travis-ci.org/doctrine/dbal/jobs/3329007/#L77&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19065" author="beberlei" created="Mon, 26 Nov 2012 16:40:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-233&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/233&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/233&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-390] Wrap SQL for Selects in an Object for Metadata?</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-390</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="14264">DBAL-390</key>
            <summary>Wrap SQL for Selects in an Object for Metadata?</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Nov 2012 12:48:05 +0000</created>
                <updated>Fri, 23 Nov 2012 12:48:05 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-389] [GH-232] Problem with sequence names, PostgreSQL and MixedCased schemas</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-389</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of ajgarlag:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/232&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/232&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;I&apos;&apos;m having problems with a doctrine migration in a pgsql database that has a mixed case schema name.&lt;/p&gt;

&lt;p&gt;After some investigation I&apos;ve found the origin of the problem: when the schema manager is going to list sequences it executes a SQL statement to find the minimun sequence value.&lt;/p&gt;

&lt;p&gt;This SQL statement is not quoting the sequence name, so the SQL fails with mixed cased schemas.&lt;/p&gt;

&lt;p&gt;This trivial commit resolves this problem. I think it could be backported to stable versions of DBAL.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14255">DBAL-389</key>
            <summary>[GH-232] Problem with sequence names, PostgreSQL and MixedCased schemas</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Nov 2012 09:44:58 +0000</created>
                <updated>Thu, 22 Nov 2012 15:46:51 +0000</updated>
                    <resolved>Thu, 22 Nov 2012 15:46:51 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19027" author="beberlei" created="Thu, 22 Nov 2012 15:38:47 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-232&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/232&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/232&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-388] [GH-231] Update lib/Doctrine/DBAL/Types/BlobType.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-388</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mikemeier:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/231&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/231&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;If allow_url_fopen isnt enabled, fopen will return false.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14254">DBAL-388</key>
            <summary>[GH-231] Update lib/Doctrine/DBAL/Types/BlobType.php</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Nov 2012 19:04:09 +0000</created>
                <updated>Thu, 9 May 2013 14:05:04 +0000</updated>
                    <resolved>Thu, 9 May 2013 14:05:04 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20242" author="doctrinebot" created="Thu, 9 May 2013 14:03:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-231&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/231&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/231&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-387] [GH-230] Fixed SQL Server Platform NULL declaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-387</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Lusitanian:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/230&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/230&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Per previous pull request but based on master. SQL server does not use &apos;DEFAULT NULL&apos; for marking columns as nullable, only &apos;NULL&apos;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14253">DBAL-387</key>
            <summary>[GH-230] Fixed SQL Server Platform NULL declaration</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Nov 2012 17:35:46 +0000</created>
                <updated>Sun, 25 Nov 2012 18:07:30 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 18:07:30 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19059" author="beberlei" created="Sun, 25 Nov 2012 17:58:46 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-230&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/230&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/230&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-386] [GH-229] Fixed SQL Server Platform NULL declaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-386</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Lusitanian:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/229&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/229&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;In SQL Server, &apos;DEFAULT NULL&apos; is invalid for allowing a column to be null &amp;#8211; the &apos;NULL&apos; keyword is the only required indicator of nullability.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14252">DBAL-386</key>
            <summary>[GH-229] Fixed SQL Server Platform NULL declaration</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Nov 2012 16:51:56 +0000</created>
                <updated>Sun, 25 Nov 2012 12:01:19 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 12:01:19 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19019" author="beberlei" created="Wed, 21 Nov 2012 17:14:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-229&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/229&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/229&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-385] Null need set to NULL in array type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-385</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When use Array type and NULL value&lt;/p&gt;

&lt;p&gt;set null give in database &apos;N;&apos; (serialise(null))&lt;br/&gt;
need NULL &lt;/p&gt;</description>
                <environment></environment>
            <key id="14238">DBAL-385</key>
            <summary>Null need set to NULL in array type</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="ivan1986">Ivan Borzenkov</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Nov 2012 11:14:33 +0000</created>
                <updated>Sun, 25 Nov 2012 15:44:45 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 12:16:32 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19051" author="beberlei" created="Sun, 25 Nov 2012 12:16:32 +0000"  >&lt;p&gt;This would be a BC Break and cannot be done anymore. You can add your own array type that has this behavior.&lt;/p&gt;</comment>
                    <comment id="19055" author="ivan1986" created="Sun, 25 Nov 2012 13:09:23 +0000"  >&lt;p&gt;It will not be a loss of backward compatibility.&lt;br/&gt;
Now if we have an empty array, that is stored serialized NULL, but the default value for NULL instead of N;&lt;br/&gt;
On the part of php will not be any differences - the inverse transform is the same, from the database, we combined the two into a single value, the more accurate in terms of DB&lt;/p&gt;</comment>
                    <comment id="19056" author="beberlei" created="Sun, 25 Nov 2012 15:08:59 +0000"  >&lt;p&gt;The field might be NOT NULL, that is what might break BC.&lt;/p&gt;</comment>
                    <comment id="19057" author="ivan1986" created="Sun, 25 Nov 2012 15:31:56 +0000"  >&lt;p&gt;and if field is null?&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt; 

/**
 * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; array $yandexReg
 *
 * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;yandexReg&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;array&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $yandexReg;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; </comment>
                    <comment id="19058" author="beberlei" created="Sun, 25 Nov 2012 15:44:45 +0000"  >&lt;p&gt;Well in this case it works obviously, however the Type API doesn&apos;t have access to that information. Thats why I meant you should build your own array type and override the internal implementation. This is explained in the Mapping Fields Document of ORM and in the Type Documentation of DBAL.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-384] Missing TIMESTAMP support</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-384</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Here&apos;s a fix to add support for a TIMESTAMP field in the database.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14230">DBAL-384</key>
            <summary>Missing TIMESTAMP support</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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="2">Won&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="polichism">Harrie Bos</reporter>
                        <labels>
                    </labels>
                <created>Fri, 16 Nov 2012 09:35:16 +0000</created>
                <updated>Sat, 27 Apr 2013 07:49:59 +0000</updated>
                    <resolved>Sat, 27 Apr 2013 07:49:59 +0000</resolved>
                            <version>2.0</version>
                <version>2.1</version>
                <version>2.2</version>
                <version>2.3</version>
                                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19005" author="dlsniper" created="Sun, 18 Nov 2012 17:47:43 +0000"  >&lt;p&gt;@Benjamin should I create a PR for this on GH?&lt;/p&gt;</comment>
                    <comment id="19006" author="polichism" created="Sun, 18 Nov 2012 18:24:31 +0000"  >&lt;p&gt;I think it should be fixed in one of the next releases&lt;/p&gt;</comment>
                    <comment id="20111" author="frankc" created="Fri, 26 Apr 2013 11:38:21 +0000"  >&lt;p&gt;this aint working.. further more i used... &lt;a href=&quot;http://www.doctrine-project.org/jira/secure/attachment/11350/timestamp.patch&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/secure/attachment/11350/timestamp.patch&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;which includes a bit more.. like the actual timestamp.php&lt;/p&gt;

&lt;p&gt;but still getting error &lt;/p&gt;

&lt;p&gt;Could not convert database value &quot;0000000016E2BCF7&quot; to Doctrine Type timestamp. Expected format: Y-m-d H:i:s &lt;/p&gt;

&lt;p&gt;500 Internal Server Error - ConversionException &lt;/p&gt;</comment>
                    <comment id="20114" author="beberlei" created="Sat, 27 Apr 2013 07:49:59 +0000"  >&lt;p&gt;Please add this as a custom type to your own project if you need it, this is not going to be part of DBAL Core&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11350" name="timestamp.patch" size="4254" author="polichism" created="Fri, 16 Nov 2012 09:35:16 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-383] [GH-228] fixed typo for enabling DEFERRED support</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-383</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of lsmith77:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/228&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/228&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;old spelling still supported for BC&lt;/p&gt;</description>
                <environment></environment>
            <key id="14228">DBAL-383</key>
            <summary>[GH-228] fixed typo for enabling DEFERRED support</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 15 Nov 2012 10:32:34 +0000</created>
                <updated>Thu, 22 Nov 2012 17:51:44 +0000</updated>
                    <resolved>Thu, 22 Nov 2012 17:51:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19000" author="beberlei" created="Fri, 16 Nov 2012 13:28:53 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-228&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/228&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/228&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19029" author="fabio.bat.silva" created="Thu, 22 Nov 2012 17:51:44 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/687643741c8a1c444d35b4e319b59bb15e3730e3&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/687643741c8a1c444d35b4e319b59bb15e3730e3&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-382] add foreign key support to the SQLite platform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-382</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;SQLite supports foreign keys since version 3.6.19:&lt;br/&gt;
&lt;a href=&quot;http://www.sqlite.org/foreignkeys.html&quot; class=&quot;external-link&quot;&gt;http://www.sqlite.org/foreignkeys.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;note when implementing this it also makes sense to look into fixing this typo (likely keeping the current version in place for BC):&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php#L325&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/PostgreSqlPlatform.php#L325&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14223">DBAL-382</key>
            <summary>add foreign key support to the SQLite platform</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Nov 2012 14:07:44 +0000</created>
                <updated>Mon, 7 Jan 2013 10:50:01 +0000</updated>
                    <resolved>Thu, 15 Nov 2012 19:07:03 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18989" author="lsmith" created="Thu, 15 Nov 2012 10:32:21 +0000"  >&lt;p&gt;initial work:&lt;br/&gt;
&lt;a href=&quot;https://github.com/lsmith77/dbal/compare/sqlite_foreign_key_support&quot; class=&quot;external-link&quot;&gt;https://github.com/lsmith77/dbal/compare/sqlite_foreign_key_support&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18990" author="lsmith" created="Thu, 15 Nov 2012 10:32:51 +0000"  >&lt;p&gt;typo in the PostgreSQL driver is fixed here:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/228&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/228&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18993" author="lsmith" created="Thu, 15 Nov 2012 19:07:03 +0000"  >&lt;p&gt;closing in favor of &lt;a href=&quot;http://doctrine-project.org/jira/browse/DBAL-383&quot; class=&quot;external-link&quot;&gt;http://doctrine-project.org/jira/browse/DBAL-383&lt;/a&gt; and &lt;a href=&quot;http://doctrine-project.org/jira/browse/DBAL-370&quot; class=&quot;external-link&quot;&gt;http://doctrine-project.org/jira/browse/DBAL-370&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19001" author="beberlei" created="Fri, 16 Nov 2012 13:28:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-228&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/228&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/228&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19206" author="beberlei" created="Wed, 2 Jan 2013 13:27:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-242&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/242&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/242&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19246" author="beberlei" created="Mon, 7 Jan 2013 10:50:01 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-242&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/242&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/242&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-381] [GH-227] MySql TEXT and BLOB type declarations</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-381</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jappie:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/227&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/227&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fixed maximum length of MySql TEXT type declaration, this should be 65535 (2 ^ 16 - 1) in stead of 65532.&lt;/p&gt;

&lt;p&gt;Added support for TINYBLOB, BLOB, MEDIUMBLOB and LONGBLOB based on the length of the field, the same way as the clob type declarations are determined.&lt;/p&gt;

&lt;p&gt;Added tests to prevent regression.&lt;/p&gt;</description>
                <environment>OS X 10.8.2, PHP 5.3.18, Nginx 1.2.4 (php through FPM) </environment>
            <key id="14221">DBAL-381</key>
            <summary>[GH-227] MySql TEXT and BLOB type declarations</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="asm89">Alexander</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>blob</label>
                        <label>clob,</label>
                    </labels>
                <created>Wed, 14 Nov 2012 10:48:50 +0000</created>
                <updated>Sat, 9 Feb 2013 23:33:19 +0000</updated>
                    <resolved>Sat, 9 Feb 2013 23:33:19 +0000</resolved>
                            <version>2.0</version>
                <version>2.1</version>
                <version>2.2</version>
                <version>2.3</version>
                                <fixVersion>2.4</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-380] [GH-226] Fix for decimal fields with precision.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-380</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of bobdenotter:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/226&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/226&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;These fields have no spaces in the length, so the &apos;explode&apos; fails. Omit the space from the code, and it works. Even if there &lt;em&gt;were&lt;/em&gt; a space, it would still work, because of the `array_map(&quot;trim&quot;, ..)`.&lt;/p&gt;


&lt;p&gt;    arr(7) &lt;br/&gt;
    [&lt;br/&gt;
        &quot;cid&quot;        =&amp;gt; str(2) &quot;11&quot;&lt;br/&gt;
        &quot;name&quot;       =&amp;gt; str(6) &quot;nummer&quot;&lt;br/&gt;
        &quot;type&quot;       =&amp;gt; str(7) &quot;DECIMAL&quot;&lt;br/&gt;
        &quot;notnull&quot;    =&amp;gt; str(1) &quot;1&quot;&lt;br/&gt;
        &quot;dflt_value&quot; =&amp;gt; str(1) &quot;0&quot;&lt;br/&gt;
        &quot;pk&quot;         =&amp;gt; str(1) &quot;0&quot;&lt;br/&gt;
        &quot;length&quot;     =&amp;gt; str(4) &quot;18,9&quot;&lt;br/&gt;
    ]&lt;/p&gt;</description>
                <environment></environment>
            <key id="14216">DBAL-380</key>
            <summary>[GH-226] Fix for decimal fields with precision.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 12 Nov 2012 13:35:42 +0000</created>
                <updated>Sun, 23 Dec 2012 19:50:31 +0000</updated>
                    <resolved>Sun, 23 Dec 2012 19:50:31 +0000</resolved>
                                            <fixVersion>2.3.2</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19112" author="bobdenotter" created="Fri, 7 Dec 2012 10:16:18 +0000"  >&lt;p&gt;&lt;b&gt;bump&lt;/b&gt; &lt;/p&gt;

&lt;p&gt;Not trying to be annoying, but I think this is an issue, that can be resolved quickly, without any consequences for other functionality. If it could be squeezed into 2.3.2 or 2.4, i&apos;d be very grateful. &lt;/p&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-379] [GH-225] Fix SQLServerPlatform adds unique constraint to ADD PRIMARY KEY statement</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-379</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of CraigMason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/225&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/225&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Currently when executing an ALTER TABLE statement with SQL Server, the query will be:&lt;/p&gt;

&lt;p&gt;This will happen when adding primary keys via ALTER TABLE.&lt;/p&gt;

&lt;p&gt;`ALTER TABLE foo ADD PRIMARY KEY (id) WHERE id IS NOT NULL`&lt;/p&gt;

&lt;p&gt;should be&lt;/p&gt;

&lt;p&gt;`ALTER TABLE foo ADD PRIMARY KEY (id)`&lt;/p&gt;</description>
                <environment></environment>
            <key id="14209">DBAL-379</key>
            <summary>[GH-225] Fix SQLServerPlatform adds unique constraint to ADD PRIMARY KEY statement</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 9 Nov 2012 16:34:56 +0000</created>
                <updated>Mon, 12 Nov 2012 10:41:39 +0000</updated>
                    <resolved>Mon, 12 Nov 2012 10:41:39 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-378] [GH-224] default table option not working</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-378</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Steffen-99:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/224&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/224&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Fixing issue, key name corrected&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="14205">DBAL-378</key>
            <summary>[GH-224] default table option not working</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Nov 2012 10:12:23 +0000</created>
                <updated>Fri, 9 Nov 2012 21:34:28 +0000</updated>
                    <resolved>Fri, 9 Nov 2012 21:34:28 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18959" author="beberlei" created="Thu, 8 Nov 2012 14:51:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-224&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/224&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/224&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-377] Rename Table foreignkey not changed</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-377</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;if i want to change a tablename the foreign key doesnt change and i get an error&lt;/p&gt;

&lt;p&gt;	$config = new Doctrine\DBAL\Configuration();&lt;br/&gt;
	$conn = Doctrine\DBAL\DriverManager::getConnection($conn, $config);&lt;br/&gt;
	$sm = $conn-&amp;gt;getSchemaManager();&lt;br/&gt;
	foreach ($sm-&amp;gt;listTables() as $table) {&lt;br/&gt;
		$fromSchema = $sm-&amp;gt;createSchema();&lt;br/&gt;
		$toSchema =  clone $fromSchema;&lt;br/&gt;
		$toSchema-&amp;gt;renameTable($table-&amp;gt;getName(), str_replace(&quot;_new&quot;, &quot;&quot;, $table-&amp;gt;getName()));&lt;br/&gt;
		$sql = $fromSchema-&amp;gt;getMigrateToSql($toSchema, $conn-&amp;gt;getDatabasePlatform());&lt;br/&gt;
		foreach ($sql as $query) &lt;/p&gt;
{
			$conn-&amp;gt;query($query);
		}

&lt;p&gt;	}&lt;/p&gt;

&lt;p&gt;##################################################&lt;br/&gt;
CREATE TABLE doc_consultant_practice (consultant_id INT NOT NULL, practice_id INT NOT NULL, INDEX IDX_60C69DE344F779A2 (consultant_id), INDEX IDX_60C69DE3ED33821 (practice_id), PRIMARY KEY(consultant_id, practice_id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB&lt;br/&gt;
ALTER TABLE doc_consultant_practice ADD CONSTRAINT FK_60C69DE3ED33821 FOREIGN KEY (practice_id) REFERENCES doc_xml_practice_new (id) ON DELETE CASCADE&lt;br/&gt;
ALTER TABLE doc_consultant_practice ADD CONSTRAINT FK_60C69DE344F779A2 FOREIGN KEY (consultant_id) REFERENCES doc_xml_consultant_new (id) ON DELETE CASCADE&lt;br/&gt;
DROP TABLE doc_consultant_practice_new&lt;br/&gt;
##################################################&lt;br/&gt;
Fatal error: Uncaught exception &apos;PDOException&apos; with message &apos;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S01&amp;#93;&lt;/span&gt;: Base table or view already exists: 1050 Table &apos;doc_xml_consultant_new&apos; already exists&apos; in /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/ORM/Tools/ToolsException.php on line 33&lt;/p&gt;

&lt;p&gt;PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S01&amp;#93;&lt;/span&gt;: Base table or view already exists: 1050 Table &apos;doc_xml_consultant_new&apos; already exists in /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/DBAL/Connection.php on line 646&lt;/p&gt;

&lt;p&gt;Call Stack:&lt;br/&gt;
    0.0178     766208   1. &lt;/p&gt;
{main}() /PATH/TO/jobs/import.php:0&lt;br/&gt;
    0.0430     771936   2. require_once(&apos;/PATH/TO/jobs/config.php&apos;) /PATH/TO/jobs/import.php:7&lt;br/&gt;
    0.0528     775448   3. require_once(&apos;/PATH/TO/jobs/bootstrap.php&apos;) /PATH/TO/jobs/config.php:3&lt;br/&gt;
    0.0623     812680   4. require_once(&apos;/PATH/TO/jobs/bootstrap_doctrine.php&apos;) /PATH/TO/jobs/bootstrap.php:5&lt;br/&gt;
   16.7866   16304048   5. Doctrine\ORM\Tools\SchemaTool-&amp;gt;createSchema() /PATH/TO/jobs/bootstrap_doctrine.php:70&lt;br/&gt;
   16.8798   16562624   6. Doctrine\DBAL\Connection-&amp;gt;executeQuery() /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/ORM/Tools/SchemaTool.php:90&lt;br/&gt;
   16.8804   16564080   7. PDO-&amp;gt;query() /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/DBAL/Connection.php:646&lt;br/&gt;
&lt;br/&gt;
Doctrine\DBAL\DBALException: An exception occurred while executing &apos;CREATE TABLE doc_xml_consultant_new (id INT NOT NULL, name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, lastCommaFirstName VARCHAR(255) DEFAULT NULL, education LONGTEXT DEFAULT NULL, workHistory LONGTEXT DEFAULT NULL, imageStandard VARCHAR(255) DEFAULT NULL, imageWide VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB&apos;:&lt;br/&gt;
&lt;br/&gt;
SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S01&amp;#93;&lt;/span&gt;: Base table or view already exists: 1050 Table &apos;doc_xml_consultant_new&apos; already exists in /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/DBAL/DBALException.php on line 47&lt;br/&gt;
&lt;br/&gt;
Call Stack:&lt;br/&gt;
    0.0178     766208   1. {main}
&lt;p&gt;() /PATH/TO/jobs/import.php:0&lt;br/&gt;
    0.0430     771936   2. require_once(&apos;/PATH/TO/jobs/config.php&apos;) /PATH/TO/jobs/import.php:7&lt;br/&gt;
    0.0528     775448   3. require_once(&apos;/PATH/TO/jobs/bootstrap.php&apos;) /PATH/TO/jobs/config.php:3&lt;br/&gt;
    0.0623     812680   4. require_once(&apos;/PATH/TO/jobs/bootstrap_doctrine.php&apos;) /PATH/TO/jobs/bootstrap.php:5&lt;br/&gt;
   16.7866   16304048   5. Doctrine\ORM\Tools\SchemaTool-&amp;gt;createSchema() /PATH/TO/jobs/bootstrap_doctrine.php:70&lt;br/&gt;
   16.8798   16562624   6. Doctrine\DBAL\Connection-&amp;gt;executeQuery() /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/ORM/Tools/SchemaTool.php:90&lt;/p&gt;

&lt;p&gt;Doctrine\ORM\Tools\ToolsException: Schema-Tool failed with Error &apos;An exception occurred while executing &apos;CREATE TABLE doc_xml_consultant_new (id INT NOT NULL, name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, lastCommaFirstName VARCHAR(255) DEFAULT NULL, education LONGTEXT DEFAULT NULL, workHistory LONGTEXT DEFAULT NULL, imageStandard VARCHAR(255) DEFAULT NULL, imageWide VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB&apos;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S01&amp;#93;&lt;/span&gt;: Base table or view already exists: 1050 Table &apos;doc_xml_consultant_new&apos; already exists&apos; while executing DDL: CREATE TABLE doc_xml_consultant_new (id INT NOT NULL, name VARCHAR(255) DEFAULT NULL, email VARCHAR(255) DEFAULT NULL, lastCommaFirstName VARCHAR(255) DEFAULT NULL, education LONGTEXT DEFAULT NULL, workHistory LONGTEXT DEFAULT NULL, imageStandard VARCHAR(255) DEFAULT NULL, imageWide VARCHAR(255) DEFAULT NULL, PRIMARY KEY(id)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB in /Applications/MAMP/bin/php/php5.3.14/lib/php/Doctrine/ORM/Tools/ToolsException.php on line 33&lt;/p&gt;

&lt;p&gt;Call Stack:&lt;br/&gt;
    0.0178     766208   1. &lt;/p&gt;
{main}
&lt;p&gt;() /PATH/TO/jobs/import.php:0&lt;br/&gt;
    0.0430     771936   2. require_once(&apos;/PATH/TO/jobs/config.php&apos;) /PATH/TO/jobs/import.php:7&lt;br/&gt;
    0.0528     775448   3. require_once(&apos;/PATH/TO/jobs/bootstrap.php&apos;) /PATH/TO/jobs/config.php:3&lt;br/&gt;
    0.0623     812680   4. require_once(&apos;/PATH/TO/jobs/bootstrap_doctrine.php&apos;) /PATH/TO/jobs/bootstrap.php:5&lt;br/&gt;
   16.7866   16304048   5. Doctrine\ORM\Tools\SchemaTool-&amp;gt;createSchema() /PATH/TO/jobs/bootstrap_doctrine.php:70&lt;/p&gt;</description>
                <environment></environment>
            <key id="14203">DBAL-377</key>
            <summary>Rename Table foreignkey not changed</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="reggaepanda">Manuel</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Nov 2012 13:32:36 +0000</created>
                <updated>Wed, 21 Nov 2012 15:08:08 +0000</updated>
                                    <version>2.3</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18955" author="reggaepanda" created="Wed, 7 Nov 2012 14:39:09 +0000"  >&lt;p&gt;now i find a way to rename the table&lt;br/&gt;
foreach ($sm-&amp;gt;listTableForeignKeys($table-&amp;gt;getName()) as $foreignKey) &lt;/p&gt;
{
 $sm-&amp;gt;dropForeignKey($foreignKey-&amp;gt;getName(), $table-&amp;gt;getName());
}

&lt;p&gt;and then rename.&lt;br/&gt;
but it is right that the rows doesnt copy?&lt;br/&gt;
or is there a was that i can do it?&lt;/p&gt;

&lt;p&gt;else this would be a good feature&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-376] [GH-223] Include customSchemaOptions in column mapping</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-376</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of djlambert:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/223&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/223&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR adds the customSchemaOptions in the array passed to the type.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14193">DBAL-376</key>
            <summary>[GH-223] Include customSchemaOptions in column mapping</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Nov 2012 02:28:29 +0000</created>
                <updated>Mon, 14 Jan 2013 15:38:44 +0000</updated>
                    <resolved>Mon, 14 Jan 2013 15:38:44 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19317" author="ocramius" created="Mon, 14 Jan 2013 15:38:44 +0000"  >&lt;p&gt;Solved in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-413&quot; title=&quot;[GH-247] Obtain all informations about a column via Column::toArray()&quot;&gt;&lt;del&gt;DBAL-413&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-375] Warning &quot;Udefined index dbname&quot; while creating database with oci8 driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-375</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In config specified:&lt;/p&gt;

&lt;p&gt;doctrine:&lt;br/&gt;
    dbal:&lt;br/&gt;
        driver:   &quot;oci8&quot;&lt;br/&gt;
        host:     &quot;localhost&quot;&lt;br/&gt;
        port:     &quot;1521&quot;&lt;br/&gt;
        dbname:   &quot;orcl50&quot;&lt;br/&gt;
        user:     &quot;SYSTEM&quot;&lt;br/&gt;
        password: &quot;123456&quot;&lt;br/&gt;
        charset:  UTF8&lt;/p&gt;

&lt;p&gt;When i create database (with symfony 2, doctrine:database:create), got that error:&lt;/p&gt;

&lt;p&gt;=====================================&lt;br/&gt;
Could not create database for connection named orcl50&lt;br/&gt;
Notice: Undefined index: dbname in /path/to/symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/Driver.php line 67&lt;br/&gt;
=====================================&lt;/p&gt;

&lt;p&gt;If i comment &quot;unset($params&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;dbname&amp;#39;&amp;#93;&lt;/span&gt;)&quot; in CreateDatabaseDoctrineCommand.php:54 all works fine.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14178">DBAL-375</key>
            <summary>Warning &quot;Udefined index dbname&quot; while creating database with oci8 driver</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="pavelpat">pavel patrin</reporter>
                        <labels>
                        <label>dbname</label>
                        <label>oci8</label>
                    </labels>
                <created>Wed, 31 Oct 2012 11:02:32 +0000</created>
                <updated>Sat, 20 Apr 2013 08:48:22 +0000</updated>
                                    <version>2.2.2</version>
                <version>2.3.1</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18976" author="krisw" created="Tue, 13 Nov 2012 11:19:10 +0000"  >&lt;p&gt;I&apos;m experiencing the same issue and your fix appears to work for me too; thanks!&lt;/p&gt;</comment>
                    <comment id="20075" author="beberlei" created="Sat, 20 Apr 2013 08:48:22 +0000"  >&lt;p&gt;on Oracle CREATE DATABASE is actually a CREATE USER. I am not sure the command should allow to do this.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-374] [GH-222] Escape primary field name in create table sql query</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-374</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Genokilller:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/222&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/222&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fixes primary fields name in CreateTableSQL for Abstract Platform&lt;/p&gt;</description>
                <environment></environment>
            <key id="14175">DBAL-374</key>
            <summary>[GH-222] Escape primary field name in create table sql query</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 30 Oct 2012 14:17:07 +0000</created>
                <updated>Tue, 13 Nov 2012 19:07:49 +0000</updated>
                    <resolved>Tue, 13 Nov 2012 19:07:49 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18983" author="beberlei" created="Tue, 13 Nov 2012 19:07:49 +0000"  >&lt;p&gt;Only fixed for primary key columns now, the other will be much more messy, requires refactoring.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-373] Indexes and uniqueConstraints has been ignored</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-373</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I using the Doctrine Migrations and when I declared my entity with the indexes section, the index name has been ignored. It&apos;s like this:&lt;/p&gt;

&lt;p&gt;indexes:&lt;br/&gt;
        IDX_ADDRESS_CITY:&lt;br/&gt;
            columns: city_id&lt;/p&gt;


&lt;p&gt;but, the diff tools ignore it and give me this code:&lt;br/&gt;
$this-&amp;gt;addSql(&quot;CREATE INDEX IDX_7299B5238BAC62AF ON tb_address (city_id)&quot;);&lt;/p&gt;

&lt;p&gt; and it should be:&lt;br/&gt;
$this-&amp;gt;addSql(&quot;CREATE INDEX IDX_ADDRESS_CITY ON tb_address (city_id)&quot;);&lt;/p&gt;

&lt;p&gt;Notice: I open the same bug on the migrations repository in github and @kimhemsoe told me to open here, since this is generated by DBAL component.&lt;/p&gt;</description>
                <environment>Ubuntu 12.04 with MySQL 5.5 and PHP 5.4</environment>
            <key id="14171">DBAL-373</key>
            <summary>Indexes and uniqueConstraints has been ignored</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="diegoholiveira">Diego Oliveira</reporter>
                        <labels>
                    </labels>
                <created>Fri, 26 Oct 2012 16:49:05 +0000</created>
                <updated>Sat, 20 Apr 2013 09:53:26 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="19123" author="posulliv" created="Tue, 11 Dec 2012 22:07:56 +0000"  >&lt;p&gt;Did you specify an index name in the indexes property for your entity in  your PHP file? In this case, you should have something like:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
indexes={@Index(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;IDX_ADDRESS_CITY&quot;&lt;/span&gt;, columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;city_id&quot;&lt;/span&gt;})}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That should result in the correct SQL being generated. If I modify the above to:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
indexes={@Index(columns={&lt;span class=&quot;code-quote&quot;&gt;&quot;city_id&quot;&lt;/span&gt;})}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I also get a migration that has SQL with an auto-generated index name.&lt;/p&gt;</comment>
                    <comment id="19449" author="diegoholiveira" created="Sat, 2 Feb 2013 16:28:56 +0000"  >&lt;p&gt;Yes I did specify a name, as you can see:&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;uniqueConstraints:
    UNIQUE_STATE_SLUG:
        columns: slug
indexes:
    IDX_USER_ADDRESS:
        columns: address_id
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I don&apos;t try do to it using annotations because I choose do use yaml to describe my entities. I will take a look on the source code to see if I can fix it and send a PR.&lt;/p&gt;</comment>
                    <comment id="19930" author="diegoholiveira" created="Tue, 2 Apr 2013 12:45:40 +0000"  >&lt;p&gt;I already sent this patch to Guilherme Blanco, but I guess he doesn&apos;t have time to take a look on it.&lt;/p&gt;

&lt;p&gt;I guess my solution it&apos;s not ideal, but it solve the problem and can be a base to make a better solution.&lt;/p&gt;</comment>
                    <comment id="20076" author="beberlei" created="Sat, 20 Apr 2013 08:50:54 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=diegoholiveira&quot; class=&quot;user-hover&quot; rel=&quot;diegoholiveira&quot;&gt;Diego Oliveira&lt;/a&gt; the fix doesn&apos;t seem too nice with the additional boolean flag.&lt;/p&gt;

&lt;p&gt;I would rather like to fix the root cause instead of adding this solution.&lt;/p&gt;</comment>
                    <comment id="20077" author="beberlei" created="Sat, 20 Apr 2013 09:53:26 +0000"  >&lt;p&gt;The issue is tricky, because we cannot just move the index definitions above, they will need the columns, however that directly generates the index in the schema tool. Maybe if the gather join column methods would check if they can add an index already it would work.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11522" name="dbal-fixing-373.patch" size="3754" author="diegoholiveira" created="Tue, 2 Apr 2013 12:45:40 +0000" />
                    <attachment id="11523" name="orm-fixing-373.patch" size="1977" author="diegoholiveira" created="Tue, 2 Apr 2013 12:45:40 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-372] Add SQL parser</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-372</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It is useful for create sql highlighter. See &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/pull/117&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/pull/117&lt;/a&gt; or &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/issues/107&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/issues/107&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14168">DBAL-372</key>
            <summary>Add SQL parser</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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="hason">Martin Haso&#328;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Oct 2012 12:52:32 +0000</created>
                <updated>Thu, 25 Oct 2012 12:52:51 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-371] DBALException doesn&apos;t forward the SQL exception code</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-371</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;PDO exceptions carry the SQL error code. However DBALException doesn&apos;t forward any error code from the SQL exception.&lt;/p&gt;

&lt;p&gt;Here is a (really poor/quick) example of usage:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
    $em-&amp;gt;flush();
} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (DBALException $e) {
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($e-&amp;gt;getCode() === 23000) {
        echo &apos;&apos;;
    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
        &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; $e;
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think I found where the problem is:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function driverExceptionDuringQuery(\Exception $driverEx, $sql, array $params = array())
{
    $msg = &lt;span class=&quot;code-quote&quot;&gt;&quot;An exception occurred &lt;span class=&quot;code-keyword&quot;&gt;while&lt;/span&gt; executing &apos;&quot;&lt;/span&gt;.$sql.&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt;;
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($params) {
        $msg .= &lt;span class=&quot;code-quote&quot;&gt;&quot; with params &quot;&lt;/span&gt;.json_encode($params);
    }
    $msg .= &lt;span class=&quot;code-quote&quot;&gt;&quot;:\n\n&quot;&lt;/span&gt;.$driverEx-&amp;gt;getMessage();

    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; self($msg, 0, $driverEx);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In &lt;tt&gt;return new self($msg, 0, $driverEx);&lt;/tt&gt;, the exception is created with an error code of 0.&lt;/p&gt;

&lt;p&gt;Is there a reason for this: is that that the driver exception may not always have a defined error code? (for example if the sql driver is not PDO or the SQL system doesn&apos;t support that, but in this case then the error code would be 0 would that be a problem?)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14163">DBAL-371</key>
            <summary>DBALException doesn&apos;t forward the SQL exception code</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="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mnapoli">Matthieu Napoli</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Oct 2012 09:51:26 +0000</created>
                <updated>Thu, 9 May 2013 15:12:24 +0000</updated>
                    <resolved>Thu, 9 May 2013 15:12:24 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18877" author="mnapoli" created="Wed, 24 Oct 2012 11:14:46 +0000"  >&lt;p&gt;Pull request here: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/221&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/221&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20245" author="doctrinebot" created="Thu, 9 May 2013 15:12:06 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-221&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/221&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/221&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-370] [GH-220] Added support for alter table, foreign keys and autoincrement detection to Sqlite platform and schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-370</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/220&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/220&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14153">DBAL-370</key>
            <summary>[GH-220] Added support for alter table, foreign keys and autoincrement detection to Sqlite platform and schema</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 20 Oct 2012 19:54:38 +0000</created>
                <updated>Wed, 2 Jan 2013 10:29:22 +0000</updated>
                    <resolved>Sun, 23 Dec 2012 21:25:36 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18867" author="hason" created="Mon, 22 Oct 2012 21:03:23 +0000"  >&lt;p&gt;Solves &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1232&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1232&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19203" author="ocramius" created="Wed, 2 Jan 2013 10:29:22 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=hason&quot; class=&quot;user-hover&quot; rel=&quot;hason&quot;&gt;Martin Haso&#328;&lt;/a&gt; this does not solve &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1232&quot; title=&quot;getAlterTableSQL is not supported by platform SQLite&quot;&gt;&lt;del&gt;DDC-1232&lt;/del&gt;&lt;/a&gt;, since `getAlterTableSQL` still just throws an exception.&lt;/p&gt;

&lt;p&gt;This PR currently breaks my functional test suites using the ORM and the SchemaTool in conjunction with the PDOSqlite driver.&lt;/p&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-369] [GH-219] Fix storage of binary data for array and object types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-369</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kdambekalns:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/219&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/219&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;serialize() returns binary data (NUL bytes) and not all platforms&lt;br/&gt;
handle that in CLOB fields (e.g. PostgreSQL).&lt;/p&gt;

&lt;p&gt;This change uses base64 encoding to work around that, and transparently&lt;br/&gt;
reads (old) non-base64 data as well.&lt;/p&gt;

&lt;p&gt;Fixes &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-368&quot; title=&quot;array and object types should use BLOB, not CLOB, to store serialized data&quot;&gt;&lt;del&gt;DBAL-368&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14146">DBAL-369</key>
            <summary>[GH-219] Fix storage of binary data for array and object types</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 19 Oct 2012 11:54:02 +0000</created>
                <updated>Fri, 19 Oct 2012 11:54:02 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-368] array and object types should use BLOB, not CLOB, to store serialized data</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-368</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using array or object types, PHP&apos;s serialize() is used. Since that can return NUL bytes, using a text type will fail at least on PostgreSQL (just search the web for issues of that kind&#8230;).&lt;/p&gt;

&lt;p&gt;So ArrayType and ObjectType should return a BLOB definition instead of a CLOB definition to be binary-safe.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14143">DBAL-368</key>
            <summary>array and object types should use BLOB, not CLOB, to store serialized data</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                        <label>postgresql</label>
                    </labels>
                <created>Fri, 19 Oct 2012 08:47:01 +0000</created>
                <updated>Wed, 23 Jan 2013 21:54:22 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 21:54:22 +0000</resolved>
                            <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18851" author="k-fish" created="Fri, 19 Oct 2012 11:55:53 +0000"  >&lt;p&gt;See &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-369&quot; title=&quot;[GH-219] Fix storage of binary data for array and object types&quot;&gt;DBAL-369&lt;/a&gt; for the suggested fix&lt;/p&gt;</comment>
                    <comment id="19374" author="ocramius" created="Wed, 23 Jan 2013 21:52:00 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=k-fish&quot; class=&quot;user-hover&quot; rel=&quot;k-fish&quot;&gt;Karsten Dambekalns&lt;/a&gt; &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-368&quot; title=&quot;array and object types should use BLOB, not CLOB, to store serialized data&quot;&gt;&lt;del&gt;DBAL-368&lt;/del&gt;&lt;/a&gt; is this issue. What&apos;s the one you were referring to?&lt;/p&gt;</comment>
                    <comment id="19375" author="ocramius" created="Wed, 23 Jan 2013 21:54:00 +0000"  >&lt;p&gt;Nvm, it was &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-369&quot; title=&quot;[GH-219] Fix storage of binary data for array and object types&quot;&gt;DBAL-369&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19376" author="ocramius" created="Wed, 23 Jan 2013 21:54:22 +0000"  >&lt;p&gt;Moved to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-369&quot; title=&quot;[GH-219] Fix storage of binary data for array and object types&quot;&gt;DBAL-369&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-367] Reverse engnering do not work with Oracle DB</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-367</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ doctrine orm:convert-mapping --filter=&lt;span class=&quot;code-quote&quot;&gt;&quot;ms$ions&quot;&lt;/span&gt; xml .

  [Doctrine\DBAL\DBALException]
  Unknown database type binary_float requested, Doctrine\DBAL\Platforms\OraclePlatform may not support it.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;cli-config.php:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;

use Doctrine\Common\Annotations\AnnotationReader;
use Doctrine\Common\Annotations\AnnotationRegistry;

require_once &apos;Doctrine/Common/&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;.php&apos;;

define(&apos;APPLICATION_ENV&apos;, &lt;span class=&quot;code-quote&quot;&gt;&quot;development&quot;&lt;/span&gt;);
error_reporting(E_ALL);

$classLoader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\&lt;span class=&quot;code-object&quot;&gt;ClassLoader&lt;/span&gt;(&apos;Doctrine&apos;);
$classLoader-&amp;gt;register();

$config = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Configuration();
$config-&amp;gt;setProxyDir(__DIR__);
$config-&amp;gt;setProxyNamespace(&apos;Proxies&apos;);

$config-&amp;gt;setAutoGenerateProxyClasses((APPLICATION_ENV == &lt;span class=&quot;code-quote&quot;&gt;&quot;development&quot;&lt;/span&gt;));

AnnotationRegistry::registerFile(&lt;span class=&quot;code-quote&quot;&gt;&quot;Doctrine/ORM/Mapping/Driver/DoctrineAnnotations.php&quot;&lt;/span&gt;);
$reader = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; AnnotationReader();
$driverImpl = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Mapping\Driver\AnnotationDriver($reader, array(__DIR__ . &lt;span class=&quot;code-quote&quot;&gt;&quot;/../php/ru/niifhm/bioinformatics/biodb/model&quot;&lt;/span&gt;));
$config-&amp;gt;setMetadataDriverImpl($driverImpl);

&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (APPLICATION_ENV == &lt;span class=&quot;code-quote&quot;&gt;&quot;development&quot;&lt;/span&gt;) {
    $cache = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Cache\ArrayCache();
} &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
    $cache = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Cache\ApcCache();
}

$config-&amp;gt;setMetadataCacheImpl($cache);
$config-&amp;gt;setQueryCacheImpl($cache);

$connectionOptions = array(
    &apos;driver&apos;   =&amp;gt; &apos;oci8&apos;,
    &apos;host&apos;     =&amp;gt; &apos;host.name&apos;,
    &apos;dbname&apos;   =&amp;gt; &apos;db.name&apos;,
    &apos;user&apos;     =&amp;gt; &apos;user.name&apos;,
    &apos;password&apos; =&amp;gt; &apos;user.password&apos;
);

$em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
$platform = $em-&amp;gt;getConnection()-&amp;gt;getDatabasePlatform();
$platform-&amp;gt;registerDoctrineTypeMapping(&apos;&lt;span class=&quot;code-keyword&quot;&gt;enum&lt;/span&gt;&apos;, &apos;string&apos;);

$em-&amp;gt;getConfiguration()-&amp;gt;setMetadataDriverImpl(
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Mapping\Driver\DatabaseDriver(
        $em-&amp;gt;getConnection()-&amp;gt;getSchemaManager()
    )
);

$helperSet = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Symfony\Component\Console\Helper\HelperSet(array(
    &apos;db&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Tools\Console\Helper\ConnectionHelper($em-&amp;gt;getConnection()),
    &apos;em&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Tools\Console\Helper\EntityManagerHelper($em)
));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>PHP 5.3.3-1ubuntu9.10 with Suhosin-Patch (cli) (built: Feb 11 2012 06:21:15)&lt;br/&gt;
oci8-1.4.7 as PHP extension builded from pecl repository with instantclient-basic-linux.x64-11.2.0.3.0.zip and instantclient-sdk-linux.x64-11.2.0.3.0.zip&lt;br/&gt;
Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production</environment>
            <key id="14141">DBAL-367</key>
            <summary>Reverse engnering do not work with Oracle DB</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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="zeleniy">Zelenin Alexandr</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>oracle</label>
                        <label>schematool</label>
                    </labels>
                <created>Thu, 18 Oct 2012 13:43:14 +0000</created>
                <updated>Wed, 23 Jan 2013 21:55:55 +0000</updated>
                                    <version>2.3</version>
                                                <component>Drivers</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19377" author="ocramius" created="Wed, 23 Jan 2013 21:55:55 +0000"  >&lt;p&gt;Formatting&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-366] [GH-218] [MySQL] Fixed bug with comments not adding quotes for tables</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-366</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of okovalov:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/218&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/218&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Title describes everything... =)&lt;/p&gt;</description>
                <environment></environment>
            <key id="14117">DBAL-366</key>
            <summary>[GH-218] [MySQL] Fixed bug with comments not adding quotes for tables</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Oct 2012 15:54:35 +0000</created>
                <updated>Sun, 6 Jan 2013 10:41:13 +0000</updated>
                    <resolved>Sun, 6 Jan 2013 10:41:13 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18840" author="beberlei" created="Mon, 15 Oct 2012 16:14:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-218&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/218&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/218&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-365] [GH-217] Remember to close temporary connection in PostgreSqlSchemaManager::dropD...</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-365</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/217&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/217&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;...atabase() and PostgreSqlSchemaManager::createDatabase()&lt;/p&gt;

&lt;p&gt;Fixes my problem with not to be able to run all tests.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14113">DBAL-365</key>
            <summary>[GH-217] Remember to close temporary connection in PostgreSqlSchemaManager::dropD...</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Oct 2012 13:20:18 +0000</created>
                <updated>Fri, 12 Oct 2012 20:02:22 +0000</updated>
                    <resolved>Fri, 12 Oct 2012 20:02:22 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18834" author="beberlei" created="Fri, 12 Oct 2012 19:54:46 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-217&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/217&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/217&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-364] [GH-216] Fixed SQL placeholder parsing</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-364</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of a-nik:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/216&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/216&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fixed comment on &apos;getPlaceholderPositions&apos; method&lt;br/&gt;
Fixed error on escaped quote mark inside an SQL expression&lt;/p&gt;</description>
                <environment></environment>
            <key id="14112">DBAL-364</key>
            <summary>[GH-216] Fixed SQL placeholder parsing</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 11 Oct 2012 11:43:18 +0000</created>
                <updated>Sat, 19 Jan 2013 18:26:56 +0000</updated>
                    <resolved>Sat, 19 Jan 2013 16:09:23 +0000</resolved>
                                            <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19335" author="fabio.bat.silva" created="Sat, 19 Jan 2013 16:09:23 +0000"  >&lt;p&gt;Closed in favor of GH-113&lt;/p&gt;</comment>
                    <comment id="19337" author="beberlei" created="Sat, 19 Jan 2013 18:26:56 +0000"  >&lt;p&gt;Fixed in 2.3.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-363] [GH-215] Remove unneeded use statement</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-363</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jsjohns:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/215&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/215&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14109">DBAL-363</key>
            <summary>[GH-215] Remove unneeded use statement</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Oct 2012 19:50:23 +0000</created>
                <updated>Mon, 5 Nov 2012 22:49:34 +0000</updated>
                    <resolved>Mon, 5 Nov 2012 22:49:34 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18815" author="beberlei" created="Tue, 9 Oct 2012 19:56:55 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-215&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/215&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/215&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18925" author="fabio.bat.silva" created="Mon, 5 Nov 2012 22:49:34 +0000"  >&lt;p&gt;Closed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-362] [GH-214] The &quot;bindParam&quot; method of OCI8Statement is not using the &quot;length&quot; parameter</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-362</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of theUniC:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/214&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/214&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;I&apos;ve fixed the ```OCI8Statement::bindParam``` method in order to pass the &quot;length&quot; parameter when the type is not a LOB&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php#L112&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php#L112&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;As noted on the description of the function on the PHP manual (for the IN binds), this is leading to a truncation of the values to the size of the PHP variable.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.php.net/manual/en/function.oci-bind-by-name.php&quot; class=&quot;external-link&quot;&gt;http://www.php.net/manual/en/function.oci-bind-by-name.php&lt;/a&gt; &lt;/p&gt;</description>
                <environment></environment>
            <key id="14102">DBAL-362</key>
            <summary>[GH-214] The &quot;bindParam&quot; method of OCI8Statement is not using the &quot;length&quot; parameter</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 6 Oct 2012 20:06:50 +0000</created>
                <updated>Thu, 9 May 2013 15:36:48 +0000</updated>
                    <resolved>Thu, 9 May 2013 15:36:48 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20248" author="doctrinebot" created="Thu, 9 May 2013 15:36:47 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-214&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/214&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/214&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-361] [GH-213] fixed bug on schema comparator, prevent multiple rename candidates for a single original field</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-361</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of leedavis81:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/213&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/213&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Starting with the following Entity&lt;br/&gt;
```&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Table(name=&quot;user&quot;)&lt;/li&gt;
	&lt;li&gt;@Entity&lt;br/&gt;
 */&lt;br/&gt;
class User
{
    /**
     * @var integer $id
     * @Column(name=&quot;id&quot;, type=&quot;integer&quot;, length=4)
     * @Id
     * @GeneratedValue(strategy=&quot;IDENTITY&quot;)
     */
    private $id;

    /**
     * @var \DateTime $date_alerted_email
     * @Column(name=&quot;date_alerted&quot;, type=&quot;datetime&quot;, nullable=true)
     */
    private $date_alerted;
}
&lt;p&gt;```&lt;br/&gt;
Upon  making the following alterations (remove date_alerted, and add two additional columns of the same type but different names):&lt;br/&gt;
```&lt;br/&gt;
/**&lt;/p&gt;&lt;/li&gt;
	&lt;li&gt;@Table(name=&quot;user&quot;)&lt;/li&gt;
	&lt;li&gt;@Entity&lt;br/&gt;
 */&lt;br/&gt;
class User
{
    /**
     * @var integer $id
     * @Column(name=&quot;id&quot;, type=&quot;integer&quot;, length=4)
     * @Id
     * @GeneratedValue(strategy=&quot;IDENTITY&quot;)
     */
    private $id;

    /**
     * @var \DateTime $date_alerted_email
     * @Column(name=&quot;date_alerted_email&quot;, type=&quot;datetime&quot;, nullable=true)
     */
    private $date_alerted_email;
    
    /**
     * @var \DateTime $date_alerted_js
     * @Column(name=&quot;date_alerted_js&quot;, type=&quot;datetime&quot;, nullable=true)
     */
    private $date_alerted_js;
}
&lt;p&gt;```&lt;br/&gt;
The doctrine cli schema tool used to run the update (dump sql) produces the following result:&lt;br/&gt;
```&lt;br/&gt;
ALTER TABLE user CHANGE date_alerted date_alerted_js DATETIME DEFAULT NULL&lt;br/&gt;
```&lt;br/&gt;
Expected result:&lt;br/&gt;
```&lt;br/&gt;
ALTER TABLE message ADD date_alerted_js DATETIME DEFAULT NULL, CHANGE date_alerted date_alerted_email DATETIME DEFAULT NULL&lt;br/&gt;
```&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;What went wrong&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;Upon running diffTable($from, $to) in \Doctrine\DBAL\Schema\Comparator.php line 69 both new columns are added to the &quot;addedColumns&quot; array, and the one removed column is correctly present in the removedColumns array.&lt;/p&gt;

&lt;p&gt;The first iteration on detectColumnRenamings (line 272) puts the two NEW columns up as rename candidates as expected, however they share the original field name. &lt;/p&gt;

&lt;p&gt;When iterating over the rename candidates no further checks are done and these entries are added to the renamedColumns array. The last overwrites the original as they share the same array key and the original gets ignored. &lt;/p&gt;

&lt;p&gt;My change checks the renamedColumns array for the existence of the old column name. It only becomes a rename candidate if the original field hasn&apos;t already used previously. Otherwise it remains in the addedColumns array.&lt;/p&gt;

&lt;p&gt;In the example above these changes will produce 1 change column and 1 add column as expected.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="14100">DBAL-361</key>
            <summary>[GH-213] fixed bug on schema comparator, prevent multiple rename candidates for a single original field</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 16:00:59 +0000</created>
                <updated>Wed, 1 May 2013 12:26:39 +0000</updated>
                    <resolved>Wed, 1 May 2013 12:26:39 +0000</resolved>
                                            <fixVersion>2.3.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="20040" author="leedavis81" created="Thu, 18 Apr 2013 08:29:20 +0000"  >&lt;p&gt;Is there anything else I need to do to get this to be merged? It&apos;s quite a frustrating issue that causes me to run an update twice to ensure changes to the DB have been correctly applied.&lt;/p&gt;

&lt;p&gt;This bug also affects the migrations tool.&lt;/p&gt;

&lt;p&gt;Pull request has been created &lt;a href=&quot;https://github.com/doctrine/dbal/pull/213&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/213&lt;/a&gt; &lt;/p&gt;</comment>
                    <comment id="20148" author="doctrinebot" created="Wed, 1 May 2013 12:25:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-213&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/213&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/213&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-360] [GH-212] Fix dropping foreign key multiple times with test</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-360</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of sdepablos:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/212&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/212&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;In some cases the Comparator class returns multiple drops for the same foreign key.&lt;br/&gt;
Specifically, in case you have two tables, A &amp;amp; B, with A having a foreign key FK&lt;br/&gt;
referencing B, if you drop table B, the resulting diff shows this FK twice,&lt;br/&gt;
once on the diff-&amp;gt;orphanedForeignKeys array as we&apos;re deleting B, and another on&lt;br/&gt;
the diff-&amp;gt;changedTables array as table A is also being modified. As a result of this you&lt;br/&gt;
get the DROP FOREIGN KEY instruction twice in the final SQL.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14099">DBAL-360</key>
            <summary>[GH-212] Fix dropping foreign key multiple times with test</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 15:30:55 +0000</created>
                <updated>Fri, 5 Oct 2012 19:26:59 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 19:26:59 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18782" author="beberlei" created="Fri, 5 Oct 2012 18:32:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-212&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/212&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/212&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-359] [GH-211] Fix dropping foreign key multiple times with test</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-359</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of sdepablos:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/211&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/211&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;In some cases the Comparator class returns multiple drops for the same foreign key.&lt;br/&gt;
Specifically, in case you have two tables, A &amp;amp; B, with A having a foreign key FK&lt;br/&gt;
referencing B, if you drop table B, the resulting diff shows this FK twice,&lt;br/&gt;
once on the diff-&amp;gt;orphanedForeignKeys array as we&apos;re deleting B, and another on&lt;br/&gt;
the diff-&amp;gt;changedTables array as table A is also being modified. As a result of this you &lt;br/&gt;
get the DROP FOREIGN KEY instruction twice in the final SQL.&lt;/p&gt;

&lt;p&gt;I&apos;m not really sure if this change should be done in the Comparator clas or if it&apos;s better to &lt;br/&gt;
receive the full diff, even with duplicated drops for FK and later, when generating the final &lt;br/&gt;
SQL, drop the unnecessary ones&lt;/p&gt;</description>
                <environment></environment>
            <key id="14098">DBAL-359</key>
            <summary>[GH-211] Fix dropping foreign key multiple times with test</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 15:08:07 +0000</created>
                <updated>Fri, 5 Oct 2012 19:31:12 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 19:31:12 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18770" author="beberlei" created="Thu, 4 Oct 2012 15:50:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-211&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/211&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/211&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-358] This issue should be removed. Wrong merge on github.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-358</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue should be removed. Wrong merge on github.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14097">DBAL-358</key>
            <summary>This issue should be removed. Wrong merge on github.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 14:58:09 +0000</created>
                <updated>Wed, 23 Jan 2013 23:01:19 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 23:01:19 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18769" author="beberlei" created="Thu, 4 Oct 2012 14:59:34 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-210&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/210&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/210&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-357] Missing way to set types for CAST declaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-357</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For a query such as&lt;/p&gt;

&lt;p&gt;    x = CASE WHEN id=$1 THEN CAST($2 AS int)&lt;/p&gt;

&lt;p&gt;there doesn&apos;t seem to be a way to correctly assign the type across multiple platforms. E.g. Postgres required &quot;int&quot; but mysql just requires &quot;unsigned&quot;. Attempting to use &quot;int&quot; here with mysql will fail.&lt;/p&gt;

&lt;p&gt;The method Doctrine\DBAL\Platforms method getIntegerTypeDeclarationSQL will return something like &quot;INT unsigned&quot; for sql, which also fails.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14095">DBAL-357</key>
            <summary>Missing way to set types for CAST declaration</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="petesiss">Pete Sisson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 07:50:35 +0000</created>
                <updated>Thu, 4 Oct 2012 07:50:35 +0000</updated>
                                    <version>2.2</version>
                <version>2.3</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-356] [GH-209] Added query micro-optimization</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-356</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dlsniper:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/209&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/209&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This adds a micro-optimization to the query and also exposes better the function calls to the profilers like XDebug or XHProf.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14082">DBAL-356</key>
            <summary>[GH-209] Added query micro-optimization</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 30 Sep 2012 11:28:31 +0000</created>
                <updated>Wed, 1 May 2013 17:26:54 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:26:54 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20166" author="doctrinebot" created="Wed, 1 May 2013 17:26:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-209&amp;#93;&lt;/span&gt; was closed:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/209&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/209&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-355] [GH-208] Optimize autoload prefix in composer.json</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-355</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Slamdunk:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/208&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/208&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;By having more specific autoload prefixes it is possible to reduce the number of stat calls made.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14078">DBAL-355</key>
            <summary>[GH-208] Optimize autoload prefix in composer.json</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Sep 2012 07:00:11 +0000</created>
                <updated>Fri, 5 Oct 2012 19:32:02 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 19:31:45 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18783" author="beberlei" created="Fri, 5 Oct 2012 19:32:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-208&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/208&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/208&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-354] [GH-207] Removed Unsigned Integer Support in SQL Server</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-354</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of datiecher:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/207&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/207&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Removed unsigned integer test as SQL Server doesn&apos;t support unsigned integers.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14075">DBAL-354</key>
            <summary>[GH-207] Removed Unsigned Integer Support in SQL Server</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Sep 2012 00:29:26 +0000</created>
                <updated>Fri, 5 Oct 2012 19:33:53 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 19:33:52 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18784" author="beberlei" created="Fri, 5 Oct 2012 19:33:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-207&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/207&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/207&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-353] doctrine:schema:update doesn&apos;t understand it doesn&apos;t need to run again</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-353</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;doctrine:schema:update keeps thinking there is more to do:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ php app/console doctrine:schema:update --dump-sql
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ php app/console doctrine:schema:update --force   
Updating database schema...
Database schema updated successfully! &lt;span class=&quot;code-quote&quot;&gt;&quot;2&quot;&lt;/span&gt; queries were executed
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$ php app/console doctrine:schema:update --dump-sql
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14066">DBAL-353</key>
            <summary>doctrine:schema:update doesn&apos;t understand it doesn&apos;t need to run again</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="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="4">Incomplete</resolution>
                    <security id="10000">All</security>
                        <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="hexmode">Mark A. Hershberger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Sep 2012 15:45:56 +0000</created>
                <updated>Wed, 23 Jan 2013 22:48:55 +0000</updated>
                    <resolved>Wed, 23 Jan 2013 22:48:55 +0000</resolved>
                                                            <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18729" author="stof" created="Tue, 25 Sep 2012 15:56:32 +0000"  >&lt;p&gt;Can you paste your ORM mapping for these fields ?&lt;/p&gt;</comment>
                    <comment id="18900" author="jrobeson" created="Thu, 1 Nov 2012 10:17:21 +0000"  >&lt;p&gt;I had the same problem. I used doctrine:mapping:import&lt;br/&gt;
to bootstrap some entities. It generated my &lt;br/&gt;
session entity primary key with a GeneratedValue strategy of &lt;br/&gt;
IDENTITY when it should have been NONE.&lt;/p&gt;

&lt;p&gt;This sounds like the same problem with the string key&lt;br/&gt;
and incorrect GeneratedValue strategy.&lt;/p&gt;

&lt;p&gt;PS: I ran into that doctrine:mapping:import issue&lt;br/&gt;
 perhaps a year ago, when i  first started playing with doctrine.&lt;br/&gt;
I do not know if it still persists.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-352] Running doctrine:schema:update throws an exception the first time, succeeds the second time.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-352</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Shell output from my symfony project:&lt;br/&gt;
 $ app/console doctrine:schema:update --force&lt;br/&gt;
 Updating database schema...&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id)&apos;:&lt;/p&gt;

&lt;p&gt;  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt; doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;

&lt;p&gt; $ app/console doctrine:schema:update --force&lt;br/&gt;
 Updating database schema...&lt;br/&gt;
 Database schema updated successfully! &quot;7&quot; queries were executed&lt;br/&gt;
 $&lt;/p&gt;</description>
                <environment></environment>
            <key id="14065">DBAL-352</key>
            <summary>Running doctrine:schema:update throws an exception the first time, succeeds the second time.</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="hexmode">Mark A. Hershberger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Sep 2012 13:27:26 +0000</created>
                <updated>Tue, 25 Sep 2012 14:35:32 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18724" author="stof" created="Tue, 25 Sep 2012 13:52:11 +0000"  >&lt;p&gt;Please run the command with the &lt;tt&gt;&amp;#45;&amp;#45;dump&amp;#45;sql&lt;/tt&gt; option instead of &lt;tt&gt;&amp;#45;&amp;#45;force&lt;/tt&gt; each time before launching it for real, to be able to see which SQL queries are executed in both cases&lt;/p&gt;</comment>
                    <comment id="18725" author="hexmode" created="Tue, 25 Sep 2012 14:07:52 +0000"  >&lt;p&gt;I&apos;m not sure how to roll back the changes so that I can reproduce this.&lt;/p&gt;</comment>
                    <comment id="18726" author="hexmode" created="Tue, 25 Sep 2012 14:18:47 +0000"  >&lt;p&gt;Got it after a little poking around with git.  Rolling back to a commit in my code before the one given here didn&apos;t didn&apos;t show this reproduce this.&lt;/p&gt;


&lt;p&gt;$ php app/console doctrine:schema:create        &lt;br/&gt;
ATTENTION: This operation should not be executed in a production environment.&lt;/p&gt;

&lt;p&gt;Creating database schema...&lt;br/&gt;
Database schema created successfully!&lt;/p&gt;

&lt;p&gt;$ git checkout d686a39fb664dca540167e1b3e96ea0ffd67bc00&lt;br/&gt;
Previous HEAD position was 0510a59... * First round of Customer-to-Accounts (1:n) mapping done * Start of Customer-to-Tn and Tn-to-Account mapping&lt;br/&gt;
HEAD is now at d686a39... * A little debugging for Entity::Customer::hasEntitlement * Add FK for Customer to Tn&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql    &lt;br/&gt;
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE Tn DROP FOREIGN KEY FK_3504C6F09B6B5FBA;&lt;br/&gt;
DROP INDEX IDX_3504C6F09B6B5FBA ON Tn;&lt;br/&gt;
ALTER TABLE Tn ADD tnType VARCHAR(10) NOT NULL, CHANGE account_id customer INT DEFAULT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id);&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F081398E09 FOREIGN KEY (customer) REFERENCES Customer (id);&lt;br/&gt;
CREATE INDEX IDX_3504C6F07D3656A4 ON Tn (account);&lt;br/&gt;
CREATE INDEX IDX_3504C6F081398E09 ON Tn (customer);&lt;br/&gt;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL&lt;br/&gt;
mah@debian:~/comcast$ php app/console doctrine:schema:update --force       &lt;br/&gt;
Updating database schema...&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;          &lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account)&lt;br/&gt;
  REFERENCES Account (id)&apos;:&lt;/p&gt;

&lt;p&gt;  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;                                                                                       &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table  &lt;/p&gt;

&lt;p&gt;doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;


&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql&lt;br/&gt;
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD account INT DEFAULT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id);&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F081398E09 FOREIGN KEY (customer) REFERENCES Customer (id);&lt;br/&gt;
CREATE INDEX IDX_3504C6F07D3656A4 ON Tn (account);&lt;br/&gt;
CREATE INDEX IDX_3504C6F081398E09 ON Tn (customer);&lt;br/&gt;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --force   &lt;br/&gt;
Updating database schema...&lt;br/&gt;
Database schema updated successfully! &quot;7&quot; queries were executed&lt;/p&gt;

&lt;p&gt;$ &lt;/p&gt;</comment>
                    <comment id="18728" author="stof" created="Tue, 25 Sep 2012 14:35:32 +0000"  >&lt;p&gt;hmm, the first update seems to miss the addition of the account field, which is done the second time through &lt;tt&gt;ALTER TABLE Tn ADD account INT DEFAULT NULL;&lt;/tt&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-351] [GH-206] Set minimum PHP version to 5.3.6</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-351</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of nicolas-grekas:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/206&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/206&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Since -&amp;gt;setCharset() has been removed, minimum PHP version has to be raised to 5.3.6: the new way of doing charset, throught the DSN, works only after bug &lt;a href=&quot;https://bugs.php.net/bug.php?id=47802&quot; class=&quot;external-link&quot;&gt;https://bugs.php.net/bug.php?id=47802&lt;/a&gt; has been fixed.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14063">DBAL-351</key>
            <summary>[GH-206] Set minimum PHP version to 5.3.6</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Sep 2012 22:06:04 +0000</created>
                <updated>Fri, 5 Oct 2012 17:11:34 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 17:11:34 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18773" author="beberlei" created="Fri, 5 Oct 2012 12:57:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-206&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/206&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/206&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-350] [GH-205] Added exit code for dbal:reserved-words command</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-350</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/205&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/205&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14055">DBAL-350</key>
            <summary>[GH-205] Added exit code for dbal:reserved-words command</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 24 Sep 2012 10:35:02 +0000</created>
                <updated>Fri, 5 Oct 2012 20:31:42 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 20:31:42 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18786" author="beberlei" created="Fri, 5 Oct 2012 20:31:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-205&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/205&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/205&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-349] [GH-203] Delete always content from table master_slave_table between tests.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-349</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/203&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/203&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fixes that we are currently failing master slave tests.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14054">DBAL-349</key>
            <summary>[GH-203] Delete always content from table master_slave_table between tests.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 23 Sep 2012 10:33:47 +0000</created>
                <updated>Fri, 5 Oct 2012 20:22:18 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 20:22:18 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18785" author="beberlei" created="Fri, 5 Oct 2012 19:40:02 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-203&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/203&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/203&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-348] [GH-202] Fixed DBAL-139 Oracle&apos;s sequences with NOCACHE </title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-348</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of AduroIdea:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14053">DBAL-348</key>
            <summary>[GH-202] Fixed DBAL-139 Oracle&apos;s sequences with NOCACHE </summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 22 Sep 2012 18:23:14 +0000</created>
                <updated>Sun, 6 Jan 2013 18:56:59 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18696" author="beberlei" created="Sat, 22 Sep 2012 18:50:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-202&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18697" author="beberlei" created="Sat, 22 Sep 2012 18:51:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-202&amp;#93;&lt;/span&gt; was reopened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18698" author="beberlei" created="Sat, 22 Sep 2012 20:58:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-202&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18701" author="beberlei" created="Sun, 23 Sep 2012 15:34:55 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-204&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/204&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/204&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-347] [GH-201] fix some phpdoc</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-347</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of KonstantinKuklin:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/201&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/201&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14050">DBAL-347</key>
            <summary>[GH-201] fix some phpdoc</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Sep 2012 23:39:23 +0000</created>
                <updated>Fri, 5 Oct 2012 20:27:21 +0000</updated>
                    <resolved>Fri, 5 Oct 2012 20:27:21 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18689" author="beberlei" created="Fri, 21 Sep 2012 01:10:00 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-201&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/201&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/201&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-346] Generated schema fails on MySQL (BLOB/TEXT cant have DEFAULT value)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-346</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In my symfony 2.1 project i was including &lt;a href=&quot;https://github.com/schmittjoh/JMSPaymentCoreBundle&quot; class=&quot;external-link&quot;&gt;JMSPaymentCoreBundle&lt;/a&gt; and did the vanilla installation.&lt;/p&gt;

&lt;p&gt;After that i ran&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
php app/console doctrine:schema:update --dump-sql
php app/console doctrine:schema:update --force
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;A lot of schema updates were done. I ran it again, and two schema updates were still showing up.&lt;br/&gt;
Running the command again, and they still show up.&lt;/p&gt;

&lt;p&gt;I then tried to run the two schema updates against my database and MySQL complains with the following error:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Error: 1101 - BLOB/TEXT column &apos;extended_data&apos; can&apos;t have a &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; value
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;According to the &lt;a href=&quot;https://dev.mysql.com/doc/refman/5.5/en/blob.html&quot; class=&quot;external-link&quot;&gt;Documentation&lt;/a&gt; BLOB/TEXT indeed cannot have default values. I am not sure why Doctrine thinks it has to set this default value.&lt;/p&gt;

&lt;p&gt;The statements look like this:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
sascha@debian:/&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/myproject/Symfony$ php app/console doctrine:schema:update --dump-sql
ALTER TABLE payment_instructions CHANGE extended_data extended_data LONGTEXT NOT NULL COMMENT &apos;(DC2Type:extended_payment_data)&apos;;
ALTER TABLE financial_transactions CHANGE extended_data extended_data LONGTEXT DEFAULT NULL COMMENT &apos;(DC2Type:extended_payment_data)&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I already reported this problem in the JMSPaymentCoreBundle &lt;a href=&quot;https://github.com/schmittjoh/JMSPaymentCoreBundle/issues/57&quot; class=&quot;external-link&quot;&gt;Issue&lt;/a&gt; Queue where  i then was referred to over here.&lt;/p&gt;

&lt;p&gt;Also, i am not sure if Doctrine DBAL is the best match for this issue, so if it is wrong please move it to the right project issue queue.&lt;/p&gt;

&lt;p&gt;Thank you very much and best of Regards!&lt;br/&gt;
Sascha&lt;/p&gt;</description>
                <environment>Symfony 2.1.x (dev/master), Doctrine 2.2.3, MySQL 5.5.x</environment>
            <key id="14046">DBAL-346</key>
            <summary>Generated schema fails on MySQL (BLOB/TEXT cant have DEFAULT value)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="thenetexperts">Sascha Ahmann</reporter>
                        <labels>
                        <label>Cli</label>
                        <label>schematool</label>
                    </labels>
                <created>Wed, 19 Sep 2012 10:10:10 +0000</created>
                <updated>Thu, 20 Sep 2012 17:29:30 +0000</updated>
                    <resolved>Thu, 20 Sep 2012 17:29:30 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-345] When inserting decimals into Oracle, getting ORA-01722: invalid number</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-345</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When I insert decimals into database I get the following error message:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;ORA-01722: invalid number&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Oracle wants decimals (e.g. NUMBER(5,2)) separated by comma instead of a dot. I think the reason is that I use the german version of Windows. I tried to modify the following method of \Doctrine\DBAL\Driver\OCI8\OCI8Statement::bindValue() just for testing of course:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function bindValue($param, $value, $type = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_float($value)) {
            $value = str_replace(&apos;.&apos;, &apos;,&apos;, (string) $value); &lt;span class=&quot;code-comment&quot;&gt;// &amp;lt;--
&lt;/span&gt;        }
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;bindParam($param, $value, $type);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;With this modification I do not get the error anymore.&lt;br/&gt;
It would be great if a solution could be found. The strange thing is, if I query &quot;SELECT * from nls_database_parameters where PARAMETER=&apos;NLS_NUMERIC_CHARACTERS&apos;&quot; I get &quot;.,&quot; which means that a dot is already used as decimal separator. Maybe Oracle preferes the Locale of the OS?!&lt;br/&gt;
Maybe you could provide a setting which defines what separator should be used for decimals.&lt;/p&gt;

&lt;p&gt;I found some Links that might be interesting regarding this issue:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;http://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html&quot; class=&quot;external-link&quot;&gt;http://docs.oracle.com/cd/E19455-01/806-0169/overview-9/index.html&lt;/a&gt; (Oracle Docs - Decimal and Thousands Separators)&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://forums.oracle.com/forums/thread.jspa?threadID=35398&quot; class=&quot;external-link&quot;&gt;https://forums.oracle.com/forums/thread.jspa?threadID=35398&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_options072.htm&quot; class=&quot;external-link&quot;&gt;http://docs.oracle.com/cd/B28359_01/olap.111/b28126/dml_options072.htm&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://forums.oracle.com/forums/thread.jspa?threadID=899739&quot; class=&quot;external-link&quot;&gt;https://forums.oracle.com/forums/thread.jspa?threadID=899739&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;http://symfony-blog.driebit.nl/2010/09/doctrine-and-oracle-under-windows/&quot; class=&quot;external-link&quot;&gt;http://symfony-blog.driebit.nl/2010/09/doctrine-and-oracle-under-windows/&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Windows 7 (German), Oracle XE 11.2.0, Doctrine 2.2.2, Symfony 2.0.15</environment>
            <key id="14013">DBAL-345</key>
            <summary>When inserting decimals into Oracle, getting ORA-01722: invalid number</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="naitsirch">Christian Stoller</reporter>
                        <labels>
                        <label>decimal</label>
                        <label>number</label>
                        <label>oracle</label>
                        <label>separator</label>
                    </labels>
                <created>Tue, 4 Sep 2012 10:06:27 +0000</created>
                <updated>Mon, 17 Sep 2012 10:23:27 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:23:27 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18595" author="naitsirch" created="Tue, 4 Sep 2012 11:45:35 +0000"  >&lt;p&gt;I found out that the database session has the parameter &apos;NLS_NUMERIC_CHARACTERS&apos;, too.&lt;br/&gt;
When I query it by the following SQL query:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;SELECT&lt;/span&gt; parameter,value &lt;span class=&quot;code-keyword&quot;&gt;FROM&lt;/span&gt; v$nls_parameters &lt;span class=&quot;code-keyword&quot;&gt;WHERE&lt;/span&gt; parameter = &apos;NLS_NUMERIC_CHARACTERS&apos;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I get this result:&lt;/p&gt;
&lt;blockquote&gt;&lt;p&gt;,.&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;With doctrine I can get the parameter with this (in Symfony2):&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$conn = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()-&amp;gt;getEntityManager()-&amp;gt;getConnection(); /* @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; $conn \Doctrine\DBAL\Connection */
$query = $conn-&amp;gt;executeQuery(&lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT parameter,value FROM v\$nls_parameters WHERE parameter = &apos;NLS_NUMERIC_CHARACTERS&apos;&quot;&lt;/span&gt;); /* @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; $query \Doctrine\DBAL\Driver\OCI8\OCI8Statement */
$result = $query-&amp;gt;fetchAll(\PDO::FETCH_ASSOC);
print_r($result);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;In this case I get this output:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;Array&lt;br/&gt;
(&lt;br/&gt;
    &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; =&amp;gt; Array&lt;br/&gt;
        (&lt;br/&gt;
            &lt;span class=&quot;error&quot;&gt;&amp;#91;PARAMETER&amp;#93;&lt;/span&gt; =&amp;gt; NLS_NUMERIC_CHARACTERS&lt;br/&gt;
            &lt;span class=&quot;error&quot;&gt;&amp;#91;VALUE&amp;#93;&lt;/span&gt; =&amp;gt; ,.&lt;br/&gt;
        )&lt;/p&gt;

&lt;p&gt;)&lt;/p&gt;&lt;/blockquote&gt;


&lt;p&gt;And with&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;ALTER SESSION SET NLS_NUMERIC_CHARACTERS = &apos;. &apos;&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I can change the parameter.&lt;/p&gt;

&lt;p&gt;When I execute the above query before I do my insert with decimal values, everything works as expected &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;br/&gt;
But it would be nicer if I could do that with a configuration.&lt;/p&gt;</comment>
                    <comment id="18602" author="beberlei" created="Wed, 5 Sep 2012 16:56:55 +0000"  >&lt;p&gt;There is an Oci8SessionInitListener inside Doctrine DBAL. It does not yet contain the numeric character change. Can you open a pull request on Github DBAL to add this?&lt;/p&gt;</comment>
                    <comment id="18639" author="naitsirch" created="Thu, 13 Sep 2012 13:47:35 +0000"  >&lt;p&gt;Hi Benjamin.&lt;br/&gt;
I have opened a pull request on Githup: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/197&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/197&lt;/a&gt;&lt;br/&gt;
I hope everything is correct, because this is my first Pull-Request &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/wink.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="18659" author="beberlei" created="Mon, 17 Sep 2012 10:16:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-197&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/197&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/197&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-344] [GH-200] params not passed from execute to logger</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-344</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of robap:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/200&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/200&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;When parameters are passed to Doctrine\DBAL\Statement::execute, they are not passed to any enabled logger(s).&lt;/p&gt;</description>
                <environment></environment>
            <key id="14041">DBAL-344</key>
            <summary>[GH-200] params not passed from execute to logger</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 16 Sep 2012 19:16:37 +0000</created>
                <updated>Mon, 17 Sep 2012 09:36:44 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 09:36:44 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18655" author="beberlei" created="Mon, 17 Sep 2012 09:36:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-200&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/200&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/200&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-343] [GH-199] fixed unquoted oldColumnName when changing column definition in MySQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-343</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of lutzportela:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/199&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/199&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;before:&lt;br/&gt;
```ALTER TABLE AlertCondition CHANGE fulltext `fulltext` VARCHAR(255) DEFAULT NULL``` failed.&lt;/p&gt;

&lt;p&gt;after:&lt;br/&gt;
```ALTER TABLE AlertCondition CHANGE `fulltext` `fulltext` VARCHAR(255) DEFAULT NULL``` passes.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14039">DBAL-343</key>
            <summary>[GH-199] fixed unquoted oldColumnName when changing column definition in MySQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Sep 2012 11:11:16 +0000</created>
                <updated>Thu, 25 Oct 2012 16:30:50 +0000</updated>
                    <resolved>Thu, 25 Oct 2012 16:30:50 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18888" author="fabio.bat.silva" created="Thu, 25 Oct 2012 16:30:50 +0000"  >&lt;p&gt;Closed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-342] [GH-198] Change default MySQL table collation to utf8_unicode_ci</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-342</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of VladanStef:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/198&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/198&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;I think default table collation should be changed to `utf8_unicode_ci`, as it handles properly a much wider array of characters (Cyrillic, for example) at a generally negligible cost of performance.&lt;/p&gt;

&lt;p&gt;`utf8_general_ci` simply does not work properly with too many languages and should be avoided as a default.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14038">DBAL-342</key>
            <summary>[GH-198] Change default MySQL table collation to utf8_unicode_ci</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 14 Sep 2012 03:24:15 +0000</created>
                <updated>Mon, 12 Nov 2012 17:00:13 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 09:47:55 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18656" author="beberlei" created="Mon, 17 Sep 2012 09:42:14 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-198&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/198&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/198&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18657" author="beberlei" created="Mon, 17 Sep 2012 09:47:55 +0000"  >&lt;p&gt;Merged into 2.3&lt;/p&gt;</comment>
                    <comment id="18973" author="williamk" created="Mon, 12 Nov 2012 17:00:12 +0000"  >&lt;p&gt;What about leaving default collate empty? So it will inherit database default collation / charset. I&apos;ve just created a ticket suggesting that #&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2139&quot; title=&quot;Table collate/charset doesn&amp;#39;t inherits from database&quot;&gt;&lt;del&gt;DDC-2139&lt;/del&gt;&lt;/a&gt; . Because we&apos;re experiencing trouble using Symfony2 commands to create database, than create schema/tables/fields, always use &quot;utf8_unicode_ci&quot; instead of our database default collate.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-341] [GH-197] Bugfix for DDC-2013</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-341</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of naitsirch:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/197&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/197&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Bugfix DDC-2013 - Default Session Value &quot;.,&quot; for &quot;NLS_NUMERIC_CHARACTERS&quot;. This is needed because Oracle uses other characters for decimal separation depending on the servers locale.&lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-2013&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-2013&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14037">DBAL-341</key>
            <summary>[GH-197] Bugfix for DDC-2013</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 13 Sep 2012 13:44:48 +0000</created>
                <updated>Mon, 17 Sep 2012 10:26:33 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:26:33 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18658" author="beberlei" created="Mon, 17 Sep 2012 10:16:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-197&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/197&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/197&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-340] [GH-196] Fixed mini-typo</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-340</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of pborreli:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/196&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/196&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="14026">DBAL-340</key>
            <summary>[GH-196] Fixed mini-typo</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 11 Sep 2012 09:20:01 +0000</created>
                <updated>Mon, 17 Sep 2012 10:35:54 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:35:54 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18624" author="beberlei" created="Tue, 11 Sep 2012 10:53:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-196&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/196&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/196&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-339] setFetchMode arguments exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-339</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;i have this error in version 2.3.0-RC1&lt;/p&gt;

&lt;p&gt;in DBAL/STatement.php on aound line 191 you will find:&lt;/p&gt;

&lt;p&gt;public function setFetchMode($fetchMode, $arg2 = null, $arg3 = null)&lt;/p&gt;
{
        return $this-&amp;gt;stmt-&amp;gt;setFetchMode($fetchMode, $arg2, $arg3);
}

&lt;p&gt;the problem is that php throws me a Exception:&lt;br/&gt;
Fatal error: Uncaught exception &apos;PDOException&apos; with message &apos;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: fetch mode doesn&apos;t allow any extra arguments&apos;&lt;/p&gt;

&lt;p&gt;the reason for the exception is that setFetchMode doesnt support null as second/third argument.&lt;/p&gt;

&lt;p&gt;somebody also described it in the php issue tracker:&lt;br/&gt;
&lt;a href=&quot;https://bugs.php.net/bug.php?id=54545&quot; class=&quot;external-link&quot;&gt;https://bugs.php.net/bug.php?id=54545&lt;/a&gt;&lt;/p&gt;</description>
                <environment>PDO_MySql</environment>
            <key id="14009">DBAL-339</key>
            <summary>setFetchMode arguments exception</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="timglabisch">tim glabisch</reporter>
                        <labels>
                    </labels>
                <created>Mon, 3 Sep 2012 19:16:51 +0000</created>
                <updated>Wed, 5 Sep 2012 16:52:37 +0000</updated>
                    <resolved>Wed, 5 Sep 2012 16:52:37 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18600" author="beberlei" created="Wed, 5 Sep 2012 16:52:37 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-338] Typo in AbstractPlatform for GUID type declaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-338</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;has been fixed in 3f5fda98299acdcda9965e8e797cbcd0490f0dcc, however it&apos;s not merged into 2.3.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14014">DBAL-338</key>
            <summary>Typo in AbstractPlatform for GUID type declaration</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="marijn">Marijn Huizendveld</reporter>
                        <labels>
                    </labels>
                <created>Tue, 4 Sep 2012 16:57:22 +0000</created>
                <updated>Wed, 5 Sep 2012 16:44:44 +0000</updated>
                    <resolved>Wed, 5 Sep 2012 16:44:44 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-337] Column types are truncated when mapping PostGIS types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-337</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When performing a doctrine schema update with Symfony2 (&apos;php app/console doctrine:schema:update --force --verbose&apos;) using a custom PostGIS type mapping, column type descriptions are truncated.&lt;/p&gt;


&lt;p&gt;How to reproduce:&lt;/p&gt;

&lt;p&gt;1) add a custom &apos;point&apos; type to Doctrine&apos;s type mapping&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;in a controller&apos;s boot method&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$em = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;container-&amp;gt;get(&apos;doctrine.orm.default_entity_manager&apos;);
$conn = $em-&amp;gt;getConnection();
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!Type::hasType(&apos;point&apos;)) {
  Type::addType(&apos;point&apos;, &apos;Demo\GeoBundle\Lib\Type\PointType&apos;);
  $conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;point&apos;, &apos;point&apos;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;PointType.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace Demo\GeoBundle\Lib\Type;

use Demo\GeoBundle\Lib\Point;

use Doctrine\DBAL\Types\Type; 
use Doctrine\DBAL\Platforms\AbstractPlatform;

class PointType &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Type {

  &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; POINT = &apos;point&apos;;

  /**
   *
   * @param array $fieldDeclaration
   * @param AbstractPlatform $platform
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; string 
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;geography(POINT,&apos;.Point::$SRID.&apos;)&apos;;
  }

  /**
   *
   * @param type $value
   * @param AbstractPlatform $platform
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Point 
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function convertToPHPValue($value, AbstractPlatform $platform)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Point::fromGeoJson($value);
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getName()
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; self::POINT;
    &lt;span class=&quot;code-comment&quot;&gt;//&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;geography(POINT,&apos;.Point::$SRID.&apos;)&apos;;
&lt;/span&gt;  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function convertToDatabaseValue($value, AbstractPlatform $platform)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $value-&amp;gt;toWKT();
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function canRequireSQLConversion()
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function convertToPHPValueSQL($sqlExpr, $platform)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;ST_AsGeoJSON(&apos;.$sqlExpr.&apos;) &apos;;
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function convertToDatabaseValueSQL($sqlExpr, AbstractPlatform $platform)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $sqlExpr;
  }

}

?&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;Point.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace Demo\GeoBundle\Lib;

use Demo\GeoBundle\Lib\GeoException;

class Point {
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $lat;
  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $lon;
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; $SRID = &apos;4326&apos;;

  &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; function __construct($lon, $lat) {
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat = $lat;
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon = $lon;
  }
  
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLongitude($lon) {
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon = $lon;
  }
  
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getLongitude() {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon;
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLatitude($lat) {
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat = $lat;
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getLatitude() {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat;
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function toGeoJson(){
    $array = array(&lt;span class=&quot;code-quote&quot;&gt;&quot;type&quot;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;Point&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;coordinates&quot;&lt;/span&gt; =&amp;gt; array ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat));
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; \json_encode($array);
  }

  /**
   *
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; string 
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function toWKT() {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;SRID=&apos;.self::$SRID.&apos;;POINT(&apos;.$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon.&apos; &apos;.$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat.&apos;)&apos;;
  }

  /**
   *
   * @param string $geojson
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Point 
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function fromGeoJson($geojson) 
  {
    $a = json_decode($geojson);
    &lt;span class=&quot;code-comment&quot;&gt;//check &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the geojson string is correct
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($a == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; or !isset($a-&amp;gt;type) or !isset($a-&amp;gt;coordinates)){
      &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; GeoException::badJsonString();
    }

    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($a-&amp;gt;type != &lt;span class=&quot;code-quote&quot;&gt;&quot;Point&quot;&lt;/span&gt;){
      &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; GeoException::badGeoType();
    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
      $lon = $a-&amp;gt;coordinates[0];
      $lat = $a-&amp;gt;coordinates[1];
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Point::fromLonLat($lon, $lat);
    }

  }
  
  /**
   *
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; string
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __toString() {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon . &apos; &apos; . $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat;
  }

  /**
   *
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; array
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function toArray() {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; array($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lon, $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;lat);
  }

  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function fromLonLat($lon, $lat)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (($lon &amp;gt; -180.0 &amp;amp;&amp;amp; $lon &amp;lt; 180.0) &amp;amp;&amp;amp; ($lat &amp;gt; -90.0 &amp;amp;&amp;amp; $lat &amp;lt; 90.0))
    {
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Point($lon, $lat);
    } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
      &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; GeoException::badCoordinates($lon, $lat);
    }
  }
}

?&amp;gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;GeoException.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace Demo\GeoBundle\Lib;

class GeoException &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; \RuntimeException
{
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct($message = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, \Exception $previous = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;, $code = 0)
    {
        parent::__construct($message, $code, $previous);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function badJSonString()
    {
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; GeoException(&lt;span class=&quot;code-quote&quot;&gt;&quot;Bad JSon string&quot;&lt;/span&gt;);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function badGeoType()
    {
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; GeoException(&lt;span class=&quot;code-quote&quot;&gt;&quot;Bad geo type&quot;&lt;/span&gt;);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;static&lt;/span&gt; function badCoordinates($lon, $lat)
    {
      &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; GeoException(&lt;span class=&quot;code-quote&quot;&gt;&quot;Bad coordinates: &quot;&lt;/span&gt; . $lon . &lt;span class=&quot;code-quote&quot;&gt;&quot; &quot;&lt;/span&gt; . $lat);
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;2) with Symfony2, create a simple entity using the Point type:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;TestPoint.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&amp;lt;?php

namespace Demo\TestBundle\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * @ORM\Entity
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;test_points&quot;&lt;/span&gt;)
 */
class TestPoint
{
  /**
   * @ORM\Id
   * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
   * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
   */
  &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;

  /**
   * @ORM\Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;point&quot;&lt;/span&gt;)
   */
  &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $coordinates;

  /**
   * Get id
   *
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; integer 
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getId()
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;id;
  }

  /**
   * Set coordinates
   *
   * @param point $coordinates
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Partner
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setCoordinates($coordinates)
  {
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates = $coordinates;
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;;
  }

  /**
   * Get coordinates
   *
   * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; point 
   */
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getCoordinates()
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates;
  }
  
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLongitude($lon)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
    {
      $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates = Point::fromLonLat($lon, 0);
    }
    &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
    {
      $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates-&amp;gt;setLongitude($lon);
    }
  }
  
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getLongitude()
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; ? 0 : $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates-&amp;gt;getLongitude();
  }
  
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setLatitude($lat)
  {
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
    {
      $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates = Point::fromLonLat(0, $lat);
    }
    &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
    {
      $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates-&amp;gt;setLatitude($lat);
    }
  }
  
  &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getLatitude()
  {
    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; ? 0 : $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;coordinates-&amp;gt;getLatitude();
  }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;3) use the update script to create the table:&lt;/p&gt;

&lt;p&gt;php app/console doctrine:schema:update --force --verbose&lt;/p&gt;


&lt;p&gt;4) run it again to update:&lt;/p&gt;

&lt;p&gt;php app/console doctrine:schema:update --force --verbose&lt;/p&gt;


&lt;p&gt;Errors should ensue:&lt;/p&gt;
&lt;div class=&quot;panel&quot; style=&quot;background-color: #FFFFCE;border-color: #ccc;border-style: dashed;border-width: 1px;&quot;&gt;&lt;div class=&quot;panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: dashed;border-bottom-color: #ccc;background-color: #F7D6C1;&quot;&gt;&lt;b&gt;Errors&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;panelContent&quot; style=&quot;background-color: #FFFFCE;&quot;&gt;
&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;                                                                        &lt;br/&gt;
  Unknown database type geography requested, Doctrine\DBAL\Platforms\PostgreSqlPlatform may not support it.                                                                                               &lt;/p&gt;



&lt;p&gt;Exception trace:&lt;br/&gt;
 () at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php:261&lt;br/&gt;
 Doctrine\DBAL\Platforms\AbstractPlatform-&amp;gt;getDoctrineTypeMapping() at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php:285&lt;br/&gt;
 Doctrine\DBAL\Schema\PostgreSqlSchemaManager-&amp;gt;_getPortableTableColumnDefinition() at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:672&lt;br/&gt;
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;_getPortableTableColumnList() at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:159&lt;br/&gt;
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableColumns() at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:254&lt;br/&gt;
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableDetails() at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:242&lt;br/&gt;
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTables() at /.../Symfony/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php:830&lt;br/&gt;
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;createSchema() at /.../Symfony/vendor/doctrine/lib/Doctrine/ORM/Tools/SchemaTool.php:689&lt;br/&gt;
 Doctrine\ORM\Tools\SchemaTool-&amp;gt;getUpdateSchemaSql() at /.../Symfony/vendor/doctrine/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/UpdateCommand.php:103&lt;br/&gt;
 Doctrine\ORM\Tools\Console\Command\SchemaTool\UpdateCommand-&amp;gt;executeSchemaCommand() at /.../Symfony/vendor/doctrine/lib/Doctrine/ORM/Tools/Console/Command/SchemaTool/AbstractCommand.php:59&lt;br/&gt;
 Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand-&amp;gt;execute() at /.../Symfony/vendor/symfony/src/Symfony/Bundle/DoctrineBundle/Command/Proxy/UpdateSchemaDoctrineCommand.php:62&lt;br/&gt;
 Symfony\Bundle\DoctrineBundle\Command\Proxy\UpdateSchemaDoctrineCommand-&amp;gt;execute() at /.../Symfony/vendor/symfony/src/Symfony/Component/Console/Command/Command.php:226&lt;br/&gt;
 Symfony\Component\Console\Command\Command-&amp;gt;run() at /.../Symfony/vendor/symfony/src/Symfony/Component/Console/Application.php:194&lt;br/&gt;
 Symfony\Component\Console\Application-&amp;gt;doRun() at /.../Symfony/vendor/symfony/src/Symfony/Bundle/FrameworkBundle/Console/Application.php:76&lt;br/&gt;
 Symfony\Bundle\FrameworkBundle\Console\Application-&amp;gt;doRun() at /.../Symfony/vendor/symfony/src/Symfony/Component/Console/Application.php:118&lt;br/&gt;
 Symfony\Component\Console\Application-&amp;gt;run() at /.../Symfony/app/console:22&lt;/p&gt;


&lt;p&gt;doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;What seems to be happening is that the returned type for the column holding the points is truncated. &quot;Full&quot; type is &apos;geography(Point,4326)&apos;, returned type from Doctrine is &apos;geography&apos; (missing the specifics).&lt;br/&gt;
Adding other custom mappings for PostGIS types, LineString for example, will result with the exact same error although the full type is &apos;geography(LineString,4326)&apos;. The above test case would still be erroneous with the full type returned as the mapping specifies a &apos;dbType&apos; known as &apos;point&apos; or &apos;linestring&apos; and not &apos;geography(Point,4326)&apos; or &apos;geography(LineString,4326)&apos;, adjustments should be made there.&lt;/p&gt;</description>
                <environment>Linux Debian Stable, Symfony 2.0, Doctrine 2.2.1, PostgreSQL, PostGIS</environment>
            <key id="14011">DBAL-337</key>
            <summary>Column types are truncated when mapping PostGIS types</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jderrough">Jonathan Derrough</reporter>
                        <labels>
                        <label>postgis</label>
                    </labels>
                <created>Tue, 4 Sep 2012 08:38:01 +0000</created>
                <updated>Fri, 7 Sep 2012 15:33:20 +0000</updated>
                    <resolved>Wed, 5 Sep 2012 16:55:19 +0000</resolved>
                            <version>2.2.1</version>
                                                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18596" author="jderrough" created="Tue, 4 Sep 2012 15:26:01 +0000"  >&lt;p&gt;Further investigation showed that the truncation makes sense in a general context as types (ex: varchar) are simplifications of complete types (ex: character varying (255)). But it still presents a problem for PostGIS users.&lt;/p&gt;

&lt;p&gt;A quick workaround would be to change the mapping to:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;in a controller&apos;s boot method&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$em = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;container-&amp;gt;get(&apos;doctrine.orm.default_entity_manager&apos;);
$conn = $em-&amp;gt;getConnection();
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!Type::hasType(&apos;point&apos;)) {
  Type::addType(&apos;point&apos;, &apos;Demo\GeoBundle\Lib\Type\PointType&apos;);
  $conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;geography&apos;, &apos;point&apos;);
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It seems to work fine with several custom PostGIS types mapped but it wasn&apos;t fully tested.&lt;/p&gt;</comment>
                    <comment id="18601" author="beberlei" created="Wed, 5 Sep 2012 16:55:19 +0000"  >&lt;p&gt;The way you do it its actually a workaround, but Doctrine Bundle has a way to configure the registerDoctrineMappingType() calls via configuration.&lt;/p&gt;

&lt;p&gt;Check with &quot;php app/console config:dump-reference DoctrineBundle&quot;&lt;/p&gt;</comment>
                    <comment id="18608" author="jderrough" created="Wed, 5 Sep 2012 18:35:27 +0000"  >&lt;p&gt;Yes, I am aware of the mapping configuration with the config file. I tested it again:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;config.yml&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
# Doctrine Configuration
doctrine:
    dbal:
        driver:   %database_driver%
        host:     %database_host%
        port:     %database_port%
        dbname:   %database_name%
        user:     %database_user%
        password: %database_password%
        charset:  UTF8
        types:
            point: Demo\GeoBundle\Lib\Type\PointType
            linestring: Demo\GeoBundle\Lib\Type\LineStringType
    orm:
        auto_generate_proxy_classes: %kernel.debug%
        auto_mapping: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But the issue here remains, the same error is outputed:&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;                                                                        &lt;br/&gt;
  Unknown database type geography requested, Doctrine\DBAL\Platforms\PostgreSqlPlatform may not suppo  &lt;br/&gt;
  rt it.&lt;/p&gt;

&lt;p&gt;As I detailed previously, the fetched type of a geography column is truncated. So my workaround to avoid the errors during update was to register my custom types with &apos;geography&apos; as db-type. It doesn&apos;t seem to be the right way since only one doctrine-type can be map a db-type (so here, &apos;geography&apos; would be associated with either &apos;point&apos; or &apos;linestring&apos;).&lt;/p&gt;</comment>
                    <comment id="18609" author="beberlei" created="Wed, 5 Sep 2012 21:06:21 +0000"  >&lt;p&gt;Thats only half the picture, see &quot;mapping_types&quot; here &lt;a href=&quot;http://symfony.com/doc/current/reference/configuration/doctrine.html&quot; class=&quot;external-link&quot;&gt;http://symfony.com/doc/current/reference/configuration/doctrine.html&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18618" author="jderrough" created="Fri, 7 Sep 2012 15:33:20 +0000"  >&lt;p&gt;With the updated config.yml:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;config.yml&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
# Doctrine Configuration
doctrine:
    dbal:
        driver:   %database_driver%
        host:     %database_host%
        port:     %database_port%
        dbname:   %database_name%
        user:     %database_user%
        password: %database_password%
        charset:  UTF8
        types:
            point: Demo\GeoBundle\Lib\Type\PointType
            linestring: Demo\GeoBundle\Lib\Type\LineStringType
        mapping_types:
            geography(point,4326): point
            geography(linestring,4326): linestring
    orm:
        auto_generate_proxy_classes: %kernel.debug%
        auto_mapping: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;errors are still showing.&lt;/p&gt;

&lt;p&gt;Using:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;config.yml&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
        mapping_types:
            geography: point
            geography: linestring
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;errors are gone but I guess it is the same as:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
$conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;geography&apos;, &apos;point&apos;);
$conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;geography&apos;, &apos;linestring&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;and I don&apos;t see how it would be right since the &apos;linestring&apos; mapping would replace the &apos;point&apos; mapping.&lt;/p&gt;

&lt;p&gt;I&apos;m affraid I don&apos;t get it.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-336] [GH-195] Removed duplicate table check so that ManyToMany relationships can have two owning entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-336</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of intrepion:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/195&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/195&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Whenever there is a ManyToMany relationship with both entities needing ownership, running doctrine:schema:update throws an exception due to a duplicate table definition when, in fact, it is the same table.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14005">DBAL-336</key>
            <summary>[GH-195] Removed duplicate table check so that ManyToMany relationships can have two owning entities</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 2 Sep 2012 16:19:59 +0000</created>
                <updated>Wed, 5 Sep 2012 16:53:34 +0000</updated>
                    <resolved>Wed, 5 Sep 2012 16:53:34 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18597" author="beberlei" created="Tue, 4 Sep 2012 17:09:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-195&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/195&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/195&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-335] Is MasterSlaveConnection implemented correctly - seems to overwrite master connection on transaction methods?</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-335</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Forgive me to doubt, but I think there may be a bug in MasterSlaveConnection.&lt;/p&gt;

&lt;p&gt;It&apos;s easier to understand what I&apos;m saying by debugging and tracing the flow, but I&apos;ll illustrate it with gists.&lt;/p&gt;

&lt;p&gt;First, here is a simple service method to create a user. It opens up a transaction, persists the user, commits and returns. On error, if there is an active transaction, rollback. Here is the gist:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gist.github.com/3547674&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3547674&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The &quot;$conn-&amp;gt;beginTransaction();&quot; line is where we trace through (the remainder of the service method is now irrelevant). Looking into MasterSlaveConnection.php, we see the method tries to connect to the master connection (call this point ###):&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gist.github.com/3547720&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3547720&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now looking in the next gist, we see what happens when &quot;$this-&amp;gt;connect(&apos;master&apos;);&quot; is called. At this point it&apos;s not that interesting, the internal &quot;$this-&amp;gt;_conn&quot; property is set to &quot;master&quot;.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gist.github.com/3547750&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3547750&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now here lies the bug I believe. &quot;parent::beginTransaction();&quot; is called. When looking into this method, we see that another call is made to connect but this time without &quot;master&quot; as the argument (i.e. connect to slave). This call to connect is made before incrementing the transaction nesting level.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gist.github.com/3547808&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3547808&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Now, I won&apos;t do another gist for &quot;MasterSlaveConnection::connect&quot;, but if you refer to the file at line 13 &lt;a href=&quot;https://gist.github.com/3547750#file_master_slave_connection.php&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3547750#file_master_slave_connection.php&lt;/a&gt;, you will see that it checks the transaction nesting level and if it is there, forces master. However, we don&apos;t increment the level until after the method returns, so the slave is used. Ultimately, this results in the internal &quot;$this-&amp;gt;_conn&quot; property set to the &quot;slave&quot; connection which violates our original action at ### above where we said we want to connect to &quot;master&quot;.&lt;/p&gt;

&lt;p&gt;Am I missing something here? Here is a gist the is a basic attempt at fixing this one method. It simply copies the code from the parent method except does not connect twice. I believe the same would have to occur for all the other methods unless it can be fixed once at the &quot;MasterSlaveConnection::connect&quot; level.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://gist.github.com/3547880&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/3547880&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ve just fleshed out &quot;beginTransaction&quot;, &quot;commit&quot; and &quot;rollBack&quot; in &quot;MasterSlaveConnection&quot; by basically copying and pasting the code from the parent class and for my failing use case, this fixes the issue. However, it did require updating &quot;Connection&quot; slightly so that I had access to some private variables.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13999">DBAL-335</key>
            <summary>Is MasterSlaveConnection implemented correctly - seems to overwrite master connection on transaction methods?</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jonathaningram">Jonathan Ingram</reporter>
                        <labels>
                    </labels>
                <created>Fri, 31 Aug 2012 05:51:59 +0000</created>
                <updated>Sat, 22 Sep 2012 23:46:31 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 11:32:04 +0000</resolved>
                            <version>2.3</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="18591" author="lstrojny" created="Fri, 31 Aug 2012 10:01:42 +0000"  >&lt;p&gt;This looks indeed like a bug. From a first glimpse the fix would be to use master, if master is already connected.&lt;/p&gt;</comment>
                    <comment id="18603" author="beberlei" created="Wed, 5 Sep 2012 17:11:27 +0000"  >&lt;p&gt;This only happens when &quot;keepSlave&quot; = true, because then the master is not written into the slave property aswell:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
   } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
     $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connections[&apos;slave&apos;] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connectTo($connectionName);
   } 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Are you using keepSlave = true?&lt;/p&gt;</comment>
                    <comment id="18610" author="jonathaningram" created="Wed, 5 Sep 2012 21:50:23 +0000"  >&lt;p&gt;Yes I am. Does that render this moot or still a bug?&lt;/p&gt;</comment>
                    <comment id="18611" author="beberlei" created="Thu, 6 Sep 2012 05:38:15 +0000"  >&lt;p&gt;Its still a bug, but it helps to know why this happens.&lt;/p&gt;</comment>
                    <comment id="18662" author="beberlei" created="Mon, 17 Sep 2012 11:32:23 +0000"  >&lt;p&gt;Fixed in master and 2.3, can you test it?&lt;/p&gt;</comment>
                    <comment id="18681" author="jonathaningram" created="Wed, 19 Sep 2012 04:35:44 +0000"  >&lt;p&gt;Thanks for doing this. I will test it shortly.&lt;/p&gt;</comment>
                    <comment id="18699" author="antrophy" created="Sat, 22 Sep 2012 23:46:31 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;not sure if you managed to test this but now test on mysql database fails with results below.&lt;br/&gt;
Probably some typo.&lt;/p&gt;


&lt;p&gt;There was 1 error:&lt;/p&gt;

&lt;p&gt;1) Doctrine\Tests\DBAL\Functional\MasterSlaveConnectionTest::testKeepSlaveBeginTransactionStaysOnMaster&lt;br/&gt;
Exception: &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt; An exception occurred while executing &apos;INSERT INTO master_slave_table (test_int) VALUES &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/help_16.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&apos; with params &lt;/p&gt;
{&quot;1&quot;:30}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;23000&amp;#93;&lt;/span&gt;: Integrity constraint violation: 1062 Duplicate entry &apos;30&apos; for key &apos;PRIMARY&apos;&lt;/p&gt;

&lt;p&gt;With queries:&lt;br/&gt;
2. SQL: &apos;CREATE TABLE master_slave_table (test_int INT NOT NULL, PRIMARY KEY(test_int)) DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci ENGINE = InnoDB&apos; Params: &lt;/p&gt;

&lt;p&gt;Trace:&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:793&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:231&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:539&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:285&lt;br/&gt;
/home/ivan/git/dbal2/dbal/tests/Doctrine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php:92&lt;/p&gt;


&lt;p&gt;/home/ivan/git/dbal2/dbal/tests/Doctrine/Tests/DbalFunctionalTestCase.php:73&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:793&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:231&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:539&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:285&lt;br/&gt;
/home/ivan/git/dbal2/dbal/tests/Doctrine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php:92&lt;/p&gt;

&lt;p&gt;Caused by&lt;br/&gt;
Doctrine\DBAL\DBALException: An exception occurred while executing &apos;INSERT INTO master_slave_table (test_int) VALUES &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/help_16.gif&quot; height=&quot;16&quot; width=&quot;16&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&apos; with params &lt;/p&gt;
{&quot;1&quot;:30}
&lt;p&gt;:&lt;/p&gt;

&lt;p&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;23000&amp;#93;&lt;/span&gt;: Integrity constraint violation: 1062 Duplicate entry &apos;30&apos; for key &apos;PRIMARY&apos;&lt;/p&gt;

&lt;p&gt;/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/DBALException.php:47&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:786&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:231&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:539&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:285&lt;br/&gt;
/home/ivan/git/dbal2/dbal/tests/Doctrine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php:92&lt;/p&gt;

&lt;p&gt;Caused by&lt;br/&gt;
PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;23000&amp;#93;&lt;/span&gt;: Integrity constraint violation: 1062 Duplicate entry &apos;30&apos; for key &apos;PRIMARY&apos;&lt;/p&gt;

&lt;p&gt;/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:786&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:231&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connection.php:539&lt;br/&gt;
/home/ivan/git/dbal2/dbal/lib/Doctrine/DBAL/Connections/MasterSlaveConnection.php:285&lt;br/&gt;
/home/ivan/git/dbal2/dbal/tests/Doctrine/Tests/DBAL/Functional/MasterSlaveConnectionTest.php:92&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-334] [GH-194] Small test fixes for PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-334</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of posulliv:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/194&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/194&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;When running the test suite against a clean PostgreSQL install on a 64-bit system I hit 2 issues:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;dropDatabase calls fail unless a database is manually created&lt;/li&gt;
	&lt;li&gt;TypeConversionTest::testIdempotentDataConversion fails expecting bigint type to be converted to a string. PostgreSQL seems to detect 32 vs 64 bit systems and casts correctly for bigint types.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;This small patch allows the test suite to run successfully for me against clean MySQL &amp;amp; PostgreSQL installs.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13998">DBAL-334</key>
            <summary>[GH-194] Small test fixes for PostgreSQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Aug 2012 23:00:44 +0000</created>
                <updated>Wed, 5 Sep 2012 17:25:22 +0000</updated>
                    <resolved>Wed, 5 Sep 2012 17:25:22 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18605" author="beberlei" created="Wed, 5 Sep 2012 17:23:24 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-194&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/194&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/194&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18606" author="beberlei" created="Wed, 5 Sep 2012 17:25:22 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-333] [GH-193] Add DBAL\TypeAwareObject.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-333</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Romain-Geissler:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/193&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/193&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This PR adds a common interface for custom object values that requires some PHP &amp;lt;-&amp;gt; SQL conversions, which allows to specify what DBAL type must be used for conversion.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13996">DBAL-333</key>
            <summary>[GH-193] Add DBAL\TypeAwareObject.</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Aug 2012 16:05:37 +0000</created>
                <updated>Wed, 5 Sep 2012 17:21:13 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18588" author="beberlei" created="Thu, 30 Aug 2012 13:27:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-193&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/193&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/193&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-332] Memory option for Sqlite driver does nothing</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-332</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;m trying to configure a &quot;memory&quot; sqlite database, as described here: &lt;a href=&quot;http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#pdo-sqlite&quot; class=&quot;external-link&quot;&gt;http://docs.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#pdo-sqlite&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So here is my configuration (config_test.yml) :&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;div class=&quot;error&quot;&gt;&lt;span class=&quot;error&quot;&gt;Unable to find source-code formatter for language: yml.&lt;/span&gt; Available languages are: actionscript, html, java, javascript, none, sql, xhtml, xml&lt;/div&gt;&lt;pre&gt; 
doctrine:
    dbal:
        driver:    pdo_sqlite
        memory:    &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
        user:      db_user
        password:  db_pwd
        charset:   UTF8
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;I&apos;m then running &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;./app/console doctrine:database:create --env=test&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; and the result is a &lt;b&gt;&quot;myBdName&quot;&lt;/b&gt; db file (the filename contains the quote!!) in my root folder.&lt;/p&gt;

&lt;p&gt;I don&apos;t understand why the file &lt;a href=&quot;http://www.doctrine-project.org/api/dbal/2.3/source-class-Doctrine.DBAL.Schema.SqliteSchemaManager.html#46&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/api/dbal/2.3/source-class-Doctrine.DBAL.Schema.SqliteSchemaManager.html#46&lt;/a&gt; is creating a &lt;b&gt;path&lt;/b&gt; option with my DB name, if I comment the line 57, everything seems fine (no more file created).&lt;/p&gt;

&lt;p&gt;I have seen some memory related options in the Doctrine test suite so maybe I&apos;m doing it wrong, and in that case that&apos;s a documentation issue I can work on.&lt;/p&gt;

&lt;p&gt;Thx,&lt;br/&gt;
Damien&lt;/p&gt;</description>
                <environment>PHP Version 5.3.10&lt;br/&gt;
SQLite Library 3.7.9&lt;br/&gt;
Doctrine 2.3.x-dev&lt;br/&gt;
Dbal 2.3.x-dev&lt;br/&gt;
Symfony 2.1 RC2</environment>
            <key id="13995">DBAL-332</key>
            <summary>Memory option for Sqlite driver does nothing</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="dalexandre">Damien ALEXANDRE</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Aug 2012 15:52:19 +0000</created>
                <updated>Mon, 17 Sep 2012 11:01:35 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 11:01:35 +0000</resolved>
                            <version>2.2.2</version>
                <version>2.3</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18604" author="beberlei" created="Wed, 5 Sep 2012 17:20:42 +0000"  >&lt;p&gt;You cannot create an in memory database using Symfonys database:create. The in memory database will be closed when the request ends. So its completly useless this way. You have to recreate it in every request that you want to use it. It is just good for one request.&lt;/p&gt;</comment>
                    <comment id="18614" author="dalexandre" created="Thu, 6 Sep 2012 14:48:34 +0000"  >&lt;p&gt;My example with &quot;app/console&quot; is misleading,&lt;br/&gt;
what I want to do is building a memory SQLite database on the fly and run some code right after it (in a phpunit test).&lt;/p&gt;

&lt;p&gt;The issue here is that there is an option documented (first link) that doesn&apos;t work / is not implemented (second link). And a physic file is generated, it should not.&lt;/p&gt;

&lt;p&gt;As your answer seems to be based on the mistaken impression that I wanted to use volatile database in a persistent way, I&apos;m reopening this issue. &lt;/p&gt;

&lt;p&gt;Thanks for your time.&lt;br/&gt;
Damien.&lt;/p&gt;</comment>
                    <comment id="18615" author="beberlei" created="Fri, 7 Sep 2012 07:34:17 +0000"  >&lt;p&gt;Try removing the user/password keys. memory database connection works for me, this seems to be a configuration issue.&lt;/p&gt;

&lt;p&gt;If you want to create an in memory db for testing then you have to create the schema with SchemaTool inside the phpunit tests.&lt;/p&gt;</comment>
                    <comment id="18661" author="beberlei" created="Mon, 17 Sep 2012 11:01:35 +0000"  >&lt;p&gt;No feedback on potential fix, this issue is either misconfiguration or wrong use of the API. I couldn&apos;t reproduce this and it works for me (TM).&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-331] [GH-192] ExpressionBuilder in and notIn methods</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-331</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Xobb:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/192&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/192&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;ExpressionBuilder is missing *&lt;b&gt;in&lt;/b&gt;* and *&lt;b&gt;not in&lt;/b&gt;* methods to produce these statements.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13990">DBAL-331</key>
            <summary>[GH-192] ExpressionBuilder in and notIn methods</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="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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 27 Aug 2012 22:26:07 +0000</created>
                <updated>Wed, 29 Aug 2012 09:37:50 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 09:37:50 +0000</resolved>
                                            <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18558" author="beberlei" created="Wed, 29 Aug 2012 08:38:41 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-192&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/192&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/192&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-330] [GH-191] Akiban Driver Implementation that Uses PDO</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-330</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of posulliv:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/191&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/191&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Based on discussion in pull request 188 with @stof, I decided to modify the implementation for Akiban to use the PostgreSQL PDO driver instead of the native PHP client for PostgreSQL.&lt;/p&gt;

&lt;p&gt;One piece of functionality that does not work with current version of Akiban is lastInsertId. This is because the implementation of CURRVAL for Akiban requires both schema name and sequence name be provided whereas PostgreSQL only requires sequence name (&lt;span class=&quot;error&quot;&gt;&amp;#91;relevant source&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_driver.c#L360&quot; class=&quot;external-link&quot;&gt;https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_driver.c#L360&lt;/a&gt;)). I will attempt to get CURRVAL in Akiban implemented to have the same parameters as PostgreSQL.&lt;/p&gt;

&lt;p&gt;This causes a few tests to fail in the test suite right now. Is there a way to mark a test as expected to fail for a specific database driver with the test suite? What I did in this pull request is skip any tests that use lastInsertId when testing against the Akiban platform. I&apos;ll update these tests to not be skipped when CURRVAL works as expected. Let me know if there is a better way to do that.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13989">DBAL-330</key>
            <summary>[GH-191] Akiban Driver Implementation that Uses PDO</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>akiban</label>
                    </labels>
                <created>Mon, 27 Aug 2012 21:40:04 +0000</created>
                <updated>Tue, 11 Dec 2012 15:55:56 +0000</updated>
                                    <version>2.4</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-329] [GH-190] Fix DDC-1978</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-329</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of FabioBatSilva:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/190&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/190&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1978&quot; title=&quot;SQLParserUtils array_fill tries to create array with zero elements when empty parameter is bound&quot;&gt;&lt;del&gt;DDC-1978&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1978&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1978&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13987">DBAL-329</key>
            <summary>[GH-190] Fix DDC-1978</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 26 Aug 2012 00:00:53 +0000</created>
                <updated>Wed, 29 Aug 2012 09:36:59 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 09:36:59 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18560" author="beberlei" created="Wed, 29 Aug 2012 09:05:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-190&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/190&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/190&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-328] [GH-189] Changed &apos;implements&apos; by &apos;extends&apos; on SQLAzureFederationsSynchronizer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-328</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mdaloia:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/189&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/189&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This error was introduced with the changes commited on SHA: doctrine/dbal@12f381f1254f756114267e1a1e71d0a783bfaf1c&lt;/p&gt;</description>
                <environment></environment>
            <key id="13986">DBAL-328</key>
            <summary>[GH-189] Changed &apos;implements&apos; by &apos;extends&apos; on SQLAzureFederationsSynchronizer</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Aug 2012 18:53:45 +0000</created>
                <updated>Mon, 27 Aug 2012 20:27:51 +0000</updated>
                    <resolved>Mon, 27 Aug 2012 20:27:51 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18543" author="beberlei" created="Sun, 26 Aug 2012 00:16:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-189&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/189&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/189&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18548" author="fabio.bat.silva" created="Mon, 27 Aug 2012 20:27:51 +0000"  >&lt;p&gt;Fixed by : &lt;a href=&quot;https://github.com/doctrine/dbal/commit/bb88ba71c2c1d8f172836cd4e32470e562970317&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/bb88ba71c2c1d8f172836cd4e32470e562970317&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-327] [GH-188] Akiban driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-327</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of posulliv:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/188&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/188&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;An initial implementation of a driver for the &lt;span class=&quot;error&quot;&gt;&amp;#91;Akiban Server&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://www.akiban.com/akiban-server&quot; class=&quot;external-link&quot;&gt;http://www.akiban.com/akiban-server&lt;/a&gt;). You will notice in the diff there are some features Akiban does not yet support in its latest release but are planned for future releases.&lt;/p&gt;

&lt;p&gt;I wasn&apos;t sure if pull request was the best way to start a dialog to get this work accepted or whether the mailing list is more appropriate. Please let me know and I will do as suggested.&lt;/p&gt;

&lt;p&gt;I am an engineer at Akiban and am very willing to maintain/improve this driver.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13985">DBAL-327</key>
            <summary>[GH-188] Akiban driver</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Aug 2012 02:35:14 +0000</created>
                <updated>Wed, 29 Aug 2012 08:37:39 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18549" author="beberlei" created="Mon, 27 Aug 2012 21:40:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-188&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/188&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/188&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18553" author="posulliv" created="Tue, 28 Aug 2012 15:00:47 +0000"  >&lt;p&gt;Yes, this ticket has been superseded by ticket &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-330&quot; class=&quot;external-link&quot;&gt;330&lt;/a&gt;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-326] [GH-187] Quote column names during insert, if necessary</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-326</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dobesv:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/187&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/187&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This fixes an issue I ran into where if I tried to insert something with a column name that required quoting, I would have to manually quote it myself.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13979">DBAL-326</key>
            <summary>[GH-187] Quote column names during insert, if necessary</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 20 Aug 2012 19:44:06 +0000</created>
                <updated>Wed, 29 Aug 2012 09:03:15 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 09:03:15 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18559" author="beberlei" created="Wed, 29 Aug 2012 09:03:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-187&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/187&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/187&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-325] [GH-186] Added third an optional argument `types` to use prepared statement</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-325</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of timoshenko:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/186&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/186&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13974">DBAL-325</key>
            <summary>[GH-186] Added third an optional argument `types` to use prepared statement</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 18 Aug 2012 15:32:27 +0000</created>
                <updated>Wed, 29 Aug 2012 09:04:44 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-324] SchemaManager should first look into comment instead of infer the type first.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-324</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using schema tool, Doctrine tries to infer the Doctrine type via the mapped types in Platform.&lt;br/&gt;
It should first try to read from the comment; if found, ignore the Database type inference.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13972">DBAL-324</key>
            <summary>SchemaManager should first look into comment instead of infer the type first.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2012 17:11:19 +0000</created>
                <updated>Tue, 14 May 2013 20:50:07 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18561" author="beberlei" created="Wed, 29 Aug 2012 09:39:11 +0000"  >&lt;p&gt;Why is this a bug? Can you say some more about why we need to do this and what error occurs?&lt;/p&gt;</comment>
                    <comment id="18580" author="guilhermeblanco" created="Wed, 29 Aug 2012 20:05:05 +0000"  >&lt;p&gt;This issue is strictly correlated to the commit I&apos;ve done here: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/e25c774dde971dc4afd40648e9ccd0af53b34ce9&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/e25c774dde971dc4afd40648e9ccd0af53b34ce9&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mainly, we may have legacy database that we do know how Doctrine should operate. Under this circumstance, we may want to add a comment to the field defining the Doctrine DBAL type.&lt;br/&gt;
Even though after doing this, Doctrine still complains (in my situation, a SET column type) that it&apos;s unable to handle this column type.&lt;/p&gt;

&lt;p&gt;That happens because MySQL Schema Manager (and others) first looks for the column type:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php#L112&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php#L112&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L312&lt;/a&gt;&lt;br/&gt;
which automatically fails.&lt;/p&gt;

&lt;p&gt;But if we first try to look for the commented data type:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php#L884&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php#L884&lt;/a&gt;&lt;br/&gt;
And forget about the rest if it finds one definition there, it would allow even unknown data types to be managed instead of forcing to define the DBAL Type compatible.&lt;/p&gt;</comment>
                    <comment id="20383" author="steve@onzra.com" created="Tue, 14 May 2013 20:50:07 +0000"  >&lt;p&gt;This also applies for a type of yaml. &lt;br/&gt;
Example:&lt;/p&gt;

&lt;p&gt;    /** @Column(type=&quot;yaml&quot;) */&lt;br/&gt;
    protected $data = array();&lt;/p&gt;

&lt;p&gt;./scripts/doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
ALTER TABLE meta CHANGE data data LONGTEXT NOT NULL;&lt;/p&gt;

&lt;p&gt;Very frustrating.... Might be related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-42&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-323] [GH-185] Add schema changes for length for postgres</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-323</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mvrhov:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/185&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/185&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13969">DBAL-323</key>
            <summary>[GH-185] Add schema changes for length for postgres</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2012 05:15:24 +0000</created>
                <updated>Sat, 6 Oct 2012 10:23:13 +0000</updated>
                    <resolved>Sat, 6 Oct 2012 10:22:07 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-322] Change Detection fails when &apos;unsigned&apos; is used in MySQL Schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-322</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13964">DBAL-322</key>
            <summary>Change Detection fails when &apos;unsigned&apos; is used in MySQL Schema</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 14 Aug 2012 06:00:52 +0000</created>
                <updated>Tue, 14 Aug 2012 21:10:15 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 21:10:15 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18503" author="mstoehr" created="Tue, 14 Aug 2012 07:24:28 +0000"  >&lt;p&gt;This has been already fixed in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/e44a6c36a8d9e0aa8d8abb2c91c443ced5a6e39e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/e44a6c36a8d9e0aa8d8abb2c91c443ced5a6e39e&lt;/a&gt;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-321] [GH-184] Added INSERT support to dbal QueryBuilder</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-321</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Tim-Erwin:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/184&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/184&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;See also &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-320&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-320&lt;/a&gt;&lt;br/&gt;
Please review and commit as fits.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13962">DBAL-321</key>
            <summary>[GH-184] Added INSERT support to dbal QueryBuilder</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Aug 2012 13:12:28 +0000</created>
                <updated>Tue, 14 Aug 2012 20:49:18 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-320] allow SQL QueryBuilder to do INSERTS</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-320</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;With&lt;/p&gt;

&lt;p&gt;$db = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);&lt;br/&gt;
$qb = $db-&amp;gt;createQueryBuilder();&lt;/p&gt;

&lt;p&gt;this QueryBuilder I&apos;m able to do SELECT, UPDATE and DELETE. However, INSERT is not possible. Are there any good reasons for this?&lt;/p&gt;

&lt;p&gt;Attached you find a patch that until now works fine for me. I don&apos;t know, however, if there are any side effects.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13961">DBAL-320</key>
            <summary>allow SQL QueryBuilder to do INSERTS</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tcm">Tim Mundt</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Aug 2012 10:45:41 +0000</created>
                <updated>Mon, 13 Aug 2012 13:12:47 +0000</updated>
                                    <version>2.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18489" author="ocramius" created="Mon, 13 Aug 2012 10:46:59 +0000"  >&lt;p&gt;Insert is not supported by DQL&lt;/p&gt;</comment>
                    <comment id="18490" author="tcm" created="Mon, 13 Aug 2012 11:15:52 +0000"  >&lt;p&gt;Well, that was quick and not helpful. I have read about the QueryBuilder in the ORM package. For some reason with persistence (that other libraries don&apos;t have), insert cannot be supported. However, I&apos;m talking about DBAL here. What good reason is there not to support INSERT??&lt;/p&gt;</comment>
                    <comment id="18491" author="tcm" created="Mon, 13 Aug 2012 11:16:30 +0000"  >&lt;p&gt;see previous comment, I&apos;d appreciate some clarification&lt;/p&gt;</comment>
                    <comment id="18492" author="ocramius" created="Mon, 13 Aug 2012 11:30:30 +0000"  >&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/secure/ViewProfile.jspa?name=tcm&quot; class=&quot;user-hover&quot; rel=&quot;tcm&quot;&gt;Tim Mundt&lt;/a&gt; Ouch, no, it was my fault, sorry. &lt;br/&gt;
I confused the project related to the issue.&lt;/p&gt;</comment>
                    <comment id="18493" author="ocramius" created="Mon, 13 Aug 2012 11:34:13 +0000"  >&lt;p&gt;This is actually valid (even the patch, though it needs to adds tests)&lt;/p&gt;</comment>
                    <comment id="18494" author="tcm" created="Mon, 13 Aug 2012 11:56:16 +0000"  >&lt;p&gt;Glad to hear there seems to be no fundamental problem with this. Can I somehow help this patch go into the code? I&apos;m not familiar with the tests here. If you give me some pointer, maybe I can come up with something useful. On the other hand, it could be a good idea for some more involved people to have a look at this before.&lt;/p&gt;</comment>
                    <comment id="18496" author="ocramius" created="Mon, 13 Aug 2012 12:13:24 +0000"  >&lt;p&gt;You&apos;d need to add tests in &lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php&lt;/a&gt; (to be included in your patch or in a github pull request)&lt;br/&gt;
A Github PR is also the fastest way to get your code reviewed since not everyone visits the issue tracker.&lt;/p&gt;</comment>
                    <comment id="18497" author="tcm" created="Mon, 13 Aug 2012 13:12:47 +0000"  >&lt;p&gt;Here&apos;s the PR: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/184&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/184&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11310" name="INSERT-for-doctrine-SQL-QueryBuilder.patch" size="2479" author="tcm" created="Mon, 13 Aug 2012 10:45:41 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-319] Doctrine\DBAL\Types\Type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-319</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The API could be improved in the next major release:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Type::add() instead of addType()&lt;/li&gt;
	&lt;li&gt;Type::isRegistered() instead of hasType() (has sounds weird)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Etc.. I think the &apos;type&apos; in the methods is redundant since Type is already the object I am dealing with.&lt;/p&gt;

&lt;p&gt;I&apos;d also like a remove() method to unregister a type at runtime. Would make testing a little easier and I don&apos;t have to check with hasType() etc..&lt;/p&gt;</description>
                <environment></environment>
            <key id="13960">DBAL-319</key>
            <summary>Doctrine\DBAL\Types\Type</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 18:03:54 +0000</created>
                <updated>Sun, 12 Aug 2012 18:34:28 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18485" author="ocramius" created="Sun, 12 Aug 2012 18:11:07 +0000"  >&lt;p&gt;I don&apos;t think those namings are really important.&lt;br/&gt;
There&apos;s one major change to do, which is to somehow get rid of the staticness of the `Doctrine\DBAL\Types\Type` class, and it is not a simple task.&lt;br/&gt;
It would also be interesting to set the type objects manually, such as a database `password` type that does encryption/decryption based on a given service. That cannot be done without staticness right now, which renders two different connections requiring the same functionality but with different parameters very difficult.&lt;/p&gt;</comment>
                    <comment id="18486" author="till" created="Sun, 12 Aug 2012 18:34:28 +0000"  >&lt;p&gt;I agree on the static. But I&apos;d also like the API to be cleaned up and the remove method.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-318] getSQLDeclaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-318</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/Type.php#L119-L125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/Type.php#L119-L125&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Should define a @return type. Otherwise you have to step through other types to figure this out.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13959">DBAL-318</key>
            <summary>getSQLDeclaration</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 18:01:26 +0000</created>
                <updated>Sun, 19 Aug 2012 22:36:37 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18529" author="stof" created="Sun, 19 Aug 2012 22:19:48 +0000"  >&lt;p&gt;Already fixed in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-317] [GH-183] Fix unsigned columns in MySql</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-317</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of acasademont:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/183&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/183&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Unsigned column properties were never set. In consequence all migrations diff were trying to change the column definition when it was already changed. See symfony/symfony#3560&lt;/p&gt;

&lt;p&gt;Would it be also nice to add some test to avoid regressions, but i don&apos;t know where it would be a nice place to put them.&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13948">DBAL-317</key>
            <summary>[GH-183] Fix unsigned columns in MySql</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Aug 2012 11:24:54 +0000</created>
                <updated>Tue, 14 Aug 2012 21:21:05 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 21:20:36 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18478" author="beberlei" created="Wed, 8 Aug 2012 13:49:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-183&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/183&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/183&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18509" author="asm89" created="Tue, 14 Aug 2012 21:21:05 +0000"  >&lt;p&gt;Duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-322&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-322&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-316] Incorrect parameter SERVICE_NAME</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-316</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;At line 63, the driver PDOOracle, the parameter SERVICE_NAME is receiving the value of &apos;dbname&apos; and not &apos;service&apos;.&lt;/p&gt;

&lt;p&gt;Sorry, my English is bad!&lt;/p&gt;</description>
                <environment>Windows 7, ZendServer-CE-php-5.4.0-5.6.0-Windows_x86 and Oracle 10</environment>
            <key id="13946">DBAL-316</key>
            <summary>Incorrect parameter SERVICE_NAME</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="asm89">Alexander</assignee>
                                <reporter username="leandrogf">Leandro Guimar&#227;es Fernandes</reporter>
                        <labels>
                        <label>oracle</label>
                    </labels>
                <created>Tue, 7 Aug 2012 13:06:45 +0000</created>
                <updated>Sun, 10 Feb 2013 00:00:03 +0000</updated>
                    <resolved>Sun, 10 Feb 2013 00:00:03 +0000</resolved>
                            <version>2.3</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19513" author="asm89" created="Sun, 10 Feb 2013 00:00:03 +0000"  >&lt;p&gt;This is not a bug. Read the code. &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt; It checks if the parameter is set and if it&apos;s &quot;true&quot;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-315] [GH-182] Added a missing method in the Constraint interface</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-315</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of stof:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/182&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/182&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This adds a missing method in the Constraint interface. The method is already defined in AbstractAsset which is extended by both classes implementing the interface. the AbstractPlatform is calling this method on objects after checking they are implementing the interface. So either the method should be part of the interface, or all places using the interface as typehint should be refactored to check for the classes (examples can be found &lt;span class=&quot;error&quot;&gt;&amp;#91;here&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L1029&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L1029&lt;/a&gt;) and &lt;span class=&quot;error&quot;&gt;&amp;#91;there&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L1254&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L1254&lt;/a&gt;)).&lt;/p&gt;

&lt;p&gt;Adding a method in an interface is technically a BC break but this method is not really a public extension point. what do you think @beberlei ?&lt;/p&gt;</description>
                <environment></environment>
            <key id="13945">DBAL-315</key>
            <summary>[GH-182] Added a missing method in the Constraint interface</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="asm89">Alexander</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Aug 2012 23:33:57 +0000</created>
                <updated>Tue, 14 Aug 2012 21:33:08 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 21:33:08 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18511" author="beberlei" created="Tue, 14 Aug 2012 21:32:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-182&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/182&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/182&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-314] [GH-180] Fixed some phpdoc</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-314</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of stof:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/180&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/180&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This fixes some phpdoc in the AbstractPlatform and in some child classes. I haven&apos;t checked all child classes to ensure that all phpdoc is right now, but the abstract one is now accurate (but a bunch of method are missing their phpdoc altogether)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13944">DBAL-314</key>
            <summary>[GH-180] Fixed some phpdoc</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Aug 2012 23:22:24 +0000</created>
                <updated>Tue, 14 Aug 2012 21:48:41 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 21:48:41 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18512" author="beberlei" created="Tue, 14 Aug 2012 21:36:21 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-180&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/180&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/180&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-313] When creating foreign key constraints, the AbstractPlatform class does not quote the referenced table.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-313</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a table that is using a reserved MySQL keyword (right) and it&apos;s quoted in all the generated SQL but not in the foreign key constraint.&lt;/p&gt;

&lt;p&gt;When I use &lt;em&gt;doctrine.php orm:schema-tool:create&lt;/em&gt; I get this SQL line:&lt;br/&gt;
ALTER TABLE website ADD CONSTRAINT FK_476F5DE7B196EE6E FOREIGN KEY (right_id) REFERENCES right (id)&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13943">DBAL-313</key>
            <summary>When creating foreign key constraints, the AbstractPlatform class does not quote the referenced table.</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="majoyal">Marc-Andr&#233; Joyal</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Aug 2012 19:29:43 +0000</created>
                <updated>Wed, 1 May 2013 18:41:40 +0000</updated>
                    <resolved>Wed, 1 May 2013 18:41:40 +0000</resolved>
                            <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>5</watches>
                        <comments>
                    <comment id="18542" author="fabio.bat.silva" created="Sun, 26 Aug 2012 00:13:54 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Could you try it with doctrine 2.3 ?&lt;br/&gt;
There are lot of changes about quotes.&lt;br/&gt;
if it fails even with 2.3 changes please attach your entities.&lt;/p&gt;


&lt;p&gt;Thanks..&lt;/p&gt;</comment>
                    <comment id="18583" author="posulliv" created="Thu, 30 Aug 2012 00:04:59 +0000"  >&lt;p&gt;I verified this is fixed in trunk by creating a test. Worth creating pull request to add test case?&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function testQuotedForeignKeySQL()
{   
    $tableOld = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Table(&lt;span class=&quot;code-quote&quot;&gt;&quot;website&quot;&lt;/span&gt;);
    $tableOld-&amp;gt;addColumn(&apos;right_id&apos;, &apos;integer&apos;);
    $tableOld-&amp;gt;addUnnamedForeignKeyConstraint(&apos;right&apos;, array(&apos;right_id&apos;), array(&apos;id&apos;));

    $sqls = array();
    foreach ($tableOld-&amp;gt;getForeignKeys() AS $fk) {
        $sqls[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;platform-&amp;gt;getCreateForeignKeySQL($fk, $tableOld);
    }   

    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE website ADD CONSTRAINT FK_476F5DE754976835 FOREIGN KEY (right_id) REFERENCES `right` (id)&quot;&lt;/span&gt;), $sqls);
}  
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="18585" author="stof" created="Thu, 30 Aug 2012 08:58:28 +0000"  >&lt;p&gt;Can you paste your mapping for your right entity ?&lt;/p&gt;</comment>
                    <comment id="19503" author="asm89" created="Sat, 9 Feb 2013 21:35:11 +0000"  >&lt;p&gt;Can you provide us with more feedback?&lt;/p&gt;</comment>
                    <comment id="20177" author="beberlei" created="Wed, 1 May 2013 18:41:40 +0000"  >&lt;p&gt;Seems fixed as per comment of Patrick.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-311] [GH-179] Added missing type mappings for postgres</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-311</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jkrems:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/179&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/179&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;We had problems running the migrations-commands with an existing database. Seems like some type-mappings are just missing. This patch fixed the problem for us.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13899">DBAL-311</key>
            <summary>[GH-179] Added missing type mappings for postgres</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Jul 2012 08:55:26 +0000</created>
                <updated>Tue, 14 Aug 2012 22:05:14 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 22:05:14 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-310] [GH-178] Pull Request</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-310</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of ardemiranda:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/178&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Pull Request doctrine/dbal/master&lt;/p&gt;</description>
                <environment></environment>
            <key id="13889">DBAL-310</key>
            <summary>[GH-178] Pull Request</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 29 Jul 2012 00:49:25 +0000</created>
                <updated>Tue, 18 Sep 2012 19:53:30 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:07:05 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18386" author="beberlei" created="Sun, 29 Jul 2012 00:51:28 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18646" author="beberlei" created="Sat, 15 Sep 2012 14:25:44 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was open&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18647" author="beberlei" created="Sat, 15 Sep 2012 14:27:18 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was open&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18648" author="beberlei" created="Sat, 15 Sep 2012 14:28:53 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18649" author="beberlei" created="Sat, 15 Sep 2012 14:31:04 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18650" author="beberlei" created="Sat, 15 Sep 2012 14:31:50 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18651" author="beberlei" created="Sat, 15 Sep 2012 14:32:29 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18652" author="beberlei" created="Sat, 15 Sep 2012 14:59:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18653" author="beberlei" created="Sat, 15 Sep 2012 15:11:20 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18678" author="beberlei" created="Tue, 18 Sep 2012 19:53:30 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-178&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/common/pull/178&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/common/pull/178&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-309] MasterSlaveConnection with mysql &quot;charset: &quot;UTF8&quot; forces use of master</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-309</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In a mysql master/slave environment with &quot;charset:&quot; set to &quot;UTF8&quot; an Event &quot;postConnect&quot; is dispatched after establishing the connection. &lt;/p&gt;

&lt;p&gt;MysqlSessionInit-&amp;gt;postConnect() uses MasterSlaveConnection-&amp;gt;executeUpdate() to submit this information to the current connection. executeUpdate() always connects to the master and the slaves won&apos;t be used (as documentated: &quot;3. If master was picked once during the lifetime of the connection it will always get picked afterwards.&quot;).&lt;/p&gt;

&lt;p&gt;We suggest to use executeQuery() in postConnect() instead.&lt;/p&gt;</description>
                <environment>mysql</environment>
            <key id="13876">DBAL-309</key>
            <summary>MasterSlaveConnection with mysql &quot;charset: &quot;UTF8&quot; forces use of master</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="daniel.sippel">Daniel Sippel</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Jul 2012 12:32:18 +0000</created>
                <updated>Mon, 17 Sep 2012 10:48:27 +0000</updated>
                    <resolved>Mon, 17 Sep 2012 10:48:27 +0000</resolved>
                            <version>2.1</version>
                                                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="18396" author="beberlei" created="Sun, 29 Jul 2012 07:37:51 +0000"  >&lt;p&gt;MysqlInitListener is deprecated, because SET NAMES UTF8 is not a safe operation. Use the &quot;charset&quot; option of the PDO MySQL driver instead.&lt;/p&gt;</comment>
                    <comment id="18415" author="stof" created="Mon, 30 Jul 2012 09:49:04 +0000"  >&lt;p&gt;Then we need to fix DoctrineBundle to stop using the init listener for mysql.&lt;/p&gt;</comment>
                    <comment id="18472" author="daniel.sippel" created="Tue, 7 Aug 2012 08:00:20 +0000"  >&lt;p&gt;I agree with Christophe and reopened this issue.&lt;/p&gt;</comment>
                    <comment id="18620" author="stof" created="Fri, 7 Sep 2012 21:04:28 +0000"  >&lt;p&gt;Please close the issue Benjamin. This has been fixed in DoctrineBundle: &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/pull/111&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/pull/111&lt;/a&gt;&lt;br/&gt;
I don&apos;t have enough rights in JIRA to close it myself.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-308] [GH-174] Used the placeholder in the command help for the name</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-308</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of stof:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/174&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/174&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This change will allow to keep the original help message in DoctrineBundle even if we rename the command. I will submit the same PR for the ORM.&lt;/p&gt;

&lt;p&gt;@beberlei please include it in the 2.3 branch (and ideally in 2.2 if it is not too much to ask for it). My goal is to stop duplicating the help messages in the bundle as outdated help messages are really a pain for users (see doctrine/DoctrineBundle#89)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13859">DBAL-308</key>
            <summary>[GH-174] Used the placeholder in the command help for the name</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Jul 2012 22:42:20 +0000</created>
                <updated>Mon, 23 Jul 2012 08:31:12 +0000</updated>
                    <resolved>Mon, 23 Jul 2012 08:31:12 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18368" author="beberlei" created="Mon, 23 Jul 2012 05:04:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-174&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/174&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/174&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-307] [GH-173] Fixing breaking test provoke by #172</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-307</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of pborreli:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/173&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/173&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13857">DBAL-307</key>
            <summary>[GH-173] Fixing breaking test provoke by #172</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Jul 2012 17:14:27 +0000</created>
                <updated>Sun, 29 Jul 2012 07:47:49 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:47:49 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18316" author="beberlei" created="Mon, 16 Jul 2012 17:27:57 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-173&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/173&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/173&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-306] [GH-172] Fixed typos</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-306</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of pborreli:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/172&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/172&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13856">DBAL-306</key>
            <summary>[GH-172] Fixed typos</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Jul 2012 14:48:01 +0000</created>
                <updated>Sun, 29 Jul 2012 07:48:08 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:48:08 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18315" author="beberlei" created="Mon, 16 Jul 2012 15:15:35 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-172&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/172&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/172&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-305] [GH-171] provide transactional interface for EntityManager and Connection</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-305</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dfreudenberger:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/171&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/171&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13849">DBAL-305</key>
            <summary>[GH-171] provide transactional interface for EntityManager and Connection</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Jul 2012 10:13:02 +0000</created>
                <updated>Sun, 29 Jul 2012 08:50:02 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-304] Allow table comments</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-304</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Implement support for table comments. Most drivers restrict the comments to 60 chars on tables and 255 on columns. Also export this support to ORM.&lt;br/&gt;
We already consume some chars for (DC2Type:&amp;lt;type_name&amp;gt;) on columns. Also we need to apply a check to not crash under these circunstances&lt;/p&gt;</description>
                <environment></environment>
            <key id="13844">DBAL-304</key>
            <summary>Allow table comments</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Jul 2012 21:05:07 +0000</created>
                <updated>Thu, 12 Jul 2012 07:22:02 +0000</updated>
                    <resolved>Thu, 12 Jul 2012 07:22:02 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18287" author="beberlei" created="Thu, 12 Jul 2012 07:22:02 +0000"  >&lt;p&gt;This is already implemented.&lt;/p&gt;

&lt;p&gt;See: &lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L416&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L416&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And: &lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/Table.php#L37&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Mapping/Table.php#L37&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-303] [GH-170] [#DBAL-172] QueryBuilder joins are omitted if the table alias is not present in the &quot;from&quot; clause</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-303</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of wimvds:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/170&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/170&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Apparently that fix has never been included, don&apos;t know why exactly. But there are use cases where you want to join multiple tables without selecting any data from the joined tables.&lt;/p&gt;

&lt;p&gt;Ie. a query like this one :&lt;br/&gt;
SELECT COUNT(DISTINCT news.id) FROM cb_newspages news &lt;br/&gt;
INNER JOIN nodeversion nv ON nv.refId = news.id AND nv.refEntityname=&apos;Entity&lt;br class=&quot;atl-forced-newline&quot; /&gt;News&apos; &lt;br/&gt;
INNER JOIN nodetranslation nt ON nv.nodetranslation = nt.id &lt;br/&gt;
INNER JOIN node n ON nt.node = n.id &lt;br/&gt;
WHERE nt.lang = &apos;nl&apos; AND n.deleted != 1&lt;/p&gt;

&lt;p&gt;could be written with the querybuilder (using this patch) as follows :&lt;/p&gt;

&lt;p&gt;        $querybuilder-&amp;gt;select(&apos;COUNT(DISTINCT news.id)&apos;)&lt;br/&gt;
            -&amp;gt;from(&apos;cb_newspages&apos;, &apos;news&apos;)&lt;br/&gt;
            -&amp;gt;innerJoin(&apos;news&apos;, &apos;nodeversion&apos;, &apos;nv&apos;, &apos;nv.refId = news.id AND nv.refEntityname=\&apos;Entity\\\\News\&apos;&apos;)&lt;br/&gt;
            -&amp;gt;innerJoin(&apos;nv&apos;, &apos;nodetranslation&apos;, &apos;nt&apos;, &apos;nv.nodetranslation = nt.id&apos;)&lt;br/&gt;
            -&amp;gt;innerJoin(&apos;nt&apos;, &apos;node&apos;, &apos;n&apos;, &apos;nt.node = n.id&apos;)&lt;br/&gt;
            -&amp;gt;where(&apos;nt.lang = :lang AND n.deleted != 1&apos;)&lt;br/&gt;
            -&amp;gt;setParameter(&apos;lang&apos;, $locale);&lt;/p&gt;

&lt;p&gt;When you use an alias that isn&apos;t chained or used in a from clause it will still trigger a QueryException (as before).&lt;/p&gt;

&lt;p&gt;ie.&lt;br/&gt;
        $querybuilder-&amp;gt;select(&apos;COUNT(DISTINCT news.id)&apos;)&lt;br/&gt;
            -&amp;gt;from(&apos;cb_newspages&apos;, &apos;news&apos;)&lt;br/&gt;
            -&amp;gt;innerJoin(&apos;news&apos;, &apos;nodeversion&apos;, &apos;nv&apos;, &apos;nv.refId = news.id AND nv.refEntityname=\&apos;Entity\\\\News\&apos;&apos;)&lt;br/&gt;
            -&amp;gt;innerJoin(&apos;invalid&apos;, &apos;nodetranslation&apos;, &apos;nt&apos;, &apos;nv.nodetranslation = nt.id&apos;)&lt;br/&gt;
            -&amp;gt;innerJoin(&apos;nt&apos;, &apos;node&apos;, &apos;n&apos;, &apos;nt.node = n.id&apos;)&lt;br/&gt;
            -&amp;gt;where(&apos;nt.lang = :lang AND n.deleted != 1&apos;)&lt;br/&gt;
            -&amp;gt;setParameter(&apos;lang&apos;, $locale);&lt;/p&gt;

&lt;p&gt;Will trigger the following QueryException :&lt;/p&gt;

&lt;p&gt;&quot;The given alias &apos;invalid&apos; is not part of any FROM or JOIN clause table. The currently registered aliases are: news, nv, nt, n.&quot;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13842">DBAL-303</key>
            <summary>[GH-170] [#DBAL-172] QueryBuilder joins are omitted if the table alias is not present in the &quot;from&quot; clause</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Jul 2012 12:02:52 +0000</created>
                <updated>Tue, 14 Aug 2012 22:06:06 +0000</updated>
                    <resolved>Tue, 14 Aug 2012 22:06:06 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18331" author="beberlei" created="Wed, 18 Jul 2012 18:15:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-170&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/170&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/170&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18332" author="beberlei" created="Wed, 18 Jul 2012 18:33:54 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-175&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/175&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/175&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18514" author="asm89" created="Tue, 14 Aug 2012 22:06:06 +0000"  >&lt;p&gt;User closed the PR.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-302] [GH-168] DebugStack should ignore stopQuery when disabled</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-302</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dpb587:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/168&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/168&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;I noticed that DebugStack was adding an empty element when it was disabled. This PR changes it to match startQuery with its behavior.&lt;/p&gt;

&lt;p&gt;    1) Doctrine\Tests\DBAL\Logging\DebugStackTest::testLoggedQueryDisabled&lt;br/&gt;
    Failed asserting that two arrays are equal.&lt;br/&gt;
    &amp;#8212; Expected&lt;br/&gt;
    +++ Actual&lt;br/&gt;
    @@ @@&lt;br/&gt;
     Array&lt;br/&gt;
     (&lt;br/&gt;
    +    &lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; =&amp;gt; Array&lt;br/&gt;
    +        (&lt;br/&gt;
    +            &lt;span class=&quot;error&quot;&gt;&amp;#91;executionMS&amp;#93;&lt;/span&gt; =&amp;gt; 1341871660.9651&lt;br/&gt;
    +        )&lt;br/&gt;
    +&lt;br/&gt;
     )&lt;/p&gt;

&lt;p&gt;I&apos;ve submitted the PR to 2.0.x since that&apos;s where the bug is first seen and is still listed as stable on doctrine-project.org. Preferably this could also be applied to newer branches as well, or I can also submit separate PRs.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13840">DBAL-302</key>
            <summary>[GH-168] DebugStack should ignore stopQuery when disabled</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Jul 2012 22:13:25 +0000</created>
                <updated>Tue, 10 Jul 2012 07:32:26 +0000</updated>
                    <resolved>Tue, 10 Jul 2012 07:32:26 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18270" author="beberlei" created="Mon, 9 Jul 2012 22:28:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-168&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/168&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/168&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-301] [GH-167] Oracle stored procedures</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-301</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of AduroIdea:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/167&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/167&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;driver function&lt;br/&gt;
To avoid ORA-03131 error, data length must be passed to oci_bind_by_name function.&lt;br/&gt;
This commit fixes it so now pdo_oci can be used with stored procedures and  output parameters from sql/plsql.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13831">DBAL-301</key>
            <summary>[GH-167] Oracle stored procedures</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 Jul 2012 17:07:45 +0000</created>
                <updated>Sun, 29 Jul 2012 07:53:12 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:53:11 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18229" author="beberlei" created="Sat, 7 Jul 2012 17:59:31 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-167&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/167&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/167&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18230" author="beberlei" created="Sat, 7 Jul 2012 18:40:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-167&amp;#93;&lt;/span&gt; was reopened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/167&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/167&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18231" author="beberlei" created="Sat, 7 Jul 2012 19:06:36 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-167&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/167&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/167&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18232" author="beberlei" created="Sat, 7 Jul 2012 19:07:52 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-167&amp;#93;&lt;/span&gt; was reopened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/167&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/167&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-300] Updates for Fedora packaging</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-300</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I am packaging the DoctrineDBAL PEAR package for Fedora and RHEL (EPEL) and would like to have the following updates:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;package.xml role for LICENSE changed from &quot;data&quot; to &quot;doc&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;package.xml role for Doctrine/DBAL/README.markdown changed from &quot;data&quot; to &quot;doc&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add some content to Doctrine/DBAL/README.markdown (when building RPM this file throws a warning because it is empty)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Fedora, RHEL</environment>
            <key id="13829">DBAL-300</key>
            <summary>Updates for Fedora packaging</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="siwinski">Shawn Iwinski</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 Jul 2012 03:34:14 +0000</created>
                <updated>Sat, 24 Nov 2012 02:20:36 +0000</updated>
                                    <version>2.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-299] Multiple different interspersed named parameters</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-299</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For this code&lt;/p&gt;

&lt;p&gt;$sql = &amp;lt;&amp;lt;&amp;lt;SQL&lt;br/&gt;
SELECT 1 as id&lt;br/&gt;
WHERE (:foo = 2)&lt;br/&gt;
AND (:bar = 3)&lt;br/&gt;
AND (:foo = 2)&lt;br/&gt;
SQL;&lt;br/&gt;
$rsm = new \Doctrine\Orm\Query\ResultSetMapping();&lt;br/&gt;
$rsm-&amp;gt;addScalarResult(&apos;id&apos;, &apos;id&apos;);&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;createNativeQuery($sql, $rsm);&lt;br/&gt;
$query = $query-&amp;gt;setParameters(array(&apos;foo&apos;  =&amp;gt; 2, &apos;bar&apos; =&amp;gt; 3));&lt;br/&gt;
$result = $query-&amp;gt;getResult();&lt;/p&gt;

&lt;p&gt;Generates the SQL in DBAL\Connection\executeQuery&lt;/p&gt;

&lt;p&gt;SELECT 1 as id&lt;br/&gt;
WHERE (? = 2)&lt;br/&gt;
AN?bar = 3)&lt;br/&gt;
AND (? = 2)&lt;/p&gt;

&lt;p&gt;The problem appears to be in DBAL\SQLParserUtils\expandListParameters.  &lt;/p&gt;

&lt;p&gt;When replacing the named parameters with ?&apos;s an offset is kept to keep track of where to insert the next parameter.  This is done per named parameter (all of :foo is replaced then all :bar, etc).  This will calculate the incorrect offset if a named parameter(e.g. :bar) is in between instances of another named parameter (e.g. :foo) (i.e. :bar in the sql &quot;(:foo = 2) AND (:bar =3) AND (:foo = 2)&quot;) since the offset will be for the TOTAL number of instances of the named parameter (e.g. -6) not the number of instances that occur before the needed replacement (e.g. -3).&lt;/p&gt;

&lt;p&gt;This is where the SQL has &quot;AN?bar = 3)&quot; instead of &quot;AND(3 = 3)&quot; the offset is calculated at -6 instead of the proper -3&lt;/p&gt;</description>
                <environment>PHP 5.3.9-ZS5.6.0, Ubuntu 10.04.4 LTS on VirtualBox 4.1..18 r78361 on Mac OS X version 10.6.8</environment>
            <key id="13825">DBAL-299</key>
            <summary>Multiple different interspersed named parameters</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="asm89">Alexander</assignee>
                                <reporter username="spiinningtops">Spinning Top</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jul 2012 14:01:30 +0000</created>
                <updated>Sat, 7 Jul 2012 13:12:53 +0000</updated>
                    <resolved>Sat, 7 Jul 2012 13:12:53 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18220" author="asm89" created="Sat, 7 Jul 2012 13:12:53 +0000"  >&lt;p&gt;Fixed here: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/78dbf28923059545b24ba753c112560ad59ca89e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/78dbf28923059545b24ba753c112560ad59ca89e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-298] [GH-166] Fixes a bug caused by unquoted reserved table name being referenced during schema creation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-298</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of klaussilveira:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/166&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/166&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;When creating a schema with tables with reserved names and relationships between them, the schema creation tool failed to write valid SQL in MySQL due to unquoted table names. For example:&lt;/p&gt;

&lt;p&gt;    CREATE TABLE `Group` (id INT AUTO_INCREMENT NOT NULL, name VARCHAR(255) NOT NULL DEFAULT NULL, PRIMARY KEY(id)) ENGINE = InnoDB;&lt;br/&gt;
    CREATE TABLE User (id INT AUTO_INCREMENT NOT NULL, username VARCHAR(255) NOT NULL PRIMARY KEY(id)) ENGINE = InnoDB;&lt;br/&gt;
    CREATE TABLE UserHasGroup (user_id INT NOT NULL, group_id INT NOT NULL, INDEX IDX_617A865CA76ED395 (user_id), INDEX IDX_617A865CFE54D947 (group_id), PRIMARY KEY(user_id, group_id)) ENGINE = InnoDB;&lt;br/&gt;
    ALTER TABLE UserHasGroup ADD CONSTRAINT FK_617A865CA76ED395 FOREIGN KEY (user_id) REFERENCES User (id);&lt;br/&gt;
    ALTER TABLE UserHasGroup ADD CONSTRAINT FK_617A865CFE54D947 FOREIGN KEY (group_id) REFERENCES Group (id);&lt;/p&gt;

&lt;p&gt;This fix creates a small function for creating quoted foreign key table names.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13824">DBAL-298</key>
            <summary>[GH-166] Fixes a bug caused by unquoted reserved table name being referenced during schema creation</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Jul 2012 22:11:23 +0000</created>
                <updated>Sun, 29 Jul 2012 08:13:48 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 08:13:48 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18340" author="beberlei" created="Thu, 19 Jul 2012 18:27:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-166&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/166&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/166&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18401" author="beberlei" created="Sun, 29 Jul 2012 08:13:48 +0000"  >&lt;p&gt;Merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-297] PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-297</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;In OCI8Statement, using PDO::FETCH_NUM does not work because the fetch style mapping is overwritten by PDO::PARAM_LOB since the two has the same value (3);&lt;/p&gt;

&lt;p&gt;protected static $fetchModeMap = array(&lt;br/&gt;
        PDO::FETCH_BOTH =&amp;gt; OCI_BOTH,&lt;br/&gt;
        PDO::FETCH_ASSOC =&amp;gt; OCI_ASSOC,&lt;br/&gt;
        PDO::FETCH_NUM =&amp;gt; OCI_NUM,&lt;br/&gt;
        PDO::PARAM_LOB =&amp;gt; OCI_B_BLOB,&lt;br/&gt;
        PDO::FETCH_COLUMN =&amp;gt; OCI_NUM,&lt;br/&gt;
);&lt;/p&gt;

&lt;p&gt;so PDO::FETCH_NUM is mapped to OCI_B_BLOB&lt;/p&gt;</description>
                <environment>N/A</environment>
            <key id="13820">DBAL-297</key>
            <summary>PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap</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="char101">Charles Gunawan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Jul 2012 08:13:31 +0000</created>
                <updated>Thu, 5 Jul 2012 08:13:31 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-296] [GH-165] interface compatibility</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-296</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Nazin:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/165&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/165&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13819">DBAL-296</key>
            <summary>[GH-165] interface compatibility</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Jul 2012 23:04:48 +0000</created>
                <updated>Thu, 5 Jul 2012 19:37:15 +0000</updated>
                    <resolved>Thu, 5 Jul 2012 19:37:15 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18181" author="beberlei" created="Wed, 4 Jul 2012 23:57:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-165&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/165&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/165&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-295] [GH-164] Getters for AbstractAsset$_quoted and ForeignKeyConstraint$_options</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-295</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of tyler-sommer:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/164&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/164&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Added the necessary getters, re: doctrine/migrations#79&lt;/p&gt;</description>
                <environment></environment>
            <key id="13818">DBAL-295</key>
            <summary>[GH-164] Getters for AbstractAsset$_quoted and ForeignKeyConstraint$_options</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Jul 2012 18:06:30 +0000</created>
                <updated>Thu, 5 Jul 2012 19:08:46 +0000</updated>
                    <resolved>Thu, 5 Jul 2012 19:08:46 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18164" author="beberlei" created="Wed, 4 Jul 2012 19:27:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-164&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/164&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/164&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-294] [GH-163] [WIP] Upsert support protoype.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-294</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/163&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/163&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13809">DBAL-294</key>
            <summary>[GH-163] [WIP] Upsert support protoype.</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Jun 2012 21:56:43 +0000</created>
                <updated>Wed, 4 Jul 2012 19:32:56 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-293] mysql platform can not choose text type column</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-293</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;getVarcharMaxLength() in DBAL/Platforms/MySqlPlatform.php returns 65535;&lt;br/&gt;
So, it never choose &quot;text&quot;, choose &quot;mediumtext&quot;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13790">DBAL-293</key>
            <summary>mysql platform can not choose text type column</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="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="shirokappa">Kiichi Kajiura</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Jun 2012 14:40:48 +0000</created>
                <updated>Sat, 8 Sep 2012 19:51:48 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18211" author="beberlei" created="Thu, 5 Jul 2012 21:12:32 +0000"  >&lt;p&gt;How do you call the schema/platform code?&lt;/p&gt;

&lt;p&gt;The code is correct, i think you are using it wrong.&lt;/p&gt;</comment>
                    <comment id="18336" author="shirokappa" created="Thu, 19 Jul 2012 03:54:18 +0000"  >&lt;p&gt;I don&apos;t use it directly.&lt;br/&gt;
I use it in my entity class file with annotations.&lt;br/&gt;
e.g. &lt;br/&gt;
    @Mapping\Column(type=&quot;text&quot;)&lt;br/&gt;
    @Mapping\Column(type=&quot;text&quot;, length=65535)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-292] Multiple use of named parameter doesn&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-292</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In the example in the documentation &lt;a href=&quot;http://doctrine-dbal.readthedocs.org/en/2.0.x/reference/data-retrieval-and-manipulation.html#dynamic-parameters-and-prepared-statements&quot; class=&quot;external-link&quot;&gt;http://doctrine-dbal.readthedocs.org/en/2.0.x/reference/data-retrieval-and-manipulation.html#dynamic-parameters-and-prepared-statements&lt;/a&gt;  there is the following example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$sql = &quot;SELECT * FROM users WHERE name = :name OR username = :name&quot;;&lt;br/&gt;
$stmt = $conn-&amp;gt;prepare($sql);&lt;br/&gt;
$stmt-&amp;gt;bindValue(&quot;name&quot;, $name);&lt;br/&gt;
$stmt-&amp;gt;execute();&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When I try this example using pdo_sqlsrv I get the following error: &lt;br/&gt;
PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;07002&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 11.0&amp;#93;&lt;/span&gt;COUNT field incorrect or syntax error&lt;/p&gt;

&lt;p&gt;When I use instead the parameters name1 and name2 the query works as expected.&lt;/p&gt;</description>
                <environment>IIS 7.5, MS-SQL-Server 2005, PHP 5.4.0</environment>
            <key id="13778">DBAL-292</key>
            <summary>Multiple use of named parameter doesn&apos;t work</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="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jue">J&#252;rgen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jun 2012 18:31:19 +0000</created>
                <updated>Wed, 23 Jan 2013 22:56:54 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18223" author="asm89" created="Sat, 7 Jul 2012 14:44:39 +0000"  >&lt;p&gt;Are you sure you were using the 2.2.2 version of the ORM? Can you try to reproduce this with the latest master?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-291] [GH-157] interface compatibility</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-291</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Nazin:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/157&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/157&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13748">DBAL-291</key>
            <summary>[GH-157] interface compatibility</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Jun 2012 12:57:45 +0000</created>
                <updated>Wed, 4 Jul 2012 20:25:43 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-290] Schema\Comparator::diffColumn finds ArrayType and TextType columns different</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-290</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If I have an entity with @Column(type=&quot;array&quot;), orm:validate-schema always tells me &quot;FAIL - The database schema is not in sync with the current mapping file.&quot;.&lt;/p&gt;

&lt;p&gt;If I call orm:schema-tool:update --dump-sql, I get &quot;ALTER TABLE bridge ALTER config TYPE TEXT&quot; although this is already how the column in my database looks like. If I execute this query, nothing happens and orm:validate-schema still fails.&lt;/p&gt;

&lt;p&gt;There exist two different mapping types - TextType and ArrayType, but they both have the same SQL column type - TEXT.&lt;/p&gt;

&lt;p&gt;The $fromSchema is built with TextType column, the $toSchema contains (correctly) ArrayType.&lt;/p&gt;

&lt;p&gt;I propose not to generate the ALTER if the both compared columns&apos; Type::getSQLDeclaration() results are the same.&lt;/p&gt;

&lt;p&gt;If I got everything okay, I can prepare a pull request.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13742">DBAL-290</key>
            <summary>Schema\Comparator::diffColumn finds ArrayType and TextType columns different</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mirtes">Ond&#345;ej Mirtes</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 May 2012 15:05:15 +0000</created>
                <updated>Thu, 31 May 2012 09:22:42 +0000</updated>
                    <resolved>Wed, 30 May 2012 15:11:50 +0000</resolved>
                            <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18029" author="beberlei" created="Wed, 30 May 2012 15:11:50 +0000"  >&lt;p&gt;This is alreaady fixable by having the &apos;(DCType:Array)&apos; string in the comment of that column. this should automatically be generated into the comment field on MySQL and PostgreSQL by Doctrine if you use Schema tool.&lt;/p&gt;</comment>
                    <comment id="18030" author="mirtes" created="Wed, 30 May 2012 15:26:57 +0000"  >&lt;p&gt;If I run:&lt;/p&gt;

&lt;p&gt;cli.php orm:schema-tool:create&lt;/p&gt;

&lt;p&gt;Then:&lt;/p&gt;

&lt;p&gt;cli.php orm:schema-tool:update --dump-sql&lt;/p&gt;

&lt;p&gt;It still reports:&lt;/p&gt;

&lt;p&gt;&quot;ALTER TABLE bridge ALTER config TYPE TEXT&quot;&lt;/p&gt;</comment>
                    <comment id="18032" author="mirtes" created="Thu, 31 May 2012 09:22:42 +0000"  >&lt;p&gt;Sorry, my bad, I was on an old version of Doctrine.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-289] Wrong diff between Oracle &apos;Date&apos; type and Metadata &apos;Date&apos; type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-289</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi,&lt;br/&gt;
I want to update my schema but I am getting the following error message:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\Driver\OCI8\OCI8Exception&amp;#93;&lt;/span&gt;&lt;br/&gt;
ORA-01442: column to be modified to NOT NULL is already NOT NULL&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;--dump-sql says:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;ALTER TABLE CONSIGNMENTS MODIFY (SDGDATE  DATE DEFAULT NULL);&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The current table structure looks like that:&lt;/p&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Column Name &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Data Type &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Nullable &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Default &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Primary Key &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SDGDATE &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; DATE &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Yes &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; NULL &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;


&lt;p&gt;Mapping definition:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;SDGDATE&quot;&lt;/span&gt;,type=&lt;span class=&quot;code-quote&quot;&gt;&quot;date&quot;&lt;/span&gt;,nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $sdgdate;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think there is a problem with the comparison between Oracles &apos;Date&apos; type and the Metadata &apos;Date&apos; type. I am used to use MySQL as DBMS but our customer uses Oracle. MySQL&apos;s &apos;datetime&apos; and Oracle&apos;s &apos;date&apos; type are store the same data.&lt;/p&gt;

&lt;p&gt;I am not sure what should be done here. Because this could lead to confusion for all Oracle user.&lt;/p&gt;

&lt;p&gt;Maybe there could be a request to the platform in the Schema Comparator here:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function diffColumn(Column $column1, Column $column2)
{
    $changedProperties = array();
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( $column1-&amp;gt;getType() != $column2-&amp;gt;getType() ) {
        $changedProperties[] = &apos;type&apos;;
    }
    &lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Oracle Express 11g and doctrine-dbal 2.2.2</environment>
            <key id="13741">DBAL-289</key>
            <summary>Wrong diff between Oracle &apos;Date&apos; type and Metadata &apos;Date&apos; type</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="naitsirch">Christian Stoller</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 May 2012 08:45:55 +0000</created>
                <updated>Wed, 22 Aug 2012 10:34:21 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18028" author="naitsirch" created="Wed, 30 May 2012 08:59:49 +0000"  >&lt;p&gt;When I put a breakpoint on the second line of the &lt;em&gt;diffColumn&lt;/em&gt; method in my IDE and stop there during debugging I have those variable values:&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;$this				Doctrine\DBAL\Schema\Comparator		
$changedProperties		array[0]		
$column1			Doctrine\DBAL\Schema\Column		
  _type				Doctrine\DBAL\Types\DateTimeType	&amp;lt;-- datetime
  _precision			integer		10	
  _scale			integer		0	
  _unsigned			boolean		0	
  _fixed			boolean		0	
  _notnull			boolean		0	
  _autoincrement		boolean		0	
  _platformOptions		array[0]		
  _comment			string		&quot;&quot;	
  _customSchemaOptions		array[0]		
  _name				string		&quot;SDGDATE&quot;	
  _quoted			boolean		0	
$column2			Doctrine\DBAL\Schema\Column		
  _type				Doctrine\DBAL\Types\DateType		&amp;lt;-- date
  _precision			integer		0	
  _scale			integer		0	
  _unsigned			boolean		0	
  _fixed			boolean		0	
  _notnull			boolean		0	
  _autoincrement		boolean		0	
  _platformOptions		array[1]		
  _customSchemaOptions		array[0]		
  _name				string		&quot;SDGDATE&quot;	
  _quoted			boolean		0	
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You see that there are different types. But it would be nice if the comparison would say: &quot;Theay are equal - no diff&quot;&lt;/p&gt;</comment>
                    <comment id="18251" author="beberlei" created="Sun, 8 Jul 2012 20:16:14 +0000"  >&lt;p&gt;This issue can&apos;t be fixed. Doctrine has this type abstraction here which prevents a special case fix here. The solution in this case is obvious, set the type to &quot;datetime&quot; on Oracle.&lt;/p&gt;</comment>
                    <comment id="18531" author="naitsirch" created="Wed, 22 Aug 2012 10:34:21 +0000"  >&lt;p&gt;Sorry, this issue commes up again.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-javascript&quot;&gt;
Shipment:
  type: entity
  fields:
    id:
      type: integer
      id: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      generator:
        strategy: AUTO
    pickupDate:
      type: date
      column: pickup_date
    pickupTimeFrom:
      type: time
      column: pickup_time_from
  lifecycleCallbacks: {  }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I update my schema with the above YAML mapping, I always get the following error although I haven&apos;t changed anything at the mapping.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;font color=&quot;red&quot;&gt;&lt;br/&gt;
C:\projects\xyz\trunk&amp;gt;php app\console doctrine:schema:update --force&lt;br/&gt;
Updating database schema...&lt;br/&gt;
Der Befehl &quot;stty&quot; ist entweder falsch geschrieben oder&lt;br/&gt;
konnte nicht gefunden werden.&lt;br/&gt;
&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\Driver\OCI8\OCI8Exception&amp;#93;&lt;/span&gt;&lt;br/&gt;
  ORA-01442: column to be modified to NOT NULL is already NOT NULL&lt;br/&gt;
&lt;br/&gt;
C:\projects\osl\trunk&amp;gt;php app\console doctrine:schema:update --dump-sql&lt;br/&gt;
ALTER TABLE SHIPMENT MODIFY (pickup_date  DATE NOT NULL, pickup_time_from  DATE NOT NULL)&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Okay, I could change the types to &apos;datetime&apos;, but what if I have to move to MySQL? I just want to store &apos;date&apos; and &apos;time&apos;, not &apos;datetime&apos;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-288] [GH-156] [Platform] Allow a string to be passed as type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-288</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of schmittjoh:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/156&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/156&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13734">DBAL-288</key>
            <summary>[GH-156] [Platform] Allow a string to be passed as type</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 27 May 2012 15:32:31 +0000</created>
                <updated>Sun, 27 May 2012 15:49:34 +0000</updated>
                    <resolved>Sun, 27 May 2012 15:49:34 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18008" author="beberlei" created="Sun, 27 May 2012 15:48:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-156&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/156&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/156&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-287] [GH-155] Update license for Composer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-287</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jalliot:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/155&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/155&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13732">DBAL-287</key>
            <summary>[GH-155] Update license for Composer</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 26 May 2012 16:17:07 +0000</created>
                <updated>Sun, 27 May 2012 08:07:24 +0000</updated>
                    <resolved>Sun, 27 May 2012 08:06:55 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17986" author="beberlei" created="Sun, 27 May 2012 08:07:24 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-155&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/155&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/155&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-286] [GH-154] Support for access method declaration for indexes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-286</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of petr-motejlek:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/154&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/154&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This is still work in progress, but it works. There will be another pull request in doctrine2 that actually depends on this one.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13723">DBAL-286</key>
            <summary>[GH-154] Support for access method declaration for indexes</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 May 2012 20:28:33 +0000</created>
                <updated>Sun, 27 May 2012 08:11:07 +0000</updated>
                    <resolved>Sun, 27 May 2012 08:11:07 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17972" author="beberlei" created="Wed, 23 May 2012 20:40:43 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-154&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/154&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/154&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17974" author="beberlei" created="Wed, 23 May 2012 20:40:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-154&amp;#93;&lt;/span&gt; was reopened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/154&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/154&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17976" author="beberlei" created="Wed, 23 May 2012 20:48:59 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-154&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/154&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/154&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-285] Schema generation fails when primary key is quoted</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-285</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;All of our entities are generated with their name quoted with back-ticks, this is to allow RAD. &lt;br/&gt;
When Doctrine comes to update the schema it fails to see the primary key is quoted and thus compared an index of PRIMARY(id) to PRIMARY(`id`). Which means it then tries to drop the primary index and recreate it, using a quoted field name.&lt;/p&gt;

&lt;p&gt;This fix is to when the primary index is created is to fetch the columns from the table and get their unquoted name, so now when the comparison takes place it looks like this PRIMARY(id) to PRIMARY(id), therefore doesn&apos;t register this as a change.&lt;/p&gt;</description>
                <environment>Linux (gentoo), PHP 5.3.13, MySQL 5.1.62, Symfony2</environment>
            <key id="13722">DBAL-285</key>
            <summary>Schema generation fails when primary key is quoted</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="easen">Marc Easen</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 May 2012 17:06:07 +0000</created>
                <updated>Wed, 4 Jul 2012 21:38:32 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 21:38:32 +0000</resolved>
                            <version>2.1.6</version>
                <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                <version>2.2-RC1/RC2</version>
                <version>2.2.0-RC3</version>
                <version>2.2</version>
                <version>2.2.1</version>
                <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18176" author="beberlei" created="Wed, 4 Jul 2012 21:38:32 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11191" name="DBAL_Primary_key_fix.txt" size="803" author="easen" created="Wed, 23 May 2012 17:06:07 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-284] [GH-152] add ComparatorInterface to allow custom Comparator implementation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-284</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of catacgc:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/152&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/152&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13715">DBAL-284</key>
            <summary>[GH-152] add ComparatorInterface to allow custom Comparator implementation</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 May 2012 11:30:42 +0000</created>
                <updated>Tue, 22 May 2012 17:12:30 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-283] [GH-151] Fixed the doctrine/common constraint and added the branch-alias</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-283</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of stof:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/151&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/151&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The change in the requirements requires doctrine/common#144 to be merged and parsed by Packagist, otherwise ``2.3.*`` would not match anything.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13712">DBAL-283</key>
            <summary>[GH-151] Fixed the doctrine/common constraint and added the branch-alias</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 20 May 2012 19:28:25 +0000</created>
                <updated>Tue, 22 May 2012 17:13:37 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:13:37 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17954" author="beberlei" created="Sun, 20 May 2012 21:21:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-151&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/151&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/151&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-282] [GH-150] Added missing regex delimiters in the testsuite</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-282</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of stof:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/150&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/150&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;The AbstractSchemaManager expects getting the regex with its&lt;br/&gt;
delimiters since 8beb732fe9 but the tests were not updated.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13710">DBAL-282</key>
            <summary>[GH-150] Added missing regex delimiters in the testsuite</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 May 2012 20:10:47 +0000</created>
                <updated>Tue, 22 May 2012 17:12:47 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:12:47 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17956" author="beberlei" created="Sun, 20 May 2012 21:36:24 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-150&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/150&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/150&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-281] [GH-149] changed some phpdoc&apos;s,  set correct namespaces and types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-281</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Engerim:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/149&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/149&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13709">DBAL-281</key>
            <summary>[GH-149] changed some phpdoc&apos;s,  set correct namespaces and types</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 May 2012 14:12:39 +0000</created>
                <updated>Tue, 22 May 2012 17:53:09 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:51:03 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17964" author="beberlei" created="Tue, 22 May 2012 17:53:09 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-149&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/149&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/149&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-280] [GH-148] No bug. Respect the case used in the interface</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-280</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of pap-florin:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/148&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/148&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13706">DBAL-280</key>
            <summary>[GH-148] No bug. Respect the case used in the interface</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 May 2012 11:46:59 +0000</created>
                <updated>Tue, 22 May 2012 17:47:40 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:46:49 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17962" author="beberlei" created="Tue, 22 May 2012 17:47:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-148&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/148&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/148&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-279] [GH-147] 2.2 Add lastInsertId() support for OCI8 Driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-279</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of franek:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/147&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/147&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Add lastInsertId() support for Sequence&lt;/p&gt;</description>
                <environment></environment>
            <key id="13704">DBAL-279</key>
            <summary>[GH-147] 2.2 Add lastInsertId() support for OCI8 Driver</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 May 2012 13:17:51 +0000</created>
                <updated>Tue, 22 May 2012 19:21:29 +0000</updated>
                    <resolved>Tue, 22 May 2012 19:21:29 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-278] add support for lastInsertId method on OCI8 Driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-278</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The method lastInsertId() is not defined for OCI8 Driver in Doctrine\DBAL\Driver\OCI8\OCI8Connection.php :&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;OCI8Connection.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function lastInsertId($name = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
{
    &lt;span class=&quot;code-comment&quot;&gt;//TODO: &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; exception or support sequences?
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I propose this method to handle lastInsertId for sequence : &lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-style: solid;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;border-bottom-style: solid;&quot;&gt;&lt;b&gt;OCI8Connection.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function lastInsertId($name = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
 {
        &lt;span class=&quot;code-comment&quot;&gt;// For sequence
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (is_string($name)) {
            &lt;span class=&quot;code-comment&quot;&gt;// We can check eventually check the presence of the sequence in the table
&lt;/span&gt;            &lt;span class=&quot;code-comment&quot;&gt;// USER_SEQUENCES
&lt;/span&gt;            $sql = &apos;SELECT &apos; . $name . &apos;.CURRVAL FROM DUAL&apos;;
            &lt;span class=&quot;code-comment&quot;&gt;// will &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; an exception &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; sequence does not exist
&lt;/span&gt;            $stmt = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;query($sql);
            $result = $stmt-&amp;gt;fetch(\PDO::FETCH_ASSOC);
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($result !== &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; &amp;amp;&amp;amp; isset($result[&apos;CURRVAL&apos;])) {
                &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; (&lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;) $result[&apos;CURRVAL&apos;];
            }
    }
    &lt;span class=&quot;code-comment&quot;&gt;// OCI8 driver does not provide support of lastInsertId
&lt;/span&gt;    &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Thanks,&lt;/p&gt;</description>
                <environment>oci8</environment>
            <key id="13702">DBAL-278</key>
            <summary>add support for lastInsertId method on OCI8 Driver</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="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="franek">Franek</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 May 2012 12:50:54 +0000</created>
                <updated>Tue, 22 May 2012 19:21:16 +0000</updated>
                    <resolved>Tue, 22 May 2012 19:21:16 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-277] [GH-146] auto-quote table and column name in Connection-&gt;delete/insert/update()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-277</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of nicolas-grekas:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/146&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/146&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;I wonder why quoting of table/column names in Connection-&amp;gt;delete/insert/update() is left to the developer and not not done internally by the library?&lt;/p&gt;

&lt;p&gt;I made a patch to allow the lib to quote table and column names in a backward-compatible way. I believe that if this feature is not already in the lib, there must be some reason, but I can&apos;t understand it right now, nor find a reference to any rational.&lt;/p&gt;

&lt;p&gt;Would it be possible to elaborate the reason if possible, while accepting / rejecting the pull request at your will of course?&lt;/p&gt;

&lt;p&gt;Many thanks.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13701">DBAL-277</key>
            <summary>[GH-146] auto-quote table and column name in Connection-&gt;delete/insert/update()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 May 2012 12:47:48 +0000</created>
                <updated>Tue, 22 May 2012 17:49:05 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:49:05 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17947" author="beberlei" created="Wed, 16 May 2012 13:08:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-146&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/146&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/146&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-276] MySQL schema manager should not make assumptions about non-DBAL types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-276</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using the DBAL MySQL schema manager to create migrations or update the schema directly, it can create conflicts with custom types due to the way it processes some non-DBAL types in _getPortableTableColumnDefinition.&lt;/p&gt;

&lt;p&gt;I recently implemented a binary-string type, using the MySQL BINARY/VARBINARY columns (as opposed to blob, which I see has been adopted in 2.2), due to the content for my application &lt;b&gt;always&lt;/b&gt; being a 60 byte binary string. Doctrine has been working fine with it, but upon generating my next migration, I discovered that the schema manager wanted to re-set the column&apos;s length.&lt;br/&gt;
Generated SQL: &quot;ALTER TABLE User CHANGE password password VARBINARY(60) NOT NULL&quot;&lt;/p&gt;

&lt;p&gt;It appears that this is caused by lines 138 &amp;amp; 139 of MySqlSchemaManager.php clearing the column&apos;s length. There doesn&apos;t seem to be any other code pertaining to MySQL and binary/varbinary, so removing these two lines should be safe and save trouble for future users, without causing issues for those who choose to implement it as a blob or similar.&lt;/p&gt;</description>
                <environment>Macintosh OS X 10.7.2&lt;br/&gt;
Homebrew PHP 5.3.6 (CLI SAPI)&lt;br/&gt;
Doctrine DBAL v2.1.6, installed via Symfony2&amp;#39;s vendor scripts</environment>
            <key id="13700">DBAL-276</key>
            <summary>MySQL schema manager should not make assumptions about non-DBAL types</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="predakanga">Lachlan Pease</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 May 2012 07:45:35 +0000</created>
                <updated>Sun, 27 May 2012 08:58:59 +0000</updated>
                    <resolved>Sun, 27 May 2012 08:58:59 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17991" author="beberlei" created="Sun, 27 May 2012 08:58:59 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-275] Automatically attempt to reconnect a dropped persistent MySQL-connection (MySQL server has gone away)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-275</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For php-scripts that run for a long time (a.o. daemons) persistent connections will almost always be dropped by the MySQL-server after a set timeout (depending on wait_timeout). This will have Doctrine throw an exception and have the php-script terminate if not catched. It is not practical to catch the same Exception with a try-catch around every query. &lt;/p&gt;

&lt;p&gt;I have fixed this for DBAL 2.1.6 by adding a custom layer of Statement-, Connection- and Driver classes.&lt;br/&gt;
Key functionalities:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The custom layer will transparently catch dropped connections and attempt a number of times (configurable) to reconnect.&lt;/li&gt;
	&lt;li&gt;The behaviour will not be triggered in a transaction (in that case it will revert to throwing an exception just like before).&lt;/li&gt;
	&lt;li&gt;The reconnect behaviour is not MySQL specific per se. It can be triggered by any Exception for any Driver-type if a Driver provides a method &apos;getReconnectExceptions&apos;.&lt;/li&gt;
	&lt;li&gt;Minimal performance-impact. Only when an Exception is thrown will it be searched for a matching Exception to possibly trigger the behaviour. (also the reason a single stringmatch is used)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Why this functionality?&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It is often not possible to change settings of a database-server.&lt;/li&gt;
	&lt;li&gt;In a production environment the MySQL wait_timeout is often set to mere seconds&lt;/li&gt;
	&lt;li&gt;Doctrine&apos;s use of persistent connections will become a little more persistent &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/li&gt;
	&lt;li&gt;More reliable and robust php-scripts built on top of the DBAL&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;See files in attached archive to get an idea of the code. Enabling the layer is currently done like this (Symfony2 yml):&lt;br/&gt;
doctrine:&lt;br/&gt;
    dbal:&lt;br/&gt;
        wrapper_class: DoP\DoPBundle\Doctrine\DBAL\Connection&lt;br/&gt;
        driver_class: DoP\DoPBundle\Doctrine\DBAL\Driver\PDOMySql\Driver&lt;br/&gt;
        options:&lt;br/&gt;
            x_reconnect_attempts: 2&lt;/p&gt;

&lt;p&gt;Maybe I overlook something, but I only see pro&apos;s, no cons, to this improvement. I have created this issue to poll if you think this is a welcome feature and are interested to have me rework the code into DBAL itself? Reworking it into DBAL itself would certainly greatly reduce my code.&lt;/p&gt;

&lt;p&gt;If agreed I&apos;ll create a github pull request when finished with the code and take comments/improvements from there.&lt;/p&gt;

&lt;p&gt;(Also, I have glanced over &lt;a href=&quot;http://www.doctrine-project.org/contribute.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/contribute.html&lt;/a&gt; but did not find any coding/testing-guidelines. Can you point me in the right direction?)&lt;/p&gt;

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

&lt;p&gt;Dieter&lt;/p&gt;</description>
                <environment>doctrine-dbal/2.1.6, driver PDOMySql</environment>
            <key id="13698">DBAL-275</key>
            <summary>Automatically attempt to reconnect a dropped persistent MySQL-connection (MySQL server has gone away)</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="peetersdiet">Dieter Peeters</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 May 2012 16:26:49 +0000</created>
                <updated>Wed, 21 Nov 2012 11:39:50 +0000</updated>
                                    <version>2.1.6</version>
                                                        <due></due>
                    <votes>4</votes>
                        <watches>8</watches>
                        <comments>
                    <comment id="18540" author="naderman" created="Fri, 24 Aug 2012 18:42:17 +0000"  >&lt;p&gt;Sounds like a rather useful addition to me, would be cool to see this as a default feature.&lt;/p&gt;</comment>
                    <comment id="18974" author="jpauli" created="Tue, 13 Nov 2012 10:06:15 +0000"  >&lt;p&gt;We used this at work, it&apos;s simple, it could need more reflection&lt;/p&gt;</comment>
                    <comment id="18975" author="beberlei" created="Tue, 13 Nov 2012 10:12:17 +0000"  >&lt;p&gt;The problem with a generic solution here are the risks involved, we need to answer questions:&lt;/p&gt;

&lt;p&gt;1. did a transaction get aborted beccause of this&lt;br/&gt;
2. is it safe to continue at this point with a second, new connection&lt;/p&gt;

&lt;p&gt;I am not sure we can guarantee the 100% working.&lt;/p&gt;</comment>
                    <comment id="18977" author="peetersdiet" created="Tue, 13 Nov 2012 12:34:29 +0000"  >&lt;p&gt;@Julien:&lt;br/&gt;
I assume you are referring to the elaborated switch-statement? Well, since this is a DBAL I think data-integrity and performance are the more important things. In my experience when performance is important, you avoid reflection in PHP as much as possible. In the light of performance the switch-statement was a very deliberate substitution of a call to call_user_func_array. The number of arguments was finite and I am fairly sure all possible cases where covered.&lt;/p&gt;

&lt;p&gt;@Benjamin:&lt;br/&gt;
It seems I forgot to mention this in my statement above. Transactions are indeed an issue I deliberately avoided in this early version. As far as I know, transactions in MySQL are connection-based so the transaction will be rolled back when the server disconnects. A solution would be to incorporate a cache of all statements in a transaction. I was waiting on feedback of the Doctrine-developers on incorporating this code into the DBAL itself, before extending it with more functionality... and I now notice that it got assigned &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ll try to answer your two questions:&lt;br/&gt;
1. If the connection is dropped when inside a transaction, the behaviour will revert to the normal Doctrine-behaviour, i.e. no reconnection-attempt will be made and the exception &apos;MySQL server has gone away&apos; will be thrown.&lt;br/&gt;
2. To be clear, I always try to write bug-free code, but I do not guarantee anything about this code. To answer your question: yes, it is safe to continue if you try-catch your transaction in your application-code. Upon the exception you reconnect to MySQL and repeat the lost transaction.&lt;/p&gt;

&lt;p&gt;And as a last note, this code is just to have a workable solution. I tend to agree with anyone who thinks that the correct place to fix this problem is in the MySQL-client itself.&lt;/p&gt;

&lt;p&gt;Dieter&lt;/p&gt;</comment>
                    <comment id="18978" author="beberlei" created="Tue, 13 Nov 2012 12:43:13 +0000"  >&lt;p&gt;My idea would be to throw an exception on reconnect like it is done atm, when transactionNestingLevel &amp;gt; 0, and otherwise proceed with doing the reconnect. I am not sure i am missing something here though.&lt;/p&gt;</comment>
                    <comment id="18979" author="peetersdiet" created="Tue, 13 Nov 2012 12:44:06 +0000"  >&lt;p&gt;@Benjamin: I noticed after commenting that you&apos;re the assignee ... and corrected my comment a bit.&lt;/p&gt;

&lt;p&gt;Now, if you want I can extend the functionality to support transactions. But I prefer to do this directly into the DBAL, not as a layer on top. The resulting code should be a bit cleaner than this layer now.&lt;/p&gt;

&lt;p&gt;What do you think?&lt;/p&gt;

&lt;p&gt;*&lt;b&gt;edit&lt;/b&gt;*&lt;br/&gt;
A bit of crossposting here &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;The way you suggest is the way this layer is implemented&lt;br/&gt;
*&lt;b&gt;edit&lt;/b&gt;*&lt;/p&gt;

&lt;p&gt;Dieter&lt;/p&gt;</comment>
                    <comment id="18980" author="peetersdiet" created="Tue, 13 Nov 2012 12:50:12 +0000"  >&lt;p&gt;@Benjamin&lt;br/&gt;
It&apos;s been a while since I wrote the code. Above answers are from memory. I will revise the code this evening and give you exact answers. Also, related to transactions, I think the way I handle the savepoints should be revised.&lt;/p&gt;</comment>
                    <comment id="18981" author="peetersdiet" created="Tue, 13 Nov 2012 13:11:59 +0000"  >&lt;p&gt;@Benjamin:&lt;br/&gt;
Sorry for the spam... &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I couldn&apos;t help myself doing a quick verification. The answer to your question lies in the file Connection.php. The method DoP\DoPBundle\Doctrine\DBAL\Connection::validateReconnectAttempt also checks that the transactionNestingLevel &amp;lt; 1, so the method will always return false when in a transaction. I.o.w. when in a transaction no attempt to reconnect will be made and the exception is simply rethrown, as per the default Doctrine behaviour.&lt;/p&gt;</comment>
                    <comment id="19016" author="pkruithof" created="Wed, 21 Nov 2012 11:11:16 +0000"  >&lt;p&gt;I could really use this for kong running cronjobs and daemonized scripts. Is this being worked on right now?&lt;/p&gt;</comment>
                    <comment id="19017" author="peetersdiet" created="Wed, 21 Nov 2012 11:39:50 +0000"  >&lt;p&gt;Peter, you can use the above code, but it only works for statements outside of transactions. Also, the calls for savepoints in transactions need correction. Will do that when I find the time.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11348" name="doctrine-connection.php" size="4948" author="jpauli" created="Tue, 13 Nov 2012 10:06:15 +0000" />
                    <attachment id="11189" name="reconnect_layer.tar.gz" size="2003" author="peetersdiet" created="Mon, 14 May 2012 16:30:01 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-274] [GH-145] Allow easier overriding of the DateTime class</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-274</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Seldaek:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/145&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/145&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;If this can be backported to 2.2, it&apos;d be nice.&lt;/p&gt;

&lt;p&gt;The goal is that we have to override the Date* Types in our code to support PKs on Date fields, but at the moment that requires duplicating all the code from those classes, which sucks a bit for maintenance.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13696">DBAL-274</key>
            <summary>[GH-145] Allow easier overriding of the DateTime class</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 May 2012 08:36:39 +0000</created>
                <updated>Sun, 27 May 2012 10:52:48 +0000</updated>
                    <resolved>Sun, 27 May 2012 10:51:14 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17998" author="beberlei" created="Sun, 27 May 2012 10:52:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-145&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/145&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/145&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-273] Allow MasterSlave Connection to switch back to slave</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-273</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13695">DBAL-273</key>
            <summary>Allow MasterSlave Connection to switch back to slave</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 May 2012 19:23:04 +0000</created>
                <updated>Fri, 11 May 2012 19:23:04 +0000</updated>
                                    <version>2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-272] [GH-144] [MYSQLI] Fixed infinite loop in fetchAll()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-272</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/144&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/144&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13692">DBAL-272</key>
            <summary>[GH-144] [MYSQLI] Fixed infinite loop in fetchAll()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 8 May 2012 23:42:30 +0000</created>
                <updated>Wed, 9 May 2012 07:00:08 +0000</updated>
                    <resolved>Wed, 9 May 2012 07:00:08 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17935" author="beberlei" created="Wed, 9 May 2012 06:58:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-144&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/144&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/144&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-271] [GH-143] added simple_array type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-271</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of schmittjoh:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/143&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/143&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13688">DBAL-271</key>
            <summary>[GH-143] added simple_array type</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="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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 May 2012 17:18:19 +0000</created>
                <updated>Sun, 27 May 2012 15:49:57 +0000</updated>
                    <resolved>Sun, 27 May 2012 15:49:57 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-270] [GH-142] Dbal 264</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-270</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of rivaros:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/142&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/142&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;added support for Postgres UUID type.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13683">DBAL-270</key>
            <summary>[GH-142] Dbal 264</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 5 May 2012 17:37:35 +0000</created>
                <updated>Tue, 22 May 2012 17:56:01 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:56:01 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-269] [GH-141] Fixed conditional expression</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-269</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/141&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/141&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13682">DBAL-269</key>
            <summary>[GH-141] Fixed conditional expression</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 5 May 2012 16:46:08 +0000</created>
                <updated>Sun, 27 May 2012 10:09:02 +0000</updated>
                    <resolved>Sun, 27 May 2012 10:09:02 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-268] [GH-140] Dbal 264 dev</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-268</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of rivaros:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/140&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/140&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Just some small changes taken from 2.3 branch to support guids in 2.2 (backport).&lt;br/&gt;
If you think it can be used, pls merge. Had to use it in my projects as really lacked this feature.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13680">DBAL-268</key>
            <summary>[GH-140] Dbal 264 dev</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 3 May 2012 11:11:55 +0000</created>
                <updated>Fri, 4 May 2012 17:41:01 +0000</updated>
                    <resolved>Fri, 4 May 2012 17:41:01 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17908" author="beberlei" created="Fri, 4 May 2012 17:40:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-140&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/140&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/140&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-267] DBAL\Connection doesn&apos;t escape SQL keywords</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-267</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;m using DBAL Connection&apos;s &quot;insert&quot; and &quot;update&quot; methods to manipulate my database.&lt;/p&gt;

&lt;p&gt;Both those methods doesn&apos;t escape reserved SQL keywords appropriately. See: &lt;a href=&quot;http://www.doctrine-project.org/api/dbal/2.2/source-class-Doctrine.DBAL.Connection.html#493&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/api/dbal/2.2/source-class-Doctrine.DBAL.Connection.html#493&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;For example the following method call will raise an Exception (SQL error):&lt;/p&gt;

&lt;p&gt;$Connection-&amp;gt;insert(&apos;some_table&apos;, array(&lt;br/&gt;
  &apos;from&apos; =&amp;gt; &apos;foo&apos;,&lt;br/&gt;
  &apos;to&apos;      =&amp;gt; &apos;bar&apos;&lt;br/&gt;
));&lt;/p&gt;

&lt;p&gt;Because the &quot;from&quot;-key is a reserved SQL keyword.&lt;/p&gt;

&lt;p&gt;Database abstraction layer such as DBAL MUST consider such situations and act appropriately (i.e. escape field names with regulations specified by syntax of used RDBMS).&lt;/p&gt;

&lt;p&gt;In MySQL i have to do this manually before calling &quot;insert&quot; or &quot;update&quot;:&lt;br/&gt;
$key = &apos;`&apos; . $key . &apos;`&apos;;&lt;br/&gt;
And this is really bad practice, cause it&apos;s platform-depended solution (works only for MySQL).&lt;/p&gt;

&lt;p&gt;I hope you will find my words reasonable. it&apos;s important for developer to be able to use any key names he seems necessary (even if it&apos;s reserved by SQL itself). Sometimes developer doesn&apos;t even have a choice (e.g. when he receives database from third-party and can&apos;t change it&apos;s structure).&lt;/p&gt;</description>
                <environment></environment>
            <key id="13676">DBAL-267</key>
            <summary>DBAL\Connection doesn&apos;t escape SQL keywords</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="slavafomin">Slava Fomin</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 May 2012 09:02:58 +0000</created>
                <updated>Tue, 22 May 2012 17:52:10 +0000</updated>
                    <resolved>Tue, 22 May 2012 17:52:10 +0000</resolved>
                            <version>2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17930" author="rivaros" created="Sat, 5 May 2012 18:07:16 +0000"  >&lt;p&gt;Was discussed here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-40&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-40&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Implicit quoting will not be supported in DBAL.&lt;/p&gt;

&lt;p&gt;If you are ok with explicit quoting, this is supported in ORM.&lt;br/&gt;
Example - notice the backticks:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * MMP\GlobalServicesBundle\Entity\Photographers
 *
 * @ORM\Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`Photographers`&quot;&lt;/span&gt;)
 * @ORM\Entity
 */
class Photographers
{
    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; guidextended $photographerguid
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`PhotographerGUID`&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;guid&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;NONE&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $photographerguid;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; integer $photographerid
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`PhotographerID`&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $photographerid;

    /**
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; string $name
     *
     * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;`Name`&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=50, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $name;
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Example call:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;        $id = &apos;050de0bf-20ea-4e20-b94c-aea6a5e9e6ed&apos;;

        $repository = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getDoctrine()
        -&amp;gt;getRepository(&apos;MMPGlobalServicesBundle:Photographers&apos;);

        $qb = $repository-&amp;gt;createQueryBuilder(&apos;p&apos;);
        $query = $qb-&amp;gt;select(&apos;p.name, p.surname&apos;)-&amp;gt;where(&lt;span class=&quot;code-quote&quot;&gt;&quot;p.photographerguid = &apos;$id&apos;&quot;&lt;/span&gt;);
         print_r($query-&amp;gt;getQuery()-&amp;gt;getSQL());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Output:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;SELECT p0_.&lt;span class=&quot;code-quote&quot;&gt;&quot;Name&quot;&lt;/span&gt; AS name0, p0_.&lt;span class=&quot;code-quote&quot;&gt;&quot;Surname&quot;&lt;/span&gt; AS surname1 FROM &lt;span class=&quot;code-quote&quot;&gt;&quot;Photographers&quot;&lt;/span&gt; p0_ WHERE p0_.&lt;span class=&quot;code-quote&quot;&gt;&quot;PhotographerGUID&quot;&lt;/span&gt; = &apos;050de0bf-20ea-4e20-b94c-aea6a5e9e6ed&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="17963" author="beberlei" created="Tue, 22 May 2012 17:52:10 +0000"  >&lt;p&gt;See &lt;a href=&quot;http://www.alberton.info/dbms_identifiers_and_case_sensitivity.html&quot; class=&quot;external-link&quot;&gt;http://www.alberton.info/dbms_identifiers_and_case_sensitivity.html&lt;/a&gt; for reasoning why we dont automatic identifier quoting.&lt;/p&gt;

&lt;p&gt;You can do $conn-&amp;gt;update(..., array(&apos;`quoted`&apos; =&amp;gt; $value));&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-266] [GH-139] [Mysql Platform] Added mapping for binary and varbinary.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-266</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/139&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/139&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13673">DBAL-266</key>
            <summary>[GH-139] [Mysql Platform] Added mapping for binary and varbinary.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 1 May 2012 14:08:03 +0000</created>
                <updated>Fri, 4 May 2012 17:47:36 +0000</updated>
                    <resolved>Fri, 4 May 2012 17:47:36 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17909" author="beberlei" created="Fri, 4 May 2012 17:40:49 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-139&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/139&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/139&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-265] [GH-138] Dbal 264</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-265</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of rivaros:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/138&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/138&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;I would appreciate these light changes back-ported to 2.1.x&lt;br/&gt;
These are just support of uuids/guids types in dbal.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13672">DBAL-265</key>
            <summary>[GH-138] Dbal 264</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Apr 2012 16:37:37 +0000</created>
                <updated>Fri, 4 May 2012 17:49:42 +0000</updated>
                    <resolved>Fri, 4 May 2012 17:49:42 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17902" author="beberlei" created="Thu, 3 May 2012 10:37:37 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-138&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/138&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/138&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-264] Support for UIDs in PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-264</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Please add support for uuid datatype in PostgreSQL&lt;/p&gt;</description>
                <environment></environment>
            <key id="13671">DBAL-264</key>
            <summary>Support for UIDs in PostgreSQL</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="10000" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rivaros">ross neacoders</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Apr 2012 16:09:09 +0000</created>
                <updated>Mon, 29 Apr 2013 02:05:11 +0000</updated>
                                    <version>2.3</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18828" author="zeroem" created="Fri, 12 Oct 2012 06:00:59 +0000"  >&lt;p&gt;It seems the only missing piece is the implementation of the getGuidExpression method in the PostgreSqlPlatform class.&lt;/p&gt;

&lt;p&gt;Details on generating UUIDs from postgres can be found here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.postgresql.org/docs/current/static/uuid-ossp.html&quot; class=&quot;external-link&quot;&gt;http://www.postgresql.org/docs/current/static/uuid-ossp.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Things that would need to be addressed:&lt;/p&gt;

&lt;p&gt;1) It requires the uuid-ossp module to be installed in the database.  Solve with documentation or ...?&lt;/p&gt;

&lt;p&gt;2) There isn&apos;t just one function.  Just pick one or make it configurable with a sane default?&lt;/p&gt;</comment>
                    <comment id="19113" author="scribblet" created="Mon, 10 Dec 2012 05:20:26 +0000"  >&lt;p&gt;I have implemented this for my own project, using what I think is a sane default:&lt;/p&gt;

&lt;p&gt;    public function getGuidExpression()&lt;/p&gt;
    {
        return &apos;uuid_generate_v4()&apos;;
    }

&lt;p&gt;The other issue I think that needs addressing is that the extension must be loaded into the current database upon creation. Either this is a deal-breaker right here (relying on a PGSQL plugin that&apos;s not available by default)&lt;/p&gt;

&lt;p&gt;OR&lt;/p&gt;

&lt;p&gt;If not, maybe schema:update/create needs to check for whether postgresql is being used, whether there is a guid type/generator being used in an entity, and then either execute CREATE EXTENSION uuid-ossp;, and failing that return an exception that informs the user that uuid-ossp must be available as an extension before GUID generation can be used in entities.&lt;/p&gt;

&lt;p&gt;Can someone explain to me please the position on this currently? Is it not ok to rely on non-core/standard functionality?&lt;/p&gt;</comment>
                    <comment id="20101" author="mbadolato" created="Thu, 25 Apr 2013 00:23:23 +0000"  >&lt;p&gt;Is there any sort of decision on this item? I was trying to use UUID with Postgres and finally got it to work by adding&lt;/p&gt;

&lt;p&gt;public function getGuidExpression()&lt;/p&gt;
{
    return &apos;UUID_GENERATE_V4()&apos;;
}

&lt;p&gt;and went to submit a patch, then found this ticket and see that it&apos;s the exact same solution that Ross Cousens submitted above. I&apos;d really like to not maintain my own fork of the repository just to have this change in place, and it seems like a reasonable fix (barring the uuid-ossp extension not being a Postgres default extension). Can we get this in there so it&apos;s available, and worry about the issue of informing the user about the extension at a later point?  &lt;/p&gt;

&lt;p&gt;Or is there an easy way that anyone knows that I can add the function to my own class (in a Symfony2 project) that would extend PostgreSqlPlatform.php and add the function, without the need for me to fork Doctrine and add it on my own?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
--mark&lt;/p&gt;</comment>
                    <comment id="20106" author="mbadolato" created="Thu, 25 Apr 2013 18:24:26 +0000"  >&lt;p&gt;Pull request submitted&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20107" author="scribblet" created="Fri, 26 Apr 2013 01:50:37 +0000"  >&lt;p&gt;I hope this gets accepted but I fear it won&apos;t.&lt;/p&gt;

&lt;p&gt;The original complaint against implementing GUID for the PostgreSQL platform driver was because a) it required a separate extension to be enabled on the server itself b) and there were a number of GUID generation functions available.&lt;/p&gt;

&lt;p&gt;To use anything but v4 would be asinine unless some external constraint was forcing you to use the older generation algorithms, so I think argument b is mostly moot. Argument a can easily be solved with documentation, programmatically as well (would require more work) or just left as is because the error back from postgresql is very verbose. Cannot find function uuid_generate_v4. Google it, see that extension is required, see that it&apos;s available in PostgreSQL contrib packages, enable it, and voila it works.&lt;/p&gt;</comment>
                    <comment id="20108" author="mbadolato" created="Fri, 26 Apr 2013 02:30:09 +0000"  >&lt;p&gt;Agreed, and I think that having SOMETHING that is usable (and has a very clear message that you need to install an extension) is better than nothing. The implementation can be expanded later to cover the extension not existing, or using something other than v4, etc.  But this should be good enough for most people and it seems silly not to have, or at least not have a way to override and provide it. &lt;/p&gt;

&lt;p&gt;I was looking at the Symfony configs to see if there was a way to define my own platform class that could then just extend the current PostgreSqlPlatform class and add a the function, but that doesn&apos;t seem to be doable (or I just missed it)&lt;/p&gt;</comment>
                    <comment id="20118" author="mbadolato" created="Sat, 27 Apr 2013 08:40:08 +0000"  >&lt;p&gt;I just saw that this got merged into master. As soon as this hits 2.3* I can do away with the manual UUID generation for id&apos;s that we&apos;re currently doing &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks much Benjamin!&lt;/p&gt;</comment>
                    <comment id="20124" author="scribblet" created="Mon, 29 Apr 2013 02:04:36 +0000"  >&lt;p&gt;Yay, I am happy that this has been accepted and will make it through to next release. Thank you Mark/Benjamin!&lt;/p&gt;

</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-263] [GH-137] Support OCI8 statements crossing transactions [DBAL-202]</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-263</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dpb587:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/137&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/137&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Bug Fix: yes&lt;br/&gt;
Feature addition: no&lt;br/&gt;
Backwards compatibility break: no&lt;br/&gt;
[!&lt;span class=&quot;error&quot;&gt;&amp;#91;Build Status&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://secure.travis-ci.org/dpb587/dbal.png?branch=ticket-dbal-202)](http://travis-ci.org/dpb587/dbal&quot; class=&quot;external-link&quot;&gt;https://secure.travis-ci.org/dpb587/dbal.png?branch=ticket-dbal-202)](http://travis-ci.org/dpb587/dbal&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Scenario is documented in JIRA &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-202&quot; title=&quot;Preparing Statements outside Transaction&quot;&gt;&lt;del&gt;DBAL-202&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-202&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-202&lt;/a&gt;). Basically in oci8 if you prepare a statement outside of a transaction, start a transaction, execute the statement, rollback the transaction - the statement will still have been executed. Whether it&apos;s the correct behavior or not, it seems like it should match PDO&apos;s behavior.&lt;/p&gt;

&lt;p&gt;This implementation affects the API, so it should probably be carefully reviewed.&lt;/p&gt;

&lt;p&gt;A separate test script is available at &lt;a href=&quot;https://gist.github.com/2515100&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/2515100&lt;/a&gt;(gist.github.com/2515100).&lt;/p&gt;

&lt;p&gt;    $ php -v ; php --re oci8 | head -1&lt;br/&gt;
    PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40) &lt;br/&gt;
    Copyright (c) 1997-2009 The PHP Group&lt;br/&gt;
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies&lt;br/&gt;
        with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans&lt;br/&gt;
        with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH&lt;br/&gt;
    Extension [ &amp;lt;persistent&amp;gt; extension #52 oci8 version 1.4.2 ] {&lt;br/&gt;
    $ phpunit -c oci8.phpunit.xml.dist tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php&lt;br/&gt;
    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ..&lt;/p&gt;

&lt;p&gt;    Time: 0 seconds, Memory: 7.50Mb&lt;/p&gt;

&lt;p&gt;    OK (2 tests, 2 assertions)&lt;br/&gt;
    $ phpunit -c oci8.phpunit.xml.dist tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL202Test.php&lt;br/&gt;
    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ..&lt;/p&gt;

&lt;p&gt;    Time: 7 seconds, Memory: 9.50Mb&lt;br/&gt;
    OK (2 tests, 6 assertions)&lt;/p&gt;

&lt;p&gt;I had to drop the the following tests to run through the oracle test suite (seemed like my test user didn&apos;t have enough permissions for the temp db tests), but all other tests pass.&lt;/p&gt;

&lt;p&gt;    $ rm tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php&lt;br/&gt;
    $ rm tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php # see pull 136&lt;br/&gt;
    $ rm tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php&lt;br/&gt;
    $ phpunit -c oci8.phpunit.xml.dist&lt;br/&gt;
    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ...............................................................  63 / 747 (  8%)&lt;br/&gt;
    .......SSSS.....S........S......................S...........S.. 126 / 747 ( 16%)&lt;br/&gt;
    .............................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 189 / 747 ( 25%)&lt;br/&gt;
    SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 252 / 747 ( 33%)&lt;br/&gt;
    SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.............S........ 315 / 747 ( 42%)&lt;br/&gt;
    ...S...S...SSS................................................. 378 / 747 ( 50%)&lt;br/&gt;
    ............................................................... 441 / 747 ( 59%)&lt;br/&gt;
    .....SSS....................................................... 504 / 747 ( 67%)&lt;br/&gt;
    ............................................................... 567 / 747 ( 75%)&lt;br/&gt;
    ..............S................................................ 630 / 747 ( 84%)&lt;br/&gt;
    ............................................................... 693 / 747 ( 92%)&lt;br/&gt;
    ......................................................&lt;/p&gt;

&lt;p&gt;    Time: 33 seconds, Memory: 46.00Mb&lt;/p&gt;

&lt;p&gt;    OK, but incomplete or skipped tests!&lt;br/&gt;
    Tests: 747, Assertions: 1145, Skipped: 156.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13666">DBAL-263</key>
            <summary>[GH-137] Support OCI8 statements crossing transactions [DBAL-202]</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 28 Apr 2012 03:11:08 +0000</created>
                <updated>Sat, 5 May 2012 07:37:34 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:37:34 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17916" author="beberlei" created="Sat, 5 May 2012 07:34:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-137&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/137&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/137&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17917" author="beberlei" created="Sat, 5 May 2012 07:37:34 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-262] [GH-136] Support oci8 in TableGenerator</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-262</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dpb587:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/136&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/136&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Bug fix: yes&lt;br/&gt;
Feature addition: no&lt;br/&gt;
Backwards compatibility break: no&lt;br/&gt;
[!&lt;span class=&quot;error&quot;&gt;&amp;#91;Build Status&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://secure.travis-ci.org/dpb587/dbal.png?branch=bugfix-TableGenerator)](http://travis-ci.org/dpb587/dbal&quot; class=&quot;external-link&quot;&gt;https://secure.travis-ci.org/dpb587/dbal.png?branch=bugfix-TableGenerator)](http://travis-ci.org/dpb587/dbal&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;This test was breaking when running under `oci8` due to Oracle&apos;s deference to upper case column names. I realize Oracle has built-in sequences and `TableGenerator` is unnecessary, in theory, but it seemed like the class should work if possible. I see pgsql is in the same boat.&lt;/p&gt;

&lt;p&gt;Tested with:&lt;/p&gt;

&lt;p&gt;    phpunit -c oci8.phpunit.xml.dist tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php&lt;/p&gt;

&lt;p&gt;Before:&lt;/p&gt;

&lt;p&gt;    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    EE&lt;/p&gt;

&lt;p&gt;    Time: 0 seconds, Memory: 10.25Mb&lt;/p&gt;

&lt;p&gt;    There were 2 errors:&lt;/p&gt;

&lt;p&gt;    1) Doctrine\Tests\DBAL\Functional\TableGeneratorTest::testNextVal&lt;br/&gt;
    Exception: &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt; Error occured while generating ID with TableGenerator, aborted generation: Undefined index: sequence_value&lt;/p&gt;

&lt;p&gt;    2) Doctrine\Tests\DBAL\Functional\TableGeneratorTest::testNextValNotAffectedByOuterTransactions&lt;br/&gt;
    Exception: &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt; Error occured while generating ID with TableGenerator, aborted generation: Undefined index: sequence_value&lt;/p&gt;


&lt;p&gt;After:&lt;/p&gt;

&lt;p&gt;    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ..&lt;/p&gt;

&lt;p&gt;    Time: 1 second, Memory: 10.25Mb&lt;/p&gt;

&lt;p&gt;    OK (2 tests, 5 assertions)&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13665">DBAL-262</key>
            <summary>[GH-136] Support oci8 in TableGenerator</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 28 Apr 2012 02:48:39 +0000</created>
                <updated>Sat, 5 May 2012 07:45:25 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:13:51 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17913" author="beberlei" created="Sat, 5 May 2012 07:13:51 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="17919" author="beberlei" created="Sat, 5 May 2012 07:45:25 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-136&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/136&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/136&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-261] MasterSlaveConnection fails to load ConnectionEventArgs</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-261</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Incorrect class referenced at line 164 of Doctrine\DBAL\Connection\MasterSlaveConnection.php: &lt;/p&gt;

&lt;p&gt;$eventArgs = new Event\ConnectionEventArgs($this);&lt;/p&gt;

&lt;p&gt;Current namespace is Doctrine\DBAL\Connection so class loader fails when looking for Doctrine\DBAL\Connection\Event\ConnectionEventArgs&lt;/p&gt;

&lt;p&gt;Work around is to add Doctrine\DBAL\Event\ConnectionEventArgs to use directive and change line to:&lt;/p&gt;

&lt;p&gt;$eventArgs = new ConnectionEventArgs($this);&lt;/p&gt;</description>
                <environment></environment>
            <key id="13656">DBAL-261</key>
            <summary>MasterSlaveConnection fails to load ConnectionEventArgs</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</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="rburgess">Raymond Burgess</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Apr 2012 02:31:43 +0000</created>
                <updated>Sat, 5 May 2012 07:18:09 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:18:09 +0000</resolved>
                            <version>2.2.1</version>
                <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-260] [GH-135] Add typehint info to core types for use by entity generator.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-260</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of benlumley:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/135&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/135&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;So as you probably know, the EntityGenerator doesn&apos;t typehint the setters for the DateTime types (datetime, date, datetimetz, time) - which has just caused me to miss an obvious error, and judging from google, plenty of others before me too.&lt;/p&gt;

&lt;p&gt;So I&apos;ve added it - you&apos;ll have a pull request in a sec on the doctrine2 repo for that, but it needs this change too - which provides the mapping info.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13645">DBAL-260</key>
            <summary>[GH-135] Add typehint info to core types for use by entity generator.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Apr 2012 23:01:35 +0000</created>
                <updated>Fri, 4 May 2012 17:55:11 +0000</updated>
                    <resolved>Fri, 4 May 2012 17:55:11 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17889" author="beberlei" created="Thu, 26 Apr 2012 21:50:07 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-135&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/135&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/135&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-259] [GH-134] Removed Paranthesis to allow for more complex Regex</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-259</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Hounddog:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/134&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/134&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Needed to remove the Paranthesis to allow for complex Regular Expressions. e.g Exclusion of tables&lt;/p&gt;</description>
                <environment></environment>
            <key id="13637">DBAL-259</key>
            <summary>[GH-134] Removed Paranthesis to allow for more complex Regex</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Apr 2012 11:06:10 +0000</created>
                <updated>Sat, 5 May 2012 11:40:38 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:40:38 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17928" author="beberlei" created="Sat, 5 May 2012 11:40:38 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-258] [GH-133] Removed Paranthesis to allow for more complex Regex</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-258</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Hounddog:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/133&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/133&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Needed to remove the Paranthesis to allow excluding of Tables with more complex Regular Expressions.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13636">DBAL-258</key>
            <summary>[GH-133] Removed Paranthesis to allow for more complex Regex</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 17 Apr 2012 10:41:55 +0000</created>
                <updated>Fri, 4 May 2012 17:37:35 +0000</updated>
                    <resolved>Fri, 4 May 2012 17:37:35 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17859" author="beberlei" created="Tue, 17 Apr 2012 10:48:03 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-133&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/133&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/133&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-257] OCI8Statement::fetchColumn() returns null instead of false</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-257</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In &lt;br/&gt;
public function fetchColumn($columnIndex = 0)&lt;br/&gt;
{&lt;br/&gt;
        $row = oci_fetch_array($this-&amp;gt;_sth, OCI_NUM | OCI_RETURN_NULLS | OCI_RETURN_LOBS);&lt;br/&gt;
        return $row&lt;span class=&quot;error&quot;&gt;&amp;#91;$columnIndex&amp;#93;&lt;/span&gt;;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;there is no control on oci_fetch_array_() returned value.&lt;br/&gt;
When it returns false fetchColumn() returns null instead of false.&lt;/p&gt;

&lt;p&gt;Solution:&lt;br/&gt;
public function fetchColumn($columnIndex = 0)&lt;br/&gt;
{&lt;br/&gt;
        $row = oci_fetch_array($this-&amp;gt;_sth, OCI_NUM | OCI_RETURN_NULLS | OCI_RETURN_LOBS);&lt;br/&gt;
        return isset($row&lt;span class=&quot;error&quot;&gt;&amp;#91;$columnIndex&amp;#93;&lt;/span&gt;) ? $row&lt;span class=&quot;error&quot;&gt;&amp;#91;$columnIndex&amp;#93;&lt;/span&gt; : false;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
            <key id="13635">DBAL-257</key>
            <summary>OCI8Statement::fetchColumn() returns null instead of false</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="zoff">lorenzo zoffoli</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Apr 2012 15:18:15 +0000</created>
                <updated>Sat, 5 May 2012 09:28:22 +0000</updated>
                    <resolved>Sat, 5 May 2012 09:28:22 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17924" author="beberlei" created="Sat, 5 May 2012 09:28:22 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-256] MySQL doesn&apos;t allow a query with an offset without a limit</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-256</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;With MySQL, it is not allowed to do a request like this:&lt;br/&gt;
select * from table OFFSET 2&lt;/p&gt;

&lt;p&gt;It is mandatory to have the LIMIT clause included:&lt;br/&gt;
select * from table LIMIT 1000 OFFSET 2&lt;/p&gt;

&lt;p&gt;But, in the AbstractPlaform class, there is no check to control if the offset has been set but not the limit:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L2549&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L2549&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;So in the jackalope-doctrine-dbal environment (&lt;a href=&quot;https://github.com/jackalope/jackalope-doctrine-dbal/&quot; class=&quot;external-link&quot;&gt;https://github.com/jackalope/jackalope-doctrine-dbal/&lt;/a&gt;), it generates an invalid query for MySQL. This occurs if the QueryBuilder is used in this way, which I think is allowed:&lt;br/&gt;
$this-&amp;gt;query-&amp;gt;setOffset(2);&lt;br/&gt;
$qr = $this-&amp;gt;query-&amp;gt;execute();&lt;/p&gt;

&lt;p&gt;The MySQL documentation specifies that it can be used by adding some large number in the limit:&lt;br/&gt;
&lt;a href=&quot;http://dev.mysql.com/doc/refman/5.5/en/select.html&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.5/en/select.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Can it be done automatically by Doctrine DBAL?  &lt;/p&gt;</description>
                <environment>jackalope-doctrine-dbal&lt;br/&gt;
MySQL 5.5.21&lt;br/&gt;
PHP 5.3.10 on Mac OS 10.7.3 </environment>
            <key id="13629">DBAL-256</key>
            <summary>MySQL doesn&apos;t allow a query with an offset without a limit</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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adou600">Adrien Nicolet</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Apr 2012 14:41:39 +0000</created>
                <updated>Sun, 8 Jul 2012 07:18:23 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 07:18:23 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18238" author="beberlei" created="Sun, 8 Jul 2012 07:18:23 +0000"  >&lt;p&gt;This is a case of &quot;leacky-abstraction&quot;, the developer of a Doctrine DBAL client has to know this and act accordingly.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-255] On SQL SERVER Trying to drop a column throws error because of auto generated Constraints</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-255</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Whenever Doctrine tries to drop a column that has some implicit constraints the system the SQL Native Client throws the message:&lt;/p&gt;

&lt;p&gt;The Object &apos;Name_Of_The_Object&apos; is dependent on column &apos;Column_To_Drop&apos;;&lt;/p&gt;

&lt;p&gt;This is probably because columns such as Decimal Numbers have an automatice generated constraint that need to be dropped in order to drop a column.&lt;/p&gt;

&lt;p&gt;A possible Solution is to add  a platform specific getConstratintForTableSQL that queries the database to get all the constraint for the given column, than override the &apos;alterTable&apos; method in the SQLServer Schema Manager to first drop the constraint than the columns in question by going and checking all the Columns that needs to be dropped in the TableDiff passed.&lt;/p&gt;

&lt;p&gt;Something similar to this but better refactored I guess:&lt;/p&gt;

&lt;p&gt;Changes in SQLServerPlatform.php&lt;/p&gt;

&lt;p&gt;Add a method similar to this:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;    /**
     * This function retrieves the constraints &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a given column that is going to be droppped 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getColumnConstraintSQL($table, $column)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &quot;SELECT SysObjects.[Name]
                From SysObjects Inner Join (Select [Name],[ID] From SysObjects Where XType = &apos;U&apos;) As Tab
                On Tab.[ID] = Sysobjects.[Parent_Obj] 
                Inner Join sysconstraints On sysconstraints.Constid = Sysobjects.[ID] 
                Inner Join SysColumns Col On Col.[ColID] = sysconstraints.[ColID] And Col.[ID] = Tab.[ID]
                Where Col.[Name] = &apos;$column&apos; and Tab.[Name] = &apos;$table&apos;
                order by Col.[Name]&quot;;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Changes on SqlServerChemaManager.php&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;       /**
	* Override
	*/
	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function alterTable(TableDiff $tableDiff)
	{
		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(count($tableDiff-&amp;gt;removedColumns) &amp;gt; 0){
			$constraintsSql = array();
			foreach($tableDiff-&amp;gt;removedColumns as $col){
				$constraintsSql[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform-&amp;gt;getColumnConstraintSQL($tableDiff-&amp;gt;name, $col-&amp;gt;oldColumnName);
			}
			$constraintsToDrop = array();
			foreach($constraintsSql as $sql){
				 $constraintsToDrop[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;execute($sql);
			}
			foreach($constraintsToDrop as $constraint){
				$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;execute(&lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE $tableDiff-&amp;gt;name DROP CONSTRAINT $constraint&quot;&lt;/span&gt;);
			}
		}
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::alterTable($tableDiff);
	}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;

&lt;p&gt;Thx&lt;/p&gt;</description>
                <environment>MS SQL Server + Windows Server 2008</environment>
            <key id="13628">DBAL-255</key>
            <summary>On SQL SERVER Trying to drop a column throws error because of auto generated Constraints</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="fredcallagan">Fryderyk Benigni</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Apr 2012 13:14:08 +0000</created>
                <updated>Sat, 5 May 2012 11:08:06 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:08:06 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17844" author="fredcallagan" created="Fri, 13 Apr 2012 13:36:23 +0000"  >&lt;p&gt;This version of the getColumnConstraintSQL seems better:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;       /**
	* Override
	*/
	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function alterTable(TableDiff $tableDiff)
	{
		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(isset($tableDiff-&amp;gt;removedColumns) &amp;amp;&amp;amp; count($tableDiff-&amp;gt;removedColumns) &amp;gt; 0){
			$constraintsSql = array();
			foreach($tableDiff-&amp;gt;removedColumns as $col){
				$constraintsSql[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform-&amp;gt;getColumnConstraintSQL($tableDiff-&amp;gt;name, $col-&amp;gt;getName());
			}
			$constraintsToDrop = array();
			foreach($constraintsSql as $sql){
				 $constraintData = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;fetchAll($sql);
				 foreach($constraintData as $keyCostr =&amp;gt; $costraint){
					$constraintsToDrop[] = $costraint[&apos;Name&apos;];
				 }
			}
			
			foreach($constraintsToDrop as $key =&amp;gt; $constraint){
				$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;exec(&lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE $tableDiff-&amp;gt;name DROP CONSTRAINT &quot;&lt;/span&gt;.$constraint);
			}
		}
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::alterTable($tableDiff);
	}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="17925" author="beberlei" created="Sat, 5 May 2012 09:44:50 +0000"  >&lt;p&gt;Fixed formatting&lt;/p&gt;</comment>
                    <comment id="17926" author="beberlei" created="Sat, 5 May 2012 11:08:06 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;

&lt;p&gt;I had to adjust your SQL a little since &quot;sysconstraints&quot; is deprecated and not exists anymore on SQL Azure for example.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-254] SQL Server rename table should use sp_RENAME</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-254</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Whenever DBAL Schema Manager tries to rename a table in sql server 2008 it should use also the sp_RENAME procedure. Otherwise error is thrown.&lt;/p&gt;

&lt;p&gt;Apparently a similar issue was fixed for column ALTER Commands as described in the link below, but also the ALTER TABLE command should use sp_RENAME to avoid crash.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-199?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-199?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Suggested fix for Latest DBAL 2.2&lt;/p&gt;

&lt;p&gt;From Line 283: &lt;/p&gt;

&lt;p&gt;$queryParts[] = &apos;RENAME TO &apos; . $diff-&amp;gt;newName;&lt;/p&gt;

&lt;p&gt;To Line 283:&lt;/p&gt;

&lt;p&gt;$sql[] = &apos;sp_RENAME \&apos;&apos; . $diff-&amp;gt;name . &apos;\&apos;,\&apos;&apos; . $diff-&amp;gt;newName.&apos;\&apos;&apos;;&lt;/p&gt;

&lt;p&gt;This seems to fix the problem.&lt;/p&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;

&lt;p&gt;Sorry for my bad english.&lt;/p&gt;

&lt;p&gt;Fredcallagan&lt;/p&gt;</description>
                <environment>SQL Server 2008 R2 on windows Server</environment>
            <key id="13627">DBAL-254</key>
            <summary>SQL Server rename table should use sp_RENAME</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="fredcallagan">Fryderyk Benigni</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Apr 2012 17:11:55 +0000</created>
                <updated>Sun, 8 Jul 2012 20:31:44 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 20:31:44 +0000</resolved>
                            <version>2.2.1</version>
                                <fixVersion>2.2.3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18252" author="beberlei" created="Sun, 8 Jul 2012 20:31:44 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-253] [GH-132] Added Support for excluding Tables</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-253</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of doyousoft:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/132&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/132&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13623">DBAL-253</key>
            <summary>[GH-132] Added Support for excluding Tables</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 10 Apr 2012 10:52:23 +0000</created>
                <updated>Fri, 4 May 2012 18:01:06 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:01:06 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17863" author="beberlei" created="Wed, 18 Apr 2012 13:37:12 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-132&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/132&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/132&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-252] [GH-131] [mysqli] Added mysqli driver to travis tests.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-252</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/131&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/131&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13620">DBAL-252</key>
            <summary>[GH-131] [mysqli] Added mysqli driver to travis tests.</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 Apr 2012 22:13:46 +0000</created>
                <updated>Mon, 16 Apr 2012 17:02:02 +0000</updated>
                    <resolved>Mon, 16 Apr 2012 17:02:02 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17834" author="beberlei" created="Mon, 9 Apr 2012 21:34:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-131&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/131&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/131&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-251] [GH-130] [mysqli] Added support for fetchAll(PDO::fetch_column)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-251</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/130&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/130&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13619">DBAL-251</key>
            <summary>[GH-130] [mysqli] Added support for fetchAll(PDO::fetch_column)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 Apr 2012 21:17:04 +0000</created>
                <updated>Mon, 16 Apr 2012 17:01:56 +0000</updated>
                    <resolved>Mon, 16 Apr 2012 17:01:56 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17835" author="beberlei" created="Mon, 9 Apr 2012 21:42:23 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-130&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/130&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/130&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-250] [GH-128] [DBAL-249] result cache with fetch type PDO::FETCH_COLUMN</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-250</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of gedrox:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/128&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/128&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This should enable caching of results retrieved by PDO::FETCH_COLUMN fetch type.&lt;br/&gt;
Before this exception &quot;Invalid fetch-style given for caching result&quot; was raised.&lt;/p&gt;

&lt;p&gt;Should work now.&lt;/p&gt;

&lt;p&gt;(This replaces a previous pull request #126 I failed to make right... sorry)&lt;/p&gt;</description>
                <environment></environment>
            <key id="13614">DBAL-250</key>
            <summary>[GH-128] [DBAL-249] result cache with fetch type PDO::FETCH_COLUMN</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Apr 2012 09:09:13 +0000</created>
                <updated>Fri, 4 May 2012 18:04:13 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:04:13 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17774" author="beberlei" created="Thu, 5 Apr 2012 11:50:00 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-128&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/128&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/128&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-249] Enable caching for fetch type FETCH_COLUMN</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-249</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If results are requested using fetch method FETCH_COLUMN, and the cache is used, the exception is raised:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Invalid fetch-style given &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; caching result&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13613">DBAL-249</key>
            <summary>Enable caching for fetch type FETCH_COLUMN</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Apr 2012 08:45:51 +0000</created>
                <updated>Thu, 5 Apr 2012 08:45:51 +0000</updated>
                                    <version>2.2.1</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-248] [GH-127] Fix Statement class passing bound objects to SQL logger</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-248</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jimcottrell:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/127&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This commit saves converted parameter values in bindValue() so the later call to the SQL logger in execute() will not pass bound objects without type information.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13607">DBAL-248</key>
            <summary>[GH-127] Fix Statement class passing bound objects to SQL logger</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Apr 2012 18:31:38 +0000</created>
                <updated>Fri, 4 May 2012 18:04:31 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:04:31 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17757" author="beberlei" created="Wed, 4 Apr 2012 20:19:33 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-127&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/127&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17758" author="beberlei" created="Wed, 4 Apr 2012 20:28:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-127&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/127&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17759" author="beberlei" created="Wed, 4 Apr 2012 20:30:27 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-127&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/127&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/127&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-247] [GH-126] Enable caching of results with fetch type PDO::FETCH_COLUMN</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-247</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of gedrox:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/126&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/126&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;This should enable caching of results retrieved by PDO::FETCH_COLUMN fetch type.&lt;br/&gt;
Before this exception &quot;Invalid fetch-style given for caching result&quot; was raised.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13603">DBAL-247</key>
            <summary>[GH-126] Enable caching of results with fetch type PDO::FETCH_COLUMN</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="4">Incomplete</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Apr 2012 09:23:41 +0000</created>
                <updated>Sat, 7 Apr 2012 08:15:30 +0000</updated>
                    <resolved>Sat, 7 Apr 2012 08:15:30 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17769" author="beberlei" created="Thu, 5 Apr 2012 09:09:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-126&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/126&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/126&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-246] [GH-125] PHPDoc blocks improvments + 1 CS Fix</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-246</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of adrienbrault:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/125&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Hey guys,&lt;/p&gt;

&lt;p&gt;I started to fix a class type inside Connection and then i went ahead to see what i could also improve!&lt;/p&gt;

&lt;p&gt;Adrien&lt;/p&gt;</description>
                <environment></environment>
            <key id="13592">DBAL-246</key>
            <summary>[GH-125] PHPDoc blocks improvments + 1 CS Fix</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/closed.png">Closed</status>
                    <resolution id="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 2 Apr 2012 17:15:30 +0000</created>
                <updated>Fri, 4 May 2012 18:05:02 +0000</updated>
                    <resolved>Fri, 4 May 2012 18:05:02 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17728" author="beberlei" created="Mon, 2 Apr 2012 17:39:13 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-125&amp;#93;&lt;/span&gt; was synchronize&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/125&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17738" author="beberlei" created="Tue, 3 Apr 2012 13:13:05 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-125&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/125&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-245] [GH-124] Connection quote() ignores returned value from getBindingInfo()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-245</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of jimcottrell:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/124&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/124&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Maybe I&apos;m missing something here, but this simple change seems to be necessary to allow for proper type management in quote().  For example, without this change passing a DateTime object as $input with $type = &apos;date&apos; will resolve the proper string value in getBindingInfo, but then still attempt to pass the DateTime to PDO, which of course doesn&apos;t work.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13566">DBAL-245</key>
            <summary>[GH-124] Connection quote() ignores returned value from getBindingInfo()</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Mar 2012 18:36:57 +0000</created>
                <updated>Fri, 30 Mar 2012 19:48:00 +0000</updated>
                    <resolved>Fri, 30 Mar 2012 19:48:00 +0000</resolved>
                                            <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17667" author="beberlei" created="Thu, 29 Mar 2012 01:07:38 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-124&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/124&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/124&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17681" author="beberlei" created="Fri, 30 Mar 2012 19:48:00 +0000"  >&lt;p&gt;Fixed and merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-244] Shema Tool is not working after DBAL-177 for postgresql (mysql working like before)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-244</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;After trying to upgrade 2.2.0 i found that schema tool wasn&apos;t working, so I switched back to 2.1.6, same thing with 2.2.1 and no bug report, so this is wats going on.&lt;/p&gt;

&lt;p&gt;./doctrine orm:schema-tool:update --dump-sql # this will show full create table for schema even if tables are all ready there.&lt;/p&gt;

&lt;p&gt;After git bisectin Doctrine ORM project i found that commit ea5108ea0f35fc0f7ed3a740995a590926045c6e wast to blame, but that was only submodule update so made bisect for Doctrine DBAL:&lt;/p&gt;

&lt;p&gt;537de7ea6a34edbcc40bc6ca92e0a3f816b59330 .. 4410e4cec20b0f1f209578320e5b7d111e90c2a0 founding that 1ae87bf3e3ba93cb579a2a092b06b5a09b316542 was the problem.&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((4410e4c...))&amp;#93;&lt;/span&gt;$ git reset --hard 1ae87bf3e3ba93cb579a2a092b06b5a09b316542&lt;br/&gt;
HEAD is now at 1ae87bf &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-177&quot; title=&quot;Have Schema Assets handle &amp;quot;foo.bar&amp;quot; syntax correctly.&quot;&gt;&lt;del&gt;DBAL-177&lt;/del&gt;&lt;/a&gt; - Make sure schema.table syntax is supported in Assets for quoted assets&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((1ae87bf...))&amp;#93;&lt;/span&gt;$ git submodule update --recursive&lt;br/&gt;
Submodule path &apos;lib/vendor/doctrine-common&apos;: checked out &apos;d6e4c8b22af9800db4fd9d679ce98538da028168&apos;&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;shema tool printing full schema&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((1ae87bf...))&amp;#93;&lt;/span&gt;$ git reset --hard HEAD^1&lt;br/&gt;
HEAD is now at bb84496 &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-144&quot; title=&quot;Oracle tables without indices are not handled during convert - this behavior should be tolerant since Oracle does not require indicies.&quot;&gt;&lt;del&gt;DBAL-144&lt;/del&gt;&lt;/a&gt; - Dont throw exception when no primary key exists&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((bb84496...))&amp;#93;&lt;/span&gt;$ git submodule update --recursive&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;works fine&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop build (master)&amp;#93;&lt;/span&gt;$ ./doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
Nothing to update - your database is already in sync with the current entity metadata.&lt;/p&gt;


&lt;p&gt;with commit 1ae87bf3e3ba93cb579a2a092b06b5a09b316542 schema starts with 3 NULL lines, and then schema, with 2.2.0, extra &quot;NULL&quot; lines aren&apos;t there anymore.&lt;/p&gt;

&lt;p&gt;Using MySQL there isn&apos;t any problem, but with PostgreSQL (i have 8.4.11) this issue appears. &lt;/p&gt;</description>
                <environment>Ubuntu 10.10, Zend Server 5.5.0 with PHP 5.3.8</environment>
            <key id="13560">DBAL-244</key>
            <summary>Shema Tool is not working after DBAL-177 for postgresql (mysql working like before)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="margus">Margus Sipria</reporter>
                        <labels>
                    </labels>
                <created>Sun, 25 Mar 2012 22:19:29 +0000</created>
                <updated>Sat, 5 May 2012 08:01:06 +0000</updated>
                    <resolved>Sat, 5 May 2012 08:01:06 +0000</resolved>
                            <version>2.2</version>
                <version>2.2.1</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17688" author="beberlei" created="Fri, 30 Mar 2012 20:13:39 +0000"  >&lt;p&gt;Increase priority, will be fixed this weekend and in the next bugifx release&lt;/p&gt;</comment>
                    <comment id="17692" author="beberlei" created="Fri, 30 Mar 2012 21:32:26 +0000"  >&lt;p&gt;Are you using Postgresql Schema? Can you provide some information about your database tables? I need some more information to try reproducing this.&lt;/p&gt;</comment>
                    <comment id="17904" author="codingrobot" created="Thu, 3 May 2012 17:57:26 +0000"  >&lt;p&gt;I&apos;m experiencing the same issue.&lt;br/&gt;
I looked at the mentioned commit and found out that the SQL query in getSchemaNames() does not return any namespaces.&lt;br/&gt;
After some research I came with the following query to list all non-system namespaces in Postgres:&lt;/p&gt;

&lt;p&gt;SELECT nspname as schema_name FROM pg_namespace WHERE nspname !~ &apos;^pg_.*&apos; and nspname != &apos;information_schema&apos;&lt;/p&gt;

&lt;p&gt;This fixed the issue for me and the schema-tool works again.&lt;/p&gt;</comment>
                    <comment id="17920" author="beberlei" created="Sat, 5 May 2012 08:01:06 +0000"  >&lt;p&gt;Fixed, but couldn&apos;t verify as the previous statement worked for me.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-243] setCharset raises an error when using pdo_sqlite</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-243</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When I attempt to use setCharset(&quot;utf8&quot;) with pdo_sqlite, this fails.&lt;/p&gt;

&lt;p&gt;I know that pdo_sqlite doesn&apos;t support SET NAMES utf8, however, this should be caught by the driver (like: throwing a NotSupportedException) or simply ignore setCharset (mainly because if you allow the user to choose their backend, developers don&apos;t need to introduce special cases for driver handling).&lt;/p&gt;</description>
                <environment></environment>
            <key id="13556">DBAL-243</key>
            <summary>setCharset raises an error when using pdo_sqlite</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="felicitus">Timo A. Hummel</reporter>
                        <labels>
                    </labels>
                <created>Sun, 25 Mar 2012 00:57:06 +0000</created>
                <updated>Thu, 5 Jul 2012 21:02:37 +0000</updated>
                    <resolved>Thu, 5 Jul 2012 21:02:37 +0000</resolved>
                            <version>2.2.1</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18209" author="beberlei" created="Thu, 5 Jul 2012 21:02:37 +0000"  >&lt;p&gt;Removed Connection#setcharsetSQL() - Use DriverManager::getConnection(array(&apos;charset&apos; =&amp;gt; &apos;UTF8&apos;, ...)); instead.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-242] Catch and re-throw exceptions with common messages + codes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-242</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13555">DBAL-242</key>
            <summary>Catch and re-throw exceptions with common messages + codes</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Mar 2012 18:26:36 +0000</created>
                <updated>Thu, 20 Sep 2012 06:19:57 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-241] Add fetchAll(PDO::FETCH_COLUMN) support to OCI8 driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-241</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;See &lt;a href=&quot;https://github.com/doctrine/dbal/pull/52&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/52&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13554">DBAL-241</key>
            <summary>Add fetchAll(PDO::FETCH_COLUMN) support to OCI8 driver</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Mar 2012 08:51:40 +0000</created>
                <updated>Sat, 24 Mar 2012 09:05:21 +0000</updated>
                    <resolved>Sat, 24 Mar 2012 09:05:21 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-240] SQL Parser Utils trigger error when uing with Type instances</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-240</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/pull/120&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/120&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13553">DBAL-240</key>
            <summary>SQL Parser Utils trigger error when uing with Type instances</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Mar 2012 07:53:44 +0000</created>
                <updated>Sat, 24 Mar 2012 07:55:50 +0000</updated>
                    <resolved>Sat, 24 Mar 2012 07:55:50 +0000</resolved>
                            <version>2.1.6</version>
                <version>2.2.1</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17639" author="beberlei" created="Sat, 24 Mar 2012 07:55:50 +0000"  >&lt;p&gt;Fixed and merged into 2.1 and 2.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-239] CI 2 + DOCTRINE 2 + SQLSERVER 2005 PDO_SQLSRV.DLL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-239</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi, master...&lt;/p&gt;

&lt;p&gt;Please help me, &lt;br/&gt;
i was integration : ci2+doctrine2+pdo_mysql status is OK &lt;a href=&quot;http://103.28.148.89/ci2doctrine2&quot; class=&quot;external-link&quot;&gt;http://103.28.148.89/ci2doctrine2&lt;/a&gt;&lt;br/&gt;
php.ini &lt;a href=&quot;http://103.28.148.89&quot; class=&quot;external-link&quot;&gt;http://103.28.148.89&lt;/a&gt;  ===&amp;gt; phpinfo()&lt;/p&gt;

&lt;p&gt;But ci2+doctrine2+pdo_sqlsrv. Show bugs this :&lt;/p&gt;

&lt;p&gt;&quot;Fatal error: Uncaught exception &apos;PDOException&apos; with message &apos;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;IMSSP&amp;#93;&lt;/span&gt;: This extension requires either the Microsoft SQL Server 2008 Native Client (SP1 or later) or the Microsoft SQL Server 2008 R2 Native Client ODBC Driver to communicate with SQL Server. Neither of those ODBC Drivers are currently installed. Access the following URL to download the Microsoft SQL Server 2008 R2 Native Client ODBC driver for x86: &lt;a href=&quot;http://go.microsoft.com/fwlink/?LinkId=163712&quot; class=&quot;external-link&quot;&gt;http://go.microsoft.com/fwlink/?LinkId=163712&lt;/a&gt;&apos; in C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Driver\PDOConnection.php:36 Stack trace: #0 C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Driver\PDOConnection.php(36): PDO-&amp;gt;_&lt;em&gt;construct(&apos;sqlsrv:server=B...&apos;, &apos;sa&apos;, &apos;password&apos;, Array) #1 C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Driver\PDOSqlsrv\Driver.php(38): Doctrine\DBAL\Driver\PDOConnection-&amp;gt;&lt;/em&gt;_construct(&apos;sqlsrv:server=B...&apos;, &apos;sa&apos;, &apos;password&apos;, Array) #2 C:\xampp\htdocs\sqlserver\application\third_party\doct in C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Driver\PDOConnection.php on line 36&quot;&lt;/p&gt;

&lt;p&gt;Thanks&lt;br/&gt;
GBU&lt;/p&gt;</description>
                <environment>os:windows xp&lt;br/&gt;
sqlserver2005</environment>
            <key id="13552">DBAL-239</key>
            <summary>CI 2 + DOCTRINE 2 + SQLSERVER 2005 PDO_SQLSRV.DLL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="stcoid1">M. David Zainuri</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Mar 2012 18:43:00 +0000</created>
                <updated>Wed, 1 May 2013 17:27:54 +0000</updated>
                    <resolved>Wed, 1 May 2013 17:27:54 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17649" author="stcoid1" created="Sun, 25 Mar 2012 07:04:21 +0000"  >&lt;p&gt;This Problem is resolve with SQL Server 2008.&lt;/p&gt;

&lt;p&gt;But i have new problem, paging is Error&lt;/p&gt;

&lt;p&gt;&quot;Fatal error: Uncaught exception &apos;PDOException&apos; with message &apos;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 10.0&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server&amp;#93;&lt;/span&gt;The multi-part identifier &quot;c0_.group_company_code&quot; could not be bound.&apos; in C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Connection.php:577 Stack trace: #0 C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Connection.php(577): PDO-&amp;gt;query(&apos;WITH outer_tbl ...&apos;) #1 C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\ORM\Query\Exec\SingleSelectExecutor.php(46): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;WITH outer_tbl ...&apos;, Array, Array) #2 C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\ORM\Query.php(274): Doctrine\ORM\Query\Exec\SingleSelectExecutor-&amp;gt;execute(Object(Doctrine\DBAL\Connection), Array, Array) #3 C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\ORM\AbstractQuery.php(539): Doctrine\ORM\Query-&amp;gt;_doExecute() #4 C:\xampp\htdocs\sqlserver\application\third_party\doctri in C:\xampp\htdocs\sqlserver\application\third_party\doctrine-orm\Doctrine\DBAL\Connection.php on line 577&quot;&lt;/p&gt;

&lt;p&gt;This link &lt;a href=&quot;http://103.28.148.89/sqlserver/index.php/company_group/posts/list_company_group&quot; class=&quot;external-link&quot;&gt;http://103.28.148.89/sqlserver/index.php/company_group/posts/list_company_group&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Any body  help...&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</comment>
                    <comment id="17652" author="stcoid1" created="Sun, 25 Mar 2012 14:03:53 +0000"  >&lt;p&gt;Problem  Resolve&lt;/p&gt;

&lt;p&gt;go into:&lt;br/&gt;
Doctrine\DBAL\Platforms\MsSqlPlatform&lt;/p&gt;

&lt;p&gt;Find:&lt;/p&gt;
 &lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$over = preg_replace(&apos;/\&lt;span class=&quot;code-quote&quot;&gt;&quot;[^,]*\&quot;&lt;/span&gt;.\&lt;span class=&quot;code-quote&quot;&gt;&quot;([^,]*)\&quot;&lt;/span&gt;/i&apos;, &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;inner_tbl&quot;&lt;/span&gt;.&lt;span class=&quot;code-quote&quot;&gt;&quot;$1&quot;&lt;/span&gt;&apos;, $orderby);&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Add before:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;                    # Get Columns
                    $columns = array();
                    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(preg_match_all(&apos;/([a-zA-Z][0-9]+_\.[a-zA-Z0-9\-_]+)\sAS\s([a-zA-Z0-9\-\_]+)/&apos;, $query, $matched)) {
                        &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;($i=0; $i&amp;lt;count($matched[1]); ++$i)
                        {
                            $columns[$matched[1][$i]] = $matched[2][$i];
                        }
                    }
                    
                    # Replace columns with their alias in the &lt;span class=&quot;code-quote&quot;&gt;&quot;orderby&quot;&lt;/span&gt; statement
                    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(preg_match_all(&apos;/([a-zA-Z][0-9]+_\.[a-zA-Z0-9\-_]+)\s/i&apos;, $orderby, $matches)) {
                        foreach($matches[1] as $column)
                        {
                            $orderby = preg_replace(&apos;/&apos;.$column.&apos;/&apos;, $columns[$column], $orderby);
                        }
                    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Thanks on issue this link &quot;http://www.doctrine-project.org/jira/browse/DBAL-82?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel&quot;&lt;/p&gt;</comment>
                    <comment id="17927" author="beberlei" created="Sat, 5 May 2012 11:26:20 +0000"  >&lt;p&gt;CAn you post the query that leads to this error? I cant reproduce it with SQL Server 2008&lt;/p&gt;</comment>
                    <comment id="20167" author="beberlei" created="Wed, 1 May 2013 17:27:54 +0000"  >&lt;p&gt;This was fixed in other issues already&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-238] Disable MultipleActiveResultSets in SQL Server (pdo_sqlsrv) not possible</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-238</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ee376925%28v=sql.90%29.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ee376925%28v=sql.90%29.aspx&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13541">DBAL-238</key>
            <summary>Disable MultipleActiveResultSets in SQL Server (pdo_sqlsrv) not possible</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Mar 2012 13:01:54 +0000</created>
                <updated>Sat, 5 May 2012 11:46:40 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:46:40 +0000</resolved>
                                            <fixVersion>2.2.2</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-237] schema:update fails when changing from ManyToOne to OneToOne</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-237</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If a relation is changed from ManyToOne to OneToOne a Mysql exception 1025 is thrown because schema:update attempts to drop the indexes without first dropping the foreign keys. This seems to happen since the foreign keys are not deleted from the entity.. but the indexes change type (from index to unique).&lt;/p&gt;

&lt;p&gt;Incorrect output from --dump-sql&lt;/p&gt;

&lt;p&gt;DROP INDEX IDX_9AFB9A3755EB82D0 ON tapi_phone;&lt;br/&gt;
DROP INDEX IDX_9AFB9A37A6A12EC1 ON tapi_phone;&lt;br/&gt;
ALTER TABLE tapi_phone ADD location_id INT DEFAULT NULL, CHANGE extension extension VARCHAR(255) DEFAULT NULL, CHANGE protocol protocol VARCHAR(255) DEFAULT NULL;&lt;br/&gt;
ALTER TABLE tapi_phone ADD CONSTRAINT FK_9AFB9A3764D218E FOREIGN KEY (location_id) REFERENCES tapi_location(id);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A37F85E0677 ON tapi_phone (username);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A37B728E969 ON tapi_phone (mac_address);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A3755EB82D0 ON tapi_phone (default_user_id);&lt;br/&gt;
CREATE INDEX IDX_9AFB9A3764D218E ON tapi_phone (location_id);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A37A6A12EC1 ON tapi_phone (registered_user_id)&lt;/p&gt;


&lt;p&gt;Expected output from --dump-sql&lt;/p&gt;

&lt;p&gt;ALTER TABLE tapi_phone DROP FOREIGN KEY FK_9AFB9A3755EB82D0;&lt;br/&gt;
DROP INDEX IDX_9AFB9A3755EB82D0 ON tapi_phone;&lt;br/&gt;
ALTER TABLE tapi_phone DROP FOREIGN KEY FK_9AFB9A37A6A12EC1;&lt;br/&gt;
DROP INDEX IDX_9AFB9A37A6A12EC1 ON tapi_phone;&lt;br/&gt;
ALTER TABLE tapi_phone ADD location_id INT DEFAULT NULL, CHANGE extension extension VARCHAR(255) DEFAULT NULL, CHANGE protocol protocol VARCHAR(255) DEFAULT NULL;&lt;br/&gt;
ALTER TABLE tapi_phone ADD CONSTRAINT FK_9AFB9A3764D218E FOREIGN KEY (location_id) REFERENCES tapi_location(id);&lt;br/&gt;
ALTER TABLE tapi_phone ADD CONSTRAINT FK_9AFB9A3755EB82D0 FOREIGN KEY (default_user_id) REFERENCES tapi_user (id);&lt;br/&gt;
ALTER TABLE tapi_phone ADD CONSTRAINT FK_9AFB9A37A6A12EC1 FOREIGN KEY (registered_user_id) REFERENCES tapi_user (id);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A37F85E0677 ON tapi_phone (username);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A37B728E969 ON tapi_phone (mac_address);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A3755EB82D0 ON tapi_phone (default_user_id);&lt;br/&gt;
CREATE INDEX IDX_9AFB9A3764D218E ON tapi_phone (location_id);&lt;br/&gt;
CREATE UNIQUE INDEX UNIQ_9AFB9A37A6A12EC1 ON tapi_phone (registered_user_id);&lt;/p&gt;</description>
                <environment>Symfony 2.0.9</environment>
            <key id="13406">DBAL-237</key>
            <summary>schema:update fails when changing from ManyToOne to OneToOne</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="mlehner">Matt Lehner</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Feb 2012 01:44:50 +0000</created>
                <updated>Wed, 14 Mar 2012 20:28:34 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 20:28:34 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17431" author="gedrox" created="Fri, 17 Feb 2012 14:21:52 +0000"  >&lt;p&gt;I have solved it by extending the method inside MySqlPlatform class (based in DBAL 2.1.5-DEV):&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * Fix &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; DROP/CREATE index after foreign key change from OneToOne to ManyToOne
 * @author Aigars Gedroics
 * @param TableDiff $diff
 * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; array
 */
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; function getPreAlterTableIndexForeignKeySQL(TableDiff $diff)
{
	$sql = array();
	$table = $diff-&amp;gt;name;

	foreach ($diff-&amp;gt;removedIndexes AS $remKey =&amp;gt; $remIndex) {

		foreach ($diff-&amp;gt;addedIndexes as $addKey =&amp;gt; $addIndex) {
			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($remIndex-&amp;gt;getColumns() == $addIndex-&amp;gt;getColumns()) {

				$columns = $addIndex-&amp;gt;getColumns();
				$type = &apos;&apos;;
				&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($addIndex-&amp;gt;isUnique()) {
					$type = &apos;UNIQUE &apos;;
				}

				$query = &apos;ALTER TABLE &apos; . $table . &apos; DROP INDEX &apos; . $remIndex-&amp;gt;getName() . &apos;, &apos;;
				$query .= &apos;ADD &apos; . $type . &apos;INDEX &apos; . $addIndex-&amp;gt;getName();
				$query .= &apos; (&apos; . $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getIndexFieldDeclarationListSQL($columns) . &apos;)&apos;;

				$sql[] = $query;

				unset($diff-&amp;gt;removedIndexes[$remKey]);
				unset($diff-&amp;gt;addedIndexes[$addKey]);

				&lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
			}
		}
	}

	$sql = array_merge($sql, parent::getPreAlterTableIndexForeignKeySQL($diff));

	&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $sql;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="17576" author="beberlei" created="Wed, 14 Mar 2012 20:24:37 +0000"  >&lt;p&gt;Moved to dBAL&lt;/p&gt;</comment>
                    <comment id="17577" author="beberlei" created="Wed, 14 Mar 2012 20:28:34 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-235] Column order is not synchronized by Comparator</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-235</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Comparator does not synchronize column order. It would be great if it did.&lt;/p&gt;</description>
                <environment>MySQL</environment>
            <key id="13512">DBAL-235</key>
            <summary>Column order is not synchronized by Comparator</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="artem">Artem Goutsoul</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Mar 2012 15:39:24 +0000</created>
                <updated>Tue, 3 Apr 2012 06:22:35 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17729" author="chriswoodford" created="Mon, 2 Apr 2012 18:29:03 +0000"  >&lt;p&gt;I assume that this means adding AFTER to any ALTER ADD statements? if so, this is something that i would really appreciate as well&lt;/p&gt;</comment>
                    <comment id="17736" author="artem" created="Tue, 3 Apr 2012 06:22:35 +0000"  >&lt;p&gt;Yup, that&apos;s exactly what I meant!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-234] Index names are not synchronized by Comparator</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-234</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Index and foreign key name change is not synced by Comparator.&lt;/p&gt;

&lt;p&gt;This is important since in some complex queries one might use FORCE INDEX (some_index_name), and they will fail if an index name is incorrect.&lt;/p&gt;</description>
                <environment>MySQL</environment>
            <key id="13511">DBAL-234</key>
            <summary>Index names are not synchronized by Comparator</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="artem">Artem Goutsoul</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Mar 2012 15:33:25 +0000</created>
                <updated>Thu, 8 Mar 2012 15:33:25 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-233] Signed / unsigned types are ignored by Comparator for MySQL schemas</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-233</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;E.g. one schema has an column1 which is unsigned tinyint, another schema doesn&apos;t.&lt;br/&gt;
The sql that is generated is the following:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE table1 ADD column1 TINYINT(1) NOT NULL DEFAULT &apos;1&apos;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;And it should be:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE table1 ADD column1 TINYINT(1) UNSIGNED NOT NULL DEFAULT &apos;1&apos;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;If in one schema there is an unsigned column and in the other it is signed (that being the only difference), the difference is not noticed at all.&lt;/p&gt;</description>
                <environment>MySQL 5.5</environment>
            <key id="13510">DBAL-233</key>
            <summary>Signed / unsigned types are ignored by Comparator for MySQL schemas</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="artem">Artem Goutsoul</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Mar 2012 14:22:34 +0000</created>
                <updated>Thu, 15 Mar 2012 11:25:51 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 19:18:02 +0000</resolved>
                            <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17537" author="artem" created="Thu, 8 Mar 2012 15:01:46 +0000"  >&lt;p&gt;Fixed typo in the issue name&lt;/p&gt;</comment>
                    <comment id="17568" author="beberlei" created="Wed, 14 Mar 2012 19:18:02 +0000"  >&lt;p&gt;Due to the infinite amount of datatypes and their special options we cannot support everything in Doctrine DBAL Schema. Since signed/unsigned is not a part of the Doctrine ORM API we also do not support it in the DBAL. There are extension hooks which make this available to you, if you want to extend Doctrine in that regard.&lt;/p&gt;

&lt;p&gt;See \Doctrine\DBAL\Schema\Column#getCustomSchemaOptions() and how Doctrine\DBAL\Schema\Comparator::diffColumn() uses them. You can fill these fields from events that are fired inside \Doctrine\DBAL\Schema\MySQLSchemaManager.&lt;/p&gt;</comment>
                    <comment id="17591" author="artem" created="Thu, 15 Mar 2012 07:40:57 +0000"  >&lt;p&gt;Thank you for your answer! and for the info of where to look, I&apos;ll try to extend the DBAL myself.&lt;br/&gt;
It just seemed based on the site and the docs that DBAL could be used as a more general purpose DBAL without the Doctrine ORM. Seems like a robust PHP based schema sync is an unattainable holy grail &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</comment>
                    <comment id="17595" author="artem" created="Thu, 15 Mar 2012 11:25:51 +0000"  >&lt;p&gt;I studied the code, and it seems that there is already support for UNSIGNED in the data structures and comparison logic, however, it is simply not picked up from the column type and not saved.&lt;/p&gt;

&lt;p&gt;I added the following code to MySqlSchemaManager::_getPortableTableColumnDefinition($tableColumn):&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;if (strpos(strtolower($tableColumn&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;type&amp;#39;&amp;#93;&lt;/span&gt;), &apos;unsigned&apos;) !== false) $unsigned = &apos;unsigned&apos;;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;and the replacing the following code to AbstractPlatfrom::getColumnDeclarationSQL($name, array $field)&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;$columnDef = $typeDecl . $charset . $default . $notnull . $unique . $check . $collation;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;with:&lt;br/&gt;
&lt;tt&gt;$unsigned = (isset($field&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;unsigned&amp;#39;&amp;#93;&lt;/span&gt;) &amp;amp;&amp;amp; $field&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;unsigned&amp;#39;&amp;#93;&lt;/span&gt;) ?  &apos; &apos; . $this-&amp;gt;getUnsignedFieldDeclarationSQL() : &apos;&apos;;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;$columnDef = $typeDecl . $unsigned . $charset . $default . $notnull . $unique . $check . $collation;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;And implemented getUnsignedFieldDeclarationSQL to return &apos;UNSIGNED&apos;&lt;/p&gt;

&lt;p&gt;After this UNSIGNED field types were generating correct ALTER TABLE statements.&lt;/p&gt;

&lt;p&gt;It seems like this kind of approach could safely be integrated into Doctrine DBAL without breaking existing functionality, and making it more usable outside of ORM.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-232] Custom commented column type removal causes unknown column type exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-232</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Problem happens when initially, as example, there was commented type &quot;foo&quot; registered and used:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Doctrine\DBAL\Types\Type::addType(&apos;foo&apos;, &apos;FooType&apos;);
$em-&amp;gt;getConnection()
    -&amp;gt;getDatabasePlatform()
    -&amp;gt;markDoctrineTypeCommented(Doctrine\DBAL\Types\Type::getType(&apos;foo&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When the type usage and declaration is removed, the database schema upgrade fails.&lt;br/&gt;
This is because DBAL reads the comment from the database and tries to find the type &apos;foo&apos;.&lt;/p&gt;

&lt;p&gt;I suggest ignoring the database column comment and stick to the standard type recognition in case the type is not declared.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13499">DBAL-232</key>
            <summary>Custom commented column type removal causes unknown column type exception</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Mar 2012 11:16:21 +0000</created>
                <updated>Fri, 9 Mar 2012 10:22:09 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17541" author="gedrox" created="Fri, 9 Mar 2012 10:22:09 +0000"  >&lt;p&gt;Trivial solution would be:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;--- a/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+++ b/Doctrine/DBAL/Schema/AbstractSchemaManager.php
@@ -878,7 +878,9 @@ &lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class AbstractSchemaManager
     &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function extractDoctrineTypeFromComment($comment, $currentType)
     {
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (preg_match(&lt;span class=&quot;code-quote&quot;&gt;&quot;(\(DC2Type:([a-zA-Z0-9]+)\))&quot;&lt;/span&gt;, $comment, $match)) {
-            $currentType = $match[1];
+                       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (Types\Type::hasType($match[1])) {
+                               $currentType = $match[1];
+                       }
         }
         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $currentType;
     }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-231] Doctrine\DBAL\SQLParserUtils::getPlaceholderPositions() - regex</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-231</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Running the following SQL (note the named parameter &quot;:account_id&quot;):&lt;br/&gt;
===================&lt;br/&gt;
SELECT count(&apos;*&apos;) as cnt FROM feed f INNER JOIN orders_accounts oa ON oa.order_id = f.feed_id INNER JOIN users u ON u.id = f.user_id WHERE oa.account_id = :account_id AND f.feed_type=&apos;order&apos; ORDER BY f.create_date DESC &lt;br/&gt;
===================&lt;/p&gt;

&lt;p&gt;ends up in a thrown exception.&lt;br/&gt;
This SQL was generated by using the Query Builder&lt;/p&gt;

&lt;p&gt;        $qb = $this-&amp;gt;_em-&amp;gt;getConnection()-&amp;gt;createQueryBuilder();&lt;br/&gt;
        $qb-&amp;gt;select(&apos;count(\&apos;*\&apos;) as cnt&apos;);//I know this is bad&lt;br/&gt;
        $qb-&amp;gt;from(&apos;feed&apos;, &apos;f&apos;);&lt;br/&gt;
        $qb-&amp;gt;innerJoin(&apos;f&apos;, &apos;orders_accounts&apos;, &apos;oa&apos;, &apos;oa.order_id = f.feed_id&apos;);&lt;br/&gt;
        $qb-&amp;gt;innerJoin(&apos;f&apos;, &apos;users&apos;, &apos;u&apos;, &apos;u.id = f.user_id&apos;);&lt;br/&gt;
        $qb-&amp;gt;where(&apos;oa.account_id = :account_id AND f.feed_type=\&apos;order\&apos;&apos;);&lt;br/&gt;
        $qb-&amp;gt;setParameter(&apos;account_id&apos;, $accountId, \PDO::PARAM_INT);&lt;/p&gt;

&lt;p&gt;        $stmt = $qb-&amp;gt;execute();&lt;br/&gt;
        $res = $stmt-&amp;gt;fetchAll(\PDO::FETCH_COLUMN);&lt;/p&gt;



&lt;p&gt;===================&lt;br/&gt;
string(82) &quot;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S22&amp;#93;&lt;/span&gt;: Column not found: 1054 Unknown column &apos;NULL_id&apos; in &apos;where clause&apos;&quot;&lt;br/&gt;
string(3168) &quot;#0 /var/www/cake_to_zf/library/Doctrine/DBAL/Connection.php(628): PDOStatement-&amp;gt;execute()&lt;br/&gt;
#1 /var/www/cake_to_zf/library/Doctrine/DBAL/Query/QueryBuilder.php(185): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;SELECT count(&apos;*...&apos;, Array, Array)&lt;br/&gt;
#2 /var/www/cake_to_zf/library/of/doctrine/SqlQueryBuilderPaginatorAdapter.php(69): Doctrine\DBAL\Query\QueryBuilder-&amp;gt;execute()&lt;br/&gt;
#3 /var/www/cake_to_zf/library/Zend/Paginator.php(1060): of\doctrine\SqlQueryBuilderPaginatorAdapter-&amp;gt;count()&lt;br/&gt;
.......&lt;/p&gt;


&lt;p&gt;Suggested Fix:&lt;/p&gt;

&lt;p&gt;Regex on line 64 in preg_match becomes &apos;#(&lt;span class=&quot;error&quot;&gt;&amp;#91;:a-zA-Z0-9_&amp;#93;&lt;/span&gt;&lt;/p&gt;
{1}
&lt;p&gt;)#&apos; &lt;br/&gt;
Added was an &quot;_&quot; ...&lt;/p&gt;

&lt;p&gt;===================&lt;/p&gt;</description>
                <environment>Fedora-16, Zend Serve CE, PHP 5.3.5</environment>
            <key id="13494">DBAL-231</key>
            <summary>Doctrine\DBAL\SQLParserUtils::getPlaceholderPositions() - regex</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</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="ivolator">Ivo Mandalski</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Mar 2012 16:31:56 +0000</created>
                <updated>Sat, 19 Jan 2013 18:27:29 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 19:38:48 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17569" author="beberlei" created="Wed, 14 Mar 2012 19:38:48 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="17570" author="beberlei" created="Wed, 14 Mar 2012 19:39:07 +0000"  >&lt;p&gt;Merged in 2.1.x and 2.2 branches.&lt;/p&gt;</comment>
                    <comment id="17644" author="avit" created="Sat, 24 Mar 2012 20:54:14 +0000"  >&lt;p&gt;I already fixed this in my reworking of the SqlParserUtils last month. See pull request and confirm that this issue was fixed there, together with other parsing problems:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/pull/113&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/113&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="19338" author="beberlei" created="Sat, 19 Jan 2013 18:27:29 +0000"  >&lt;p&gt;Fixed in 2.3.3&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-230] Custom types not taken into account when running $ doctrine orm:validate-schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-230</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;I created a class to handle PostgreSQL &quot;inet&quot; type and setup bootstape in order to register this new type.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;PostgresInetType.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;namespace Doctrine\DBAL\Types;

class PostgresInetType &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Type {

    &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; INET = &apos;inet&apos;; &lt;span class=&quot;code-comment&quot;&gt;// modify to match your type name
&lt;/span&gt;
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform) {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &apos;Inet&apos;;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function convertToPHPValue($value, AbstractPlatform $platform) {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; $value;
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function convertToDatabaseValue($value, AbstractPlatform $platform) {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (&lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt; === $value) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
        } elseif (preg_match(&lt;span class=&quot;code-quote&quot;&gt;&quot;/^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?).(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?))|((([0-9A-Fa-f]{1,4}:){7}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}:[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){5}:([0-9A-Fa-f]{1,4}:)?[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){4}:([0-9A-Fa-f]{1,4}:){0,2}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){3}:([0-9A-Fa-f]{1,4}:){0,3}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){2}:([0-9A-Fa-f]{1,4}:){0,4}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){6}((b((25[0-5])|(1d{2})|(2[0-4]d)|(d{1,2}))b).){3}(b((25[0-5])|(1d{2})|(2[0-4]d)|(d{1,2}))b))|(([0-9A-Fa-f]{1,4}:){0,5}:((b((25[0-5])|(1d{2})|(2[0-4]d)|(d{1,2}))b).){3}(b((25[0-5])|(1d{2})|(2[0-4]d)|(d{1,2}))b))|(::([0-9A-Fa-f]{1,4}:){0,5}((b((25[0-5])|(1d{2})|(2[0-4]d)|(d{1,2}))b).){3}(b((25[0-5])|(1d{2})|(2[0-4]d)|(d{1,2}))b))|([0-9A-Fa-f]{1,4}::([0-9A-Fa-f]{1,4}:){0,5}[0-9A-Fa-f]{1,4})|(::([0-9A-Fa-f]{1,4}:){0,6}[0-9A-Fa-f]{1,4})|(([0-9A-Fa-f]{1,4}:){1,7}:))$/&quot;&lt;/span&gt;, $value)) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $value;
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; PostgresInetTypeException($value);
        }
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getName() {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; self::INET;
    }

}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;bootstrap.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-comment&quot;&gt;// ... other Doctrine setup stuff
&lt;/span&gt;
&lt;span class=&quot;code-comment&quot;&gt;// Define Database driver
&lt;/span&gt;$objDBALConfig = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Configuration();

$arrConnectionOptions = array(
    &apos;dbname&apos; =&amp;gt; &apos;my_pg_database&apos;,
    &apos;user&apos; =&amp;gt; &apos;itsme&apos;,
    &apos;host&apos; =&amp;gt; &apos;127.0.0.1&apos;,
    &apos;driver&apos; =&amp;gt; &apos;pdo_pgsql&apos;,
);

$objDBALConnection = DriverManager::getConnection($arrConnectionOptions, $objDBALConfig);

&lt;span class=&quot;code-comment&quot;&gt;// Add special PostgresType INET
&lt;/span&gt;Type::addType(&apos;inet&apos;, &apos;Doctrine\DBAL\Types\PostgresInetType&apos;);
$objDBALConnection-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;Inet&apos;, &apos;inet&apos;);

&lt;span class=&quot;code-comment&quot;&gt;// Instanciate EntityManager
&lt;/span&gt;
$objDoctEntityManager = EntityManager::create($objDBALConnection, $objDoctConfig);

&lt;span class=&quot;code-comment&quot;&gt;// ...&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When running&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;php doctrine.php orm:validate-schema --verbose
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;I get the following:&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;[Mapping]  OK - The mapping files are correct.


                                                                                                        
  [Doctrine\DBAL\DBALException]                                                                         
  Unknown database type inet requested, Doctrine\DBAL\Platforms\Postgre