<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 07:25:30 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+AND+status+%3D+Resolved+ORDER+BY+priority+DESC&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+AND+status+%3D+Resolved+ORDER+BY+priority+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="392" total="392"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-207] RemoveNamespacedAssets: Foreign Key removing does not work correctly</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-207</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13378">DBAL-207</key>
            <summary>RemoveNamespacedAssets: Foreign Key removing does not work correctly</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 22 Jan 2012 13:49:06 +0000</created>
                <updated>Sun, 22 Jan 2012 17:36:23 +0000</updated>
                    <resolved>Sun, 22 Jan 2012 13:55:06 +0000</resolved>
                            <version>2.2-RC1/RC2</version>
                                <fixVersion>2.2.0-RC3</fixVersion>
                <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17327" author="beberlei" created="Sun, 22 Jan 2012 13:55:06 +0000"  >&lt;p&gt;Fixed.&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-36] Database selection with DSN</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-36</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When construstring DSN in &lt;b&gt;Doctrine\DBAL\Driver\PDOSqlsrv\Driver&lt;/b&gt; it should add selection of database in DSN.&lt;/p&gt;

&lt;p&gt;So for example DSN will look 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-none&quot;&gt;$dsn =&quot;sqlsrv:Server=(local) ; Database = AdventureWorks &quot;; 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;As writen in chm manual which come with Sql server drivers for PHP v2&lt;/p&gt;</description>
                <environment>Windows, Sql Server 2008, Sql server drivers for PHP v2</environment>
            <key id="11666">DBAL-36</key>
            <summary>Database selection with DSN</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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bostjan">Bostjan Oblak</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Jul 2010 16:26:54 +0000</created>
                <updated>Wed, 8 Sep 2010 07:31:09 +0000</updated>
                    <resolved>Wed, 8 Sep 2010 07:31:09 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14305" author="bostjan" created="Wed, 8 Sep 2010 06:47:37 +0000"  >&lt;p&gt;I changed this Issue to Bug and give it priority of blocker, since with final relase of Sql Server Driver 2 for PHP it&apos;s not working correctly.&lt;/p&gt;

&lt;p&gt;Solution can be found on my blog: &lt;a href=&quot;http://bostjan.muha.cc/2010/08/doctrine-2-mssql/&quot; class=&quot;external-link&quot;&gt;http://bostjan.muha.cc/2010/08/doctrine-2-mssql/&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14307" author="beberlei" created="Wed, 8 Sep 2010 07:31:09 +0000"  >&lt;p&gt;This was fixed in Beta4, but will probably be changed again for the next testrelease because of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-49&quot; title=&quot;PDOSqlsrv&amp;#39;s constructor breaks when using non &amp;quot;local&amp;quot; server host&quot;&gt;&lt;del&gt;DBAL-49&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-35] PDO_Sqlsrv bug in _constructPdoDsn()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-35</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When connection to mssql server with pdo_sqlsrv driver you get:&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; 
[PDOException]
SQLSTATE[IMSSP]: The DSN string ended unexpectedly.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Sample $connectionOptions:&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;$connectionOptions = array(
    &apos;dbname&apos; =&amp;gt; &apos;AdventureWorks&apos;,
    &apos;user&apos; =&amp;gt; &apos;sa&apos;,
    &apos;password&apos; =&amp;gt; &apos;sa_password&apos;,
    &apos;host&apos; =&amp;gt; &apos;local&apos;,
    &apos;driver&apos; =&amp;gt; &apos;pdo_sqlsrv&apos;
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Error is in &lt;b&gt;Doctrine\DBAL\Driver\PDOSqlsrv\Driver&lt;/b&gt; in function &lt;b&gt;_constructPdoDsn(array $params)&lt;/b&gt;.&lt;br/&gt;
On &lt;b&gt;line 53&lt;/b&gt; dsn starts 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-none&quot;&gt;$dsn = &apos;sqlsrv:(&apos;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;instead of &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;$dsn = &apos;sqlsrv:server=(&apos;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;as written in offical Microsoft help which come with SQL Server Driver For PHP v2.&lt;/p&gt;</description>
                <environment>Windows 7, Zend Server CE, Sql Server driver for PHP v2</environment>
            <key id="11665">DBAL-35</key>
            <summary>PDO_Sqlsrv bug in _constructPdoDsn()</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bostjan">Bostjan Oblak</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Jul 2010 16:03:33 +0000</created>
                <updated>Tue, 31 Aug 2010 17:51:58 +0000</updated>
                    <resolved>Tue, 31 Aug 2010 17:51:58 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                <fixVersion>2.0.0-BETA4</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13650" author="beberlei" created="Wed, 21 Jul 2010 17:19:41 +0000"  >&lt;p&gt;@Juozas can you evaluate this and possibly apply a fix?&lt;/p&gt;</comment>
                    <comment id="14203" author="beberlei" created="Tue, 31 Aug 2010 17:51:58 +0000"  >&lt;p&gt;Fixed&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-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-522] BC break : executeQuery with an array containing null value(s).</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-522</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hello, i have got an error with doctrine 2.3.4 when i try to run the following code :&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;executeQuery(
        &apos;INSERT INTO FOO (foo, bar) values (:foo, :bar)&apos;, 
         array(&apos;foo&apos; =&amp;gt; 1, &apos;bar&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
     );
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;Error : Value for :bar not found in params array. Params array key should be &quot;bar&quot; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This code worked with doctrine 2.3.3.&lt;/p&gt;

&lt;p&gt;I think the error comes from the function &apos;extractParam&apos; in SQLParserUtils.php (DBAL)&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;
line 215 : &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($paramsOrTypes[$paramName]))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The key exists even if the value is null.&lt;br/&gt;
So it should 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;
  &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (array_key_exists($paramName, $paramsOrTypes)) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I am not enough confident to try a PR.&lt;br/&gt;
Thanks in advance!&lt;/p&gt;



</description>
                <environment>Mac OSX 10.8.3, Mysql 5.5.28, PHP5.4 </environment>
            <key id="14971">DBAL-522</key>
            <summary>BC break : executeQuery with an array containing null value(s).</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>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="remy">lemeunier</reporter>
                        <labels>
                        <label>dbal</label>
                    </labels>
                <created>Mon, 20 May 2013 10:02:55 +0000</created>
                <updated>Tue, 21 May 2013 05:58:01 +0000</updated>
                    <resolved>Tue, 21 May 2013 05:54:50 +0000</resolved>
                            <version>2.3.4</version>
                                <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20402" author="ocramius" created="Mon, 20 May 2013 16:15:54 +0000"  >&lt;p&gt;I suggested a hotfix at &lt;a href=&quot;https://github.com/doctrine/dbal/pull/322&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/322&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20406" author="remy" created="Tue, 21 May 2013 05:58:01 +0000"  >&lt;p&gt;Thanks for the hotfix.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-54] Incorrect sequence dropping in PostgreSQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-54</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Currently, DBAL drops the PostgreSQL sequences using the query:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;DROP SEQUENCE sequencename&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;While it is quite correct at the first look, it fails, if the sequence is actually used by a table. Because Doctrine 2 ORM tries to drop the sequences before the tables, it makes impossible to drop a database schema in PostgreSQL due to the following exception:&lt;/p&gt;

&lt;hr /&gt;
&lt;p&gt;$ php53 doctrine.php orm:schema-tool:drop&lt;br/&gt;
Dropping database schema...&lt;br/&gt;
PDOException&lt;br/&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 admins_id_seq because other objects depend on it&lt;br/&gt;
DETAIL:  default for table admins column id depends on sequence admins_id_seq&lt;br/&gt;
HINT:  Use DROP ... CASCADE to drop the dependent objects too.&lt;br/&gt;
/.../Libs/Doctrine/DBAL/Connection.php&lt;br/&gt;
Line 570&lt;br/&gt;
Trace:&lt;br/&gt;
        0. PDO::query on line 570&lt;br/&gt;
        1. Doctrine\DBAL\Connection::executeQuery on line 484&lt;br/&gt;
        2. Doctrine\ORM\Tools\SchemaTool::dropSchema on line 78&lt;br/&gt;
        3. Doctrine\ORM\Tools\Console\Command\SchemaTool\DropCommand::executeSchemaCommand on line 59&lt;br/&gt;
        4. Doctrine\ORM\Tools\Console\Command\SchemaTool\AbstractCommand::execute on line 159&lt;br/&gt;
        5. Symfony\Component\Console\Command\Command::run on line 205&lt;br/&gt;
        6. Symfony\Component\Console\Application::doRun on line 117&lt;br/&gt;
        7. Symfony\Component\Console\Application::run on line 7&lt;/p&gt;
&lt;hr /&gt;

&lt;p&gt;A solution is simply to add the &quot;CASCADE&quot; keyword at the end of the query.&lt;/p&gt;

&lt;p&gt;Although I encountered this problem on DBAL 2.0-beta4, I checked the most up-to-date code on Git, and the problem is still present there.&lt;/p&gt;</description>
                <environment>postgresql 8.4.3, Arch Linux 64-bit</environment>
            <key id="11936">DBAL-54</key>
            <summary>Incorrect sequence dropping in PostgreSQL</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="zyxist">Tomasz J&#281;drzejewski</reporter>
                        <labels>
                    </labels>
                <created>Tue, 21 Sep 2010 05:39:54 +0000</created>
                <updated>Tue, 9 Oct 2012 14:55:47 +0000</updated>
                    <resolved>Thu, 23 Sep 2010 15:05:34 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14427" author="beberlei" created="Tue, 21 Sep 2010 06:57:15 +0000"  >&lt;p&gt;Would it help to drop sequences after tables? If then i would just move the code blocks.&lt;/p&gt;</comment>
                    <comment id="14431" author="zyxist" created="Tue, 21 Sep 2010 10:49:48 +0000"  >&lt;p&gt;In this particular case - yes, it would help. But consider that different database engines may have different dependencies between schema elements and be more or less restrictive, so they may require different order of code blocks. I&apos;d recommend to make a bit deeper investigation here in order not to cause potential problems with other database engines.&lt;/p&gt;</comment>
                    <comment id="14449" author="beberlei" created="Thu, 23 Sep 2010 15:05:34 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="18101" author="jonrwads" created="Wed, 20 Jun 2012 08:13:44 +0000"  >&lt;p&gt;This issue is happening again with Doctrine 2.2.2 on Postgres 9.1.3.  when trying to drio a database I get this message even with --full-database&lt;/p&gt;

&lt;p&gt;&amp;gt; php doctrine.php orm:schema-tool:drop --force --full-database&lt;br/&gt;
Dropping database schema...&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;2BP01&amp;#93;&lt;/span&gt;: Dependent objects still exist: 7 ERROR:  cannot drop sequence policycategory_id_seq because other objects depend on it  &lt;br/&gt;
  DETAIL:  default for table policycategory column id depends on sequence policycategory_id_seq                                            &lt;br/&gt;
  HINT:  Use DROP ... CASCADE to drop the dependent objects too.&lt;/p&gt;

&lt;p&gt;I would love to help diagnose, just let me know what you need and I will be more than happy to help.&lt;/p&gt;</comment>
                    <comment id="18814" author="jonrwads" created="Tue, 9 Oct 2012 14:55:47 +0000"  >&lt;p&gt;I forgot to update this for anyone else who might have had my problem.  The issue was solved for me when I was reviewing some models. The project was originally intended for MySQL and Generated Value Strategy was not set to Auto.  Upon changing it to auto, everything worked correctly.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-52] Schema tools will alter tables with custom column definitions forever</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-52</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using custom column definition, schema tool will execute the same update statements over and over. It looks like schema tool can&apos;t find out yet, if the custom column definition has already been applied.&lt;br/&gt;
As MySQL does full table rebuilds quite often (sometimes for no or at least debatable reasons), this makes the schema tool for large migrations quite hard to use in a production system deployment scenario.&lt;/p&gt;</description>
                <environment>MySQL 5.1, PDO MySQL</environment>
            <key id="11925">DBAL-52</key>
            <summary>Schema tools will alter tables with custom column definitions forever</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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="lstrojny">Lars Strojny</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Sep 2010 16:37:46 +0000</created>
                <updated>Wed, 15 Sep 2010 16:58:50 +0000</updated>
                    <resolved>Wed, 15 Sep 2010 16:57:37 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14398" author="beberlei" created="Wed, 15 Sep 2010 16:57:37 +0000"  >&lt;p&gt;Yes this is a known issue, i plan to fix this with &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-42&quot; title=&quot;the DQL parser does not support boolean literal values&quot;&gt;&lt;del&gt;DDC-42&lt;/del&gt;&lt;/a&gt;, however it will take until 2.1 i guess. It annoys me too&lt;/p&gt;

&lt;p&gt;Maybe we should also add a note to the manual, schema-tool incremental update is a development tool and should not be used on the production server.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-44] nullable is not working for all datatypes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-44</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The nullable=true annotation is ignored from at least following Types:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;SmallIntType&lt;/li&gt;
	&lt;li&gt;DecimalType&lt;/li&gt;
	&lt;li&gt;BooleanType (not sure if nullable makes sense here)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="11848">DBAL-44</key>
            <summary>nullable is not working for all datatypes</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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="d.freudenberger">Daniel Freudenberger</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Aug 2010 04:37:26 +0000</created>
                <updated>Mon, 30 Aug 2010 05:22:25 +0000</updated>
                    <resolved>Mon, 30 Aug 2010 05:22:03 +0000</resolved>
                                            <fixVersion>2.0.0-BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14146" author="romanb" created="Mon, 30 Aug 2010 04:46:00 +0000"  >&lt;p&gt;This looks like it has been fixed for a while already. See:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/SmallIntType.php&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/SmallIntType.php&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/DecimalType.php&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/DecimalType.php&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/BooleanType.php&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/BooleanType.php&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14147" author="d.freudenberger" created="Mon, 30 Aug 2010 05:20:27 +0000"  >&lt;p&gt;I&apos;ll take a look at the master next time before submitting a bug report. Anyway I think it would be better to not fix bugs without an existing ticket for the fixed bug &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="14148" author="d.freudenberger" created="Mon, 30 Aug 2010 05:22:03 +0000"  >&lt;p&gt;has already been fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10749" name="nullable.patch" size="864" author="d.freudenberger" created="Mon, 30 Aug 2010 04:37:26 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-129] Doctrine\ORM\Mapping\ClassMetadataInfo does not properly handle identifier quoting</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-129</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Several methods in Doctrine\ORM\Mapping\ClassMetadataInfo assume that table names and field names may be quoted.  In all places, logic assumes that the quote character will always be ` (backtick). There seems to be no way to properly quote table names with [] (square brackets) when working with SQL Server databases.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12707">DBAL-129</key>
            <summary>Doctrine\ORM\Mapping\ClassMetadataInfo does not properly handle identifier quoting</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="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="pschwisow">Patrick Schwisow</reporter>
                        <labels>
                    </labels>
                <created>Fri, 10 Jun 2011 19:45:23 +0000</created>
                <updated>Fri, 17 Jun 2011 18:41:14 +0000</updated>
                    <resolved>Wed, 15 Jun 2011 17:02:43 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.0.6</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15970" author="beberlei" created="Sat, 11 Jun 2011 07:35:32 +0000"  >&lt;p&gt;Just use `foo` as quotes, its just an abstract concept, doctrine will translate that to &lt;span class=&quot;error&quot;&gt;&amp;#91;foo&amp;#93;&lt;/span&gt; in MsSQL.&lt;/p&gt;</comment>
                    <comment id="15980" author="pschwisow" created="Mon, 13 Jun 2011 17:32:20 +0000"  >&lt;p&gt;I don&apos;t see how that would work.  It appears that DBAL\Platforms\AbstractPlatform::quoteIdentifier assumes that the opening and closing quotes are the same.  In the case of MS SQL, it appears to use the double quote, not square brackets.&lt;/p&gt;</comment>
                    <comment id="15989" author="beberlei" created="Wed, 15 Jun 2011 16:49:42 +0000"  >&lt;p&gt;Assigned to Juokaz&lt;/p&gt;</comment>
                    <comment id="15990" author="beberlei" created="Wed, 15 Jun 2011 17:02:43 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-114] MsSqlPlatform - getListTablesSQL() get&apos;s sysdiagrams table</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-114</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;getListTablesSQL() function in MsSqlPlatform.php list all tables in database.&lt;/p&gt;

&lt;p&gt;If you have saved Database Diagrams it returns &quot;sysdiagrams&quot; table too.&lt;br/&gt;
This table have field &quot;name&quot; with type &quot;sysname&quot; which have no mapping.&lt;/p&gt;

&lt;p&gt;If you run orm:validate-schema you get:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;&lt;br/&gt;
Unknown database type sysname requested, Doctrine\DBAL\Platforms\MsSqlPlatform may not support it.&lt;/p&gt;

&lt;p&gt;Best solution is that when getting tables to ignore &quot;sysdiagrams&quot; tables.&lt;/p&gt;</description>
                <environment>Windows 7, PHP 5.3.5, MSSQL 2008</environment>
            <key id="12582">DBAL-114</key>
            <summary>MsSqlPlatform - getListTablesSQL() get&apos;s sysdiagrams table</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="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="bostjan">Bostjan Oblak</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Apr 2011 18:19:08 +0000</created>
                <updated>Mon, 29 Aug 2011 20:12:21 +0000</updated>
                    <resolved>Mon, 29 Aug 2011 20:12:21 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.1.2</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15748" author="bostjan" created="Tue, 26 Apr 2011 18:20:33 +0000"  >&lt;p&gt;One solution is to just add &quot;AND name != &apos;sysdiagrams&apos; &quot; to sql statement&lt;/p&gt;</comment>
                    <comment id="15768" author="beberlei" created="Sat, 30 Apr 2011 09:09:24 +0000"  >&lt;p&gt;Assigned to Jouzas&lt;/p&gt;</comment>
                    <comment id="16124" author="yaroslav" created="Thu, 7 Jul 2011 07:30:00 +0000"  >&lt;p&gt;Why it is not fixed yet? The solution is so easy. Please add to repository. Because on every release I should change it manually &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.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="16400" author="beberlei" created="Mon, 29 Aug 2011 20:12:21 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-111] MySQL Driver possibly subject to sql injections with PDO::quote()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-111</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Prior to 5.3.6, the MySQL PDO driver ignored the character set parameter to options.  Due to MySQL&apos;s C api (and MySQLND), this is required for the proper function of mysql_real_escape_string() (the C API call).  Since PDO uses the mres() C call for PDO::quote(), this means that the quoted string does not take into account the connection character set.&lt;/p&gt;

&lt;p&gt;Starting with 5.3.6, that was fixed.  So now if you pass the proper character set to PDO via driver options, sql injection is impossible while using the PDO::quote() api call.&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;PDO proof of concept&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$dsn = &apos;mysql:dbname=INFORMATION_SCHEMA;host=127.0.0.1;charset=GBK;&apos;;
$pdo = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; PDO($dsn, $user, $pass);
$pdo-&amp;gt;exec(&apos;SET NAMES GBK&apos;);
$string = chr(0xbf) . chr(0x27) . &apos; OR 1 = 1; /*&apos;;
$sql = &quot;SELECT TABLE_NAME
            FROM INFORMATION_SCHEMA.TABLES
            WHERE TABLE_NAME LIKE &lt;span class=&quot;code-quote&quot;&gt;&quot;.$pdo-&amp;gt;quote($string).&quot;&lt;/span&gt; LIMIT 1;&quot;;
$stmt = $pdo-&amp;gt;query($sql);
var_dump($stmt-&amp;gt;rowCount());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Expected Result: `int(0)`.&lt;br/&gt;
Actual Result: `int(1)`.&lt;/p&gt;

&lt;p&gt;There are 2 issues to fix.  First, the documentation does not indicate that you can pass the `charset` option to the MySQL Driver.  This should be fixed so that users are given the proper option to set character sets.&lt;/p&gt;

&lt;p&gt;Secondly, `Connection::setCharset()` should be modified for MySQL to throw an exception, since the character set is only safely setable using the DSN with PDO.  This is a limitation of the driver and could be asked as a feature request for the PHP core.  Either that, or a big warning should be put on the documentation of the API to indicate the unsafe character set change&lt;/p&gt;</description>
                <environment>MySQL Drivers</environment>
            <key id="12569">DBAL-111</key>
            <summary>MySQL Driver possibly subject to sql injections with PDO::quote()</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="ircmaxell">Anthony Ferrara</reporter>
                        <labels>
                    </labels>
                <created>Mon, 18 Apr 2011 18:52:18 +0000</created>
                <updated>Sat, 14 May 2011 07:24:48 +0000</updated>
                    <resolved>Sat, 14 May 2011 07:24:48 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                <version>2.0.0-BETA3</version>
                <version>2.0.0-BETA4</version>
                <version>2.0.0-RC1-RC3</version>
                <version>2.0-RC4</version>
                <version>2.0-RC5</version>
                <version>2.0</version>
                <version>2.0.1</version>
                <version>2.0.2</version>
                <version>2.0.3</version>
                <version>2.0.4</version>
                <version>2.0.5</version>
                <version>2.1</version>
                                <fixVersion>2.0.4</fixVersion>
                <fixVersion>2.0.5</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15740" author="ircmaxell" created="Tue, 19 Apr 2011 13:30:41 +0000"  >&lt;p&gt;Note: issued same bug report for Doctrine1 as it&apos;s also affected: &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-998&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DC-998&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15753" author="ircmaxell" created="Fri, 29 Apr 2011 20:39:41 +0000"  >&lt;p&gt;Also note that prepared statements in PDO will suffer the same bug since PDO always emulates prepared statements for the mysql driver (even though it fully supports them in the source).  See: &lt;a href=&quot;http://bugs.php.net/bug.php?id=54638&quot; class=&quot;external-link&quot;&gt;http://bugs.php.net/bug.php?id=54638&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15845" author="beberlei" created="Sat, 14 May 2011 07:24:48 +0000"  >&lt;p&gt;Fixed, updated the docs&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-80] Connection::_bindTypedValues() error when $types[0] is null</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-80</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When $types&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; = null (default) then _bindTypedValues starts with the wrong offset and binds the wrong types against the wrong params.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12273">DBAL-80</key>
            <summary>Connection::_bindTypedValues() error when $types[0] is null</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 Jan 2011 12:02:04 +0000</created>
                <updated>Sat, 1 Jan 2011 16:08:29 +0000</updated>
                    <resolved>Sat, 1 Jan 2011 16:08:29 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.1</fixVersion>
                <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15084" author="beberlei" created="Sat, 1 Jan 2011 16:08:29 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-168] orm:schema-tool:update will fail if if public scheme has a domains table (PostgreSQL)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-168</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If I create a table &apos;domains&apos; in the default scheme and execute the update procedure of the schema tool, it will throw a PDOException (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;/p&gt;

&lt;p&gt;I&apos;ve traced the error to the following statement, which is created by Doctrine\DBAL\Platforms\PostgreSqlPlatform-&amp;gt;getListTableForeignKeysSQL():&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 r.conname, pg_catalog.pg_get_constraintdef(r.oid, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) as condef
                  FROM pg_catalog.pg_constraint r
                  WHERE r.conrelid =
                  (
                      SELECT c.oid
                      FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
                      WHERE c.relname = &apos;domains&apos;
                        AND n.oid = c.relnamespace
                  )
                  AND r.contype = &apos;f&apos;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 
&lt;p&gt;This returns two oids because there are two relations with the name domains. One is my table and the other is a view in the information_scheme scheme.&lt;/p&gt;

&lt;p&gt;The same problem should occur with the other information_scheme relations.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13033">DBAL-168</key>
            <summary>orm:schema-tool:update will fail if if public scheme has a domains table (PostgreSQL)</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bountin">Martin Prebio</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Sep 2011 11:24:25 +0000</created>
                <updated>Mon, 14 Nov 2011 19:12:41 +0000</updated>
                    <resolved>Mon, 14 Nov 2011 19:12:41 +0000</resolved>
                            <version>2.0.5</version>
                                <fixVersion>2.1.5</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16731" author="beberlei" created="Sun, 30 Oct 2011 19:07:16 +0000"  >&lt;p&gt;Hm the domains entry doesnt seems to pop up for me in pgadmin when executing your query. Can you help me a bit with details on how to reproduce this?&lt;/p&gt;</comment>
                    <comment id="16741" author="bountin" created="Mon, 31 Oct 2011 13:16:03 +0000"  >&lt;p&gt;montbook:~ postgres$ createdb -E UTF8 -T template0 -l de_AT.UTF-8 foo&lt;br/&gt;
montbook:~ postgres$ psql foo&lt;br/&gt;
foo=# create table domains (id int8 not null);&lt;/p&gt;

&lt;p&gt;Now I have a table domains in the default schema and a domains table in the information_schema schema which is created and maintained by postgres. Now executing the query above will produce the mentioned exception.&lt;/p&gt;

&lt;p&gt;It was necessary to create a table in the fresh database to create the information_schema. It is a meta schema from where you can select information of the database and it is afaik a sql standard (also mysql has it but as a seperate database).&lt;/p&gt;

&lt;p&gt;pgAdmin may hide this schema (and the pg_catalog): &lt;a href=&quot;http://www.mail-archive.com/pgadmin-support@postgresql.org/msg09332.html&quot; class=&quot;external-link&quot;&gt;http://www.mail-archive.com/pgadmin-support@postgresql.org/msg09332.html&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16823" author="beberlei" created="Mon, 14 Nov 2011 19:12:41 +0000"  >&lt;p&gt;Fixed and merged into 2.1.x&lt;/p&gt;</comment>
                </comments>
                    <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-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-228] OCI8Statement&apos; fetchAll method can not do with PDO::FETCH_BOTH </title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-228</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;{@inheritdoc}
&lt;p&gt;     */&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;    private static $fetchStyleMap = 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;
    );&lt;/p&gt;


&lt;p&gt;  public function fetchAll($fetchStyle = PDO::FETCH_BOTH)&lt;br/&gt;
    {&lt;br/&gt;
        if ( ! isset(self::$fetchStyleMap&lt;span class=&quot;error&quot;&gt;&amp;#91;$fetchStyle&amp;#93;&lt;/span&gt;)) &lt;/p&gt;
{
            throw new \InvalidArgumentException(&quot;Invalid fetch style: &quot; . $fetchStyle);
        }

&lt;p&gt;        $result = array();&lt;br/&gt;
        oci_fetch_all($this-&amp;gt;_sth, $result, 0, -1,&lt;br/&gt;
            self::$fetchStyleMap&lt;span class=&quot;error&quot;&gt;&amp;#91;$fetchStyle&amp;#93;&lt;/span&gt; | OCI_RETURN_NULLS | OCI_FETCHSTATEMENT_BY_ROW | OCI_RETURN_LOBS);&lt;/p&gt;

&lt;p&gt;        return $result;&lt;br/&gt;
    }&lt;/p&gt;


&lt;p&gt; oci_fetch_all method&#12288;can only surport &lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;OCI_NUM&lt;/li&gt;
	&lt;li&gt;OCI_ASSOC&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;in $fetchStyleMap, OCI_BOTH is included!!!!&lt;/p&gt;</description>
                <environment></environment>
            <key id="13488">DBAL-228</key>
            <summary>OCI8Statement&apos; fetchAll method can not do with PDO::FETCH_BOTH </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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="zhouhero">zhouhero</reporter>
                        <labels>
                    </labels>
                <created>Fri, 2 Mar 2012 08:41:42 +0000</created>
                <updated>Wed, 14 Mar 2012 21:32:46 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 21:32:46 +0000</resolved>
                            <version>2.2.1</version>
                                <fixVersion>2.2.2</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17583" author="beberlei" created="Wed, 14 Mar 2012 21:32:46 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-50] PgSQL driver does not create indexes on foreign key columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-50</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The PostgreSQL database does not create indexes for foreign key columns, the user has to create them by hand. I think that indexes for foreign keys should be created automatically... On my system, an index will not be created automatically for the group_id column in the user table.&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;/**
 * @Entity
 */
class User {
    /**
     * @ManyToOne(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;Group&quot;&lt;/span&gt;, inversedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;users&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $group;
}

/**
 * @Entity
 */
class Group {
    /**
     * @OneToMany(targetEntity=&lt;span class=&quot;code-quote&quot;&gt;&quot;User&quot;&lt;/span&gt;, mappedBy=&lt;span class=&quot;code-quote&quot;&gt;&quot;group&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $users;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct() {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;users = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Collections\ArrayCollection();
    }
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I am using current git clone and PgSQL 8.4.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11800">DBAL-50</key>
            <summary>PgSQL driver does not create indexes on foreign key columns</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="petr_motejlek">Petr Motejlek</reporter>
                        <labels>
                    </labels>
                <created>Wed, 18 Aug 2010 19:17:50 +0000</created>
                <updated>Sat, 11 Sep 2010 19:14:48 +0000</updated>
                    <resolved>Sat, 11 Sep 2010 19:13:47 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="14310" author="petr_motejlek" created="Thu, 9 Sep 2010 03:06:32 +0000"  >&lt;p&gt;I&apos;d just like to add that there&apos;s an even worse problem with this &amp;#8211; the indices are not created even for tables that Doctrine creates automatically &amp;#8211; for example the joining tables...&lt;/p&gt;</comment>
                    <comment id="14311" author="beberlei" created="Thu, 9 Sep 2010 03:24:30 +0000"  >&lt;p&gt;i&apos;ll look into it.&lt;/p&gt;</comment>
                    <comment id="14343" author="beberlei" created="Sat, 11 Sep 2010 19:13:47 +0000"  >&lt;p&gt;Fixed in master, leading to several follow up bugs that all had to be fixed:&lt;/p&gt;

&lt;p&gt;1. generate identifier allowed first char to be a number&lt;br/&gt;
2. postgresql composite foreign key detection left a space in the second (and more) column names&lt;br/&gt;
3. Index column names were not sanitized to lower-case, leading to comparison bugs.&lt;/p&gt;

&lt;p&gt;There has been a major refactoring now such that, for each foreign key there is always an explicit index being created. On SQLite, Postgres and Oracle this can lead to quite some additional indexes being created now using SchemaTool --update. MySQL already did this implicitly.&lt;/p&gt;

&lt;p&gt;There are now heuristics that detect duplicate indexes (based on columns indexed) and override rules (adding primary on columns foo, bar will delete index on columns foo bar).&lt;/p&gt;</comment>
                    <comment id="14344" author="beberlei" created="Sat, 11 Sep 2010 19:14:48 +0000"  >&lt;p&gt;Note, this commit will not get into Doctrine ORM master unless you update the git-submodule explicitly:&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;cd lib/vendor/doctrine-dbal
git checkout master
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For RC-1 this will be visible to the ORM trunk/master also.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-65] No way to store binary data in PostgreSQL with Doctrine</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-65</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The type system introduced by Doctrine makes impossible to store binary data in PostgreSQL databases that use Unicode. The `text` type is mapped to `TEXT`, but any trial to place some binary data there ends up with a database error, like this:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;22021&amp;#93;&lt;/span&gt;: Character not in repertoire: 7 ERROR: invalid byte sequence for encoding &quot;UTF8&quot;: 0x9c&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This is a critical limitation, because Doctrine cannot be used now in projects that for any reasons have to use PostgreSQL, and their databases must store binary data. Even if it cannot be fixed right now, it should be clearly pointed out in the documentation in &quot;Known vendor issues&quot;.&lt;/p&gt;

&lt;p&gt;A possible solution for this problem is creating an equivalent of &apos;text&apos; field, called &apos;binary&apos; or something like that. It must be a simple type that is mapped to the simplest, but large type available in the database engine without any form of data structure validation. For PostgreSQL, this could be &apos;blob&apos;, but other database engines can use different types.&lt;/p&gt;</description>
                <environment>PostgreSQL 8.4</environment>
            <key id="12128">DBAL-65</key>
            <summary>No way to store binary data in PostgreSQL with Doctrine</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="zyxist">Tomasz J&#281;drzejewski</reporter>
                        <labels>
                    </labels>
                <created>Sat, 20 Nov 2010 14:07:43 +0000</created>
                <updated>Tue, 9 Oct 2012 14:51:55 +0000</updated>
                    <resolved>Sat, 20 Nov 2010 17:55:09 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="14792" author="zyxist" created="Sat, 20 Nov 2010 14:12:17 +0000"  >&lt;p&gt;Just a small note why I consider this bug as quite serious: for many programmers and their projects the lack of both support for such content type and any information about the limitation can be very dangerous. It can be impossible to remove ORM, if such an issue is encountered in the implementation process, and trials to workaround it are time-consuming.&lt;/p&gt;

&lt;p&gt;If I&apos;m about to decide whether to use a particular ORM or not, I must have full information about ORM and database-specific limitations.&lt;/p&gt;

&lt;p&gt;One more update: shame on me, obviously there is no &quot;blob&quot; type in PostgreSQL; in this database engine binary data could be represented by &apos;BYTEA&apos;.&lt;/p&gt;</comment>
                    <comment id="14793" author="beberlei" created="Sat, 20 Nov 2010 17:55:09 +0000"  >&lt;p&gt;This is not an issue, there are two options to &quot;solve&quot; your problem in userland:&lt;/p&gt;

&lt;p&gt;1. Create your own DBAL type - &lt;a href=&quot;http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic-mapping/en#custom-mapping-types&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/2.0/docs/reference/basic-mapping/en#custom-mapping-types&lt;/a&gt;&lt;br/&gt;
2. Use columnDefinition Attribute of @column - &lt;a href=&quot;http://www.doctrine-project.org/projects/orm/2.0/docs/reference/annotations-reference/en#ann_column&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/projects/orm/2.0/docs/reference/annotations-reference/en#ann_column&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14963" author="zyxist" created="Sun, 12 Dec 2010 09:56:14 +0000"  >&lt;p&gt;I know I can create a custom type, but I&apos;d like to have a portable binary type by default in Doctrine DBAL, not reinventing the wheel every time I want to have one. I consider binary data as one of the primitive types that every database engine supports.&lt;/p&gt;</comment>
                    <comment id="18813" author="jonrwads" created="Tue, 9 Oct 2012 14:49:13 +0000"  >&lt;p&gt;This is an old post but just in case somebody else finds it.  There is no need to do any of the above to store binary data in Postgres.  I had the same situation and was easily solved by compressing file, base64 encoding it, and finally serializing it.&lt;/p&gt;

&lt;p&gt;    public static function prepareFileforDatabase($file)&lt;/p&gt;
    {
        $compressor = new \Zend_Filter_Compress_Gz();
        $file = $compressor-&amp;gt;compress($file);
        $file = base64_encode($file);
        return serialize($file);
    }

&lt;p&gt;We use Zend and you may be able to get away with not compressing if you wanted to avoid the extra overhead on your server.  To undo it is exactly the opposite.&lt;/p&gt;

&lt;p&gt;    public static function prepareFileforPHP($file)&lt;/p&gt;
    {
        $compressor = new \Zend_Filter_Compress_Gz();
        $file = unserialize($file);
        $file = base64_decode($file);
        return $compressor-&amp;gt;decompress($file);
    }

&lt;p&gt;Sorry for the code coming out in all one line, but you get the idea.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-64] Fix identifier quoting in DBAL Schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-64</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Identifier quoting using the Schema component is sort of borked.&lt;/p&gt;

&lt;p&gt;The optional or none approach from ClassMetadata should be looked at. Introducing a common quoting identifier `` and sanitizing this from each asset + a new method &quot;getQuotedName()&quot; that optionally quotes the identifier given the platform.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12120">DBAL-64</key>
            <summary>Fix identifier quoting in DBAL 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 17 Nov 2010 13:08:11 +0000</created>
                <updated>Thu, 18 Nov 2010 03:28:37 +0000</updated>
                    <resolved>Thu, 18 Nov 2010 03:28:37 +0000</resolved>
                            <version>2.0.0-RC1-RC3</version>
                                <fixVersion>2.0-RC4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14777" author="beberlei" created="Thu, 18 Nov 2010 03:28:37 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-63] Custom Types always detected as changed when orm:schema-tool:update</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-63</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I defined a custom type for DBAL and used it in an entity annotation. Every time I call &lt;tt&gt;doctrine orm:schema-tool:update&lt;/tt&gt;, even when no changes are been made to the code, DBAL thinks the schema has changed and needs an update. The type declaration is done in &lt;tt&gt;cli-config.php&lt;/tt&gt;, when creating the EntityManager.&lt;/p&gt;

&lt;p&gt;See the code and output below:&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;Project/CustomType.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;namespace Project;

use \Doctrine\DBAL\Platforms\AbstractPlatform,
    \Doctrine\DBAL\Types\Type;

class CustomType &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; TYPE = &apos;custom&apos;;

    &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; $platform-&amp;gt;getVarcharTypeDeclarationSQL($fieldDeclaration);
    }

    &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::TYPE;
    }
}
&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;Project/Entity.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @entity
 */
namespace Project;
class Entity
{
    /**
     * @id
     * @column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

    /**
     * @column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;custom&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $custom;
}
&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;cli-config.php&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$cache = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\Common\Cache\ApcCache;
$config = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Configuration;
$config-&amp;gt;setMetadataCacheImpl($cache);
$config-&amp;gt;setQueryCacheImpl($cache);

$driverImpl = $config-&amp;gt;newDefaultAnnotationDriver(APPLICATION_PATH . &apos;/Project&apos;);
$config-&amp;gt;setMetadataDriverImpl($driverImpl);

$config-&amp;gt;setProxyDir(APPLICATION_PATH . &apos;/Proxies&apos;);
$config-&amp;gt;setProxyNamespace(&apos;Proxies&apos;);
$config-&amp;gt;setAutoGenerateProxyClasses(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);

$connectionOptions = array(
    &apos;driver&apos;   =&amp;gt; &apos;pdo_mysql&apos;,
    &apos;dbname&apos;   =&amp;gt; &apos;project&apos;,
    &apos;user&apos;     =&amp;gt; &apos;#user#&apos;,
    &apos;password&apos; =&amp;gt; &apos;#password#&apos;,
    &apos;host&apos;     =&amp;gt; &apos;localhost&apos;,
);

\Doctrine\DBAL\Types\Type::addType(&apos;custom&apos;, &apos;Project\CustomType&apos;);
$em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);

$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;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;Console Output&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;#:~ doctrine orm:schema-tool:create --dump-sql
CREATE TABLE Entity (id INT NOT NULL, custom VARCHAR(255) NOT NULL, PRIMARY KEY(id)) ENGINE = InnoDB

#:~ doctrine orm:schema-tool:create
Creating database schema...
Database schema created successfully!

#:~ doctrine orm:schema-tool:update --dump-sql
ALTER TABLE Entity CHANGE custom custom VARCHAR(255) NOT NULL

#:~ doctrine orm:schema-tool:update --force
Updating database schema...
Database schema updated successfully!

#:~ doctrine orm:schema-tool:update --dump-sql
ALTER TABLE Entity CHANGE custom custom VARCHAR(255) NOT NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Ubuntu 10.10, MySQL 5.1.49, PHP 5.3.3</environment>
            <key id="12107">DBAL-63</key>
            <summary>Custom Types always detected as changed when orm:schema-tool: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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="xphere81">Berny Cantos</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Nov 2010 04:53:36 +0000</created>
                <updated>Tue, 16 Nov 2010 05:10:31 +0000</updated>
                    <resolved>Tue, 16 Nov 2010 05:10:31 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14750" author="beberlei" created="Tue, 16 Nov 2010 05:10:31 +0000"  >&lt;p&gt;Yes, it thinks its a varchar and wants to update that definition. This is a duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; title=&quot;Use column comments for further Doctrine Type Inference &quot;&gt;&lt;del&gt;DBAL-42&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-62] Length of a string column cannot exceed 255</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-62</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I use the annotation mapping:&lt;br/&gt;
here&apos;s my mapping informations:&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; mixed optionValue
* @orm:Column(nullable=&lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;option_value&quot;&lt;/span&gt;, length=&lt;span class=&quot;code-quote&quot;&gt;&quot;2000&quot;&lt;/span&gt;, type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;) 
*/
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $optionValue;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;when i check the mysql column type it&apos;s still &quot;varchar(255)&quot;.&lt;/p&gt;</description>
                <environment>Mysql</environment>
            <key id="12106">DBAL-62</key>
            <summary>Length of a string column cannot exceed 255</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="gordonslondon">jules b</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Nov 2010 03:52:37 +0000</created>
                <updated>Sat, 27 Nov 2010 13:04:41 +0000</updated>
                    <resolved>Sat, 27 Nov 2010 13:04:41 +0000</resolved>
                            <version>2.0.0-RC1-RC3</version>
                                <fixVersion>2.0-RC4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14839" author="jhartikainen" created="Fri, 26 Nov 2010 03:59:36 +0000"  >&lt;p&gt;Confirmed on OS X 10.6, PHP 5.3.2, MySQL 5.1.51, DBAL RC3. Schema-tool always generates a VARCHAR(255) column for cases like this. 1.x used to generate TEXT, which I would assume is the correct behavior with MySQL in this case.&lt;/p&gt;</comment>
                    <comment id="14849" author="beberlei" created="Sat, 27 Nov 2010 13:04:41 +0000"  >&lt;p&gt;Fixed, the max length of varchars was set to 255.&lt;/p&gt;

&lt;p&gt;However this is rather the default value. The maximum value is now 4000, which is the smallest common denominator between all supported vendors (Oracle is that).&lt;/p&gt;

&lt;p&gt;In the future we would probably allow arbitrary large sizes here and switch to a CLOB definition automatically if the specifed string length is larger than max length.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
            <subtask id="12168">DBAL-69</subtask>
        </subtasks>
        </item>

<item>
            <title>[DBAL-61] Incompatible transactions in OCI8 driver with other drivers (pdo_oci, pdo_mysql, pdo_pgsql)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-61</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When I try to insert some data, it is not saved into database.&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;$connectionOptions[&apos;oci8&apos;] = array(
    &apos;driver&apos; =&amp;gt; &apos;oci8&apos;,
    &apos;dbname&apos; =&amp;gt; &apos;BOOK&apos;,
    &apos;user&apos; =&amp;gt; &apos;doctrine&apos;,
    &apos;password&apos; =&amp;gt; &apos;doctrine&apos;,
&lt;span class=&quot;code-comment&quot;&gt;//    &apos;charset&apos; =&amp;gt; &apos;AL32UTF8&apos;,
&lt;/span&gt;);

$em = EntityManager::create($connectionOptions[&apos;oci8&apos;], $config, $evm);
$conn = $em-&amp;gt;getConnection();
$conn-&amp;gt;connect();
$conn-&amp;gt;insert(&apos;my_table&apos;, array(&apos;my_column&apos; =&amp;gt; &apos;Some value&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I invoke the previous code on any other DBAL driver, like pdo_oci, pdo_mysql, pdo_pgsql, the row is inserted.&lt;/p&gt;

&lt;p&gt;That&apos;s because Oracle is transactional, and everything need to be commited. This behavior prevent&apos;s me (and I think in a feature not only me), to use 3rd party code (bundles, models, plugins...) in my applications running oracle. This behavior prevents developers to write portable code with DBAL. The solution is to make OCI8Driver commit everything after invoking oci_execute(), the same way how Doctrine_Adapter_Oracle works in Doctrine1. (&lt;a href=&quot;https://github.com/doctrine/doctrine1/blob/master/lib/Doctrine/Adapter/Oracle.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine1/blob/master/lib/Doctrine/Adapter/Oracle.php&lt;/a&gt;)&lt;/p&gt;



</description>
                <environment>PHP Version 5.3.3-1ubuntu9, OCI8 1.4.1, Oracle 10.2.0.4.0 </environment>
            <key id="12086">DBAL-61</key>
            <summary>Incompatible transactions in OCI8 driver with other drivers (pdo_oci, pdo_mysql, pdo_pgsql)</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="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2010 05:24:16 +0000</created>
                <updated>Thu, 11 Nov 2010 14:35:49 +0000</updated>
                    <resolved>Thu, 11 Nov 2010 14:35:49 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14690" author="beberlei" created="Tue, 9 Nov 2010 06:09:43 +0000"  >&lt;p&gt;Scheduled for RC1, thanks for the patch - I will apply asap.&lt;/p&gt;</comment>
                    <comment id="14721" author="beberlei" created="Thu, 11 Nov 2010 14:35:49 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-60] OCI8Connection couldn&apos;t connect when charset parameter specified</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-60</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>
&lt;p&gt;When I am trying to connect to Oracle instance with another charset then specified in my environment variable NLS_LANG I got an 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;$connectionOptions[&apos;oracle&apos;] = array(
    &apos;driver&apos; =&amp;gt; &apos;oci8&apos;,
    &apos;dbname&apos; =&amp;gt; &apos;BOOK&apos;,
    &apos;user&apos; =&amp;gt; &apos;doctrine&apos;,
    &apos;password&apos; =&amp;gt; &apos;doctrine&apos;,
    &apos;charset&apos; =&amp;gt; &apos;AL32UTF8&apos;,
);

$em = EntityManager::create($connectionOptions[&apos;oracle&apos;], $config, $evm);
$em-&amp;gt;getConnection()-&amp;gt;connect();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Produce error messages:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;PHP Warning:  oci_error() expects parameter 1 to be resource, boolean given in /www/test/doctrine2/vendor/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php on line 149&lt;br/&gt;
PHP Fatal error:  Uncaught exception &apos;Doctrine\DBAL\Driver\OCI8\OCI8Exception&apos; in /www/test/doctrine2/vendor/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php:42&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;There is bug in OCI8Connection::errorInfo() and ::errorCode(). When oci_connect failed, it returns a boolean - false. but oci_error() accepts only resource as parameter. Therefor it is neccessary to check, whether $this-&amp;gt;_dbh is resource.&lt;/p&gt;

&lt;p&gt;When I&apos;ve fixed the error handling, I&apos;ve got the right error, why I couldn&apos;t connect to Oracle:&lt;/p&gt;

&lt;blockquote&gt;
&lt;p&gt;PHP Fatal error:  Uncaught exception &apos;Doctrine\DBAL\Driver\OCI8\OCI8Exception&apos; with message &apos;ORA-12154: TNS:could not resolve the connect identifier specified&apos; in /www/test/doctrine2/vendor/dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php:28&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;That&apos;s because oci_connect accepts as connection string only TNS name, or Oracle Connection string. But &lt;tt&gt;;charset=*&lt;/tt&gt; in TNS name or connection string is invalid. oci_connect has 4th parameter charset for that purpose.&lt;/p&gt;</description>
                <environment>PHP Version 5.3.3-1ubuntu9, OCI8 1.4.1, Oracle 10.2.0.4.0</environment>
            <key id="12083">DBAL-60</key>
            <summary>OCI8Connection couldn&apos;t connect when charset parameter specified</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="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2010 04:02:34 +0000</created>
                <updated>Sat, 29 Dec 2012 17:43:09 +0000</updated>
                    <resolved>Thu, 11 Nov 2010 14:36:01 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="14688" author="adrive" created="Tue, 9 Nov 2010 04:11:09 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/milokmet/dbal/tree/DBAL-60&quot; class=&quot;external-link&quot;&gt;https://github.com/milokmet/dbal/tree/DBAL-60&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14722" author="beberlei" created="Thu, 11 Nov 2010 14:36:01 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="19192" author="userua" created="Sat, 29 Dec 2012 12:56:47 +0000"  >&lt;p&gt;Can you help me. I&apos;m having same problem. But your link doesn&apos;t work.&lt;/p&gt;</comment>
                    <comment id="19194" author="adrive" created="Sat, 29 Dec 2012 17:43:09 +0000"  >&lt;p&gt;You must have very old source code. The bug was fixed 2 years ago. Just compare your OCI8 driver with &lt;a href=&quot;https://github.com/doctrine/dbal/tree/master/lib/Doctrine/DBAL/Driver/OCI8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/tree/master/lib/Doctrine/DBAL/Driver/OCI8&lt;/a&gt;&lt;/p&gt;
</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-56] Ship a compatibility wrapper like MDB2</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-56</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Database Portability is expensive but often necessary. We should support the important Compatibility Layer Options that MDB2 has:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://pear.php.net/manual/en/package.database.mdb2.intro-portability.php&quot; class=&quot;external-link&quot;&gt;http://pear.php.net/manual/en/package.database.mdb2.intro-portability.php&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;The following I think are doable:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Empty to Nulls&lt;/li&gt;
	&lt;li&gt;Change Case of Field-Assocs&lt;/li&gt;
	&lt;li&gt;Oracle RTRIM for Chars&lt;/li&gt;
	&lt;li&gt;Num Rows &quot;hack&quot; for Oracle &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;&lt;/li&gt;
	&lt;li&gt;Delete Count (Some vendors rewrite a DELETE tablename into a TRUNCATE and dont report the delete count)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;There should be a class extending &quot;Doctrine\DBAL\Connection&quot; making use of the &apos;wrapperClass&apos; option. Two new classes are necessary:&lt;/p&gt;

&lt;p&gt;Doctrine\DBAL\Portability\Connection&lt;br/&gt;
Doctrine\DBAL\Portability\Statement&lt;/p&gt;</description>
                <environment></environment>
            <key id="11961">DBAL-56</key>
            <summary>Ship a compatibility wrapper like MDB2</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Sep 2010 14:13:33 +0000</created>
                <updated>Sat, 5 Mar 2011 16:19:21 +0000</updated>
                    <resolved>Sat, 5 Mar 2011 16:19:21 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.1</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15463" author="beberlei" created="Sat, 5 Mar 2011 16:19:21 +0000"  >&lt;p&gt;Implemented.&lt;/p&gt;

&lt;p&gt;To use define the following three parameters:&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;$params = array();
&lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;$params[&apos;wrapperClass&apos;] = &apos;Doctrine\DBAL\Portability\Connection&apos;;
$params[&apos;portability&apos;] = Doctrine\DBAL\Portability\Connection::PORTABILITY_ALL;
$params[&apos;fetch_case&apos;] = \PDO::CASE_LOWER;
$conn = DriverManager::getConnection($params, $config, $evm);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This mode probably hits performance pretty hard,but it allows you to write code that works with all the quirks of fetching values from all database vendors.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-55] Nested transaction emulation doesn&apos;t support rollback inside a nested transaction</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-55</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It seems like beginTransaction() counts transaction nesting levels, but it doesnt set a savepoint when starting a new nesting level, nor does it therefore support rollbacks when rolling back inside a nested transaction. This means that I could call rollback() and it doesnt actually do anything, which imho is a bug.&lt;/p&gt;

&lt;p&gt;The feature of using savepoints to emulate nested transactions properly seems to be present in Doctrine1.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11960">DBAL-55</key>
            <summary>Nested transaction emulation doesn&apos;t support rollback inside a nested transaction</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="lsmith">Lukas Kahwe</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Sep 2010 11:52:54 +0000</created>
                <updated>Fri, 1 Oct 2010 17:56:44 +0000</updated>
                    <resolved>Fri, 1 Oct 2010 17:56:44 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14492" author="lsmith" created="Thu, 30 Sep 2010 03:04:15 +0000"  >&lt;p&gt;ok .. i am working on a patch&lt;/p&gt;</comment>
                    <comment id="14495" author="beberlei" created="Thu, 30 Sep 2010 03:56:51 +0000"  >&lt;p&gt;I guess we need new methods on AbstractPlatform to return the SQL to set, release and rollback a savepoint and then extend the Doctrine\DBAL\Connection to work with that.&lt;/p&gt;</comment>
                    <comment id="14496" author="lsmith" created="Thu, 30 Sep 2010 04:01:03 +0000"  >&lt;p&gt;yup .. thats what i am doing&lt;/p&gt;</comment>
                    <comment id="14498" author="lsmith" created="Thu, 30 Sep 2010 07:37:40 +0000"  >&lt;p&gt;did some initial work: &lt;a href=&quot;http://github.com/lsmith77/dbal/tree/savepoints&quot; class=&quot;external-link&quot;&gt;http://github.com/lsmith77/dbal/tree/savepoints&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;not quite sure about the changes i had to do in the unittest.&lt;br/&gt;
probably should add new unit tests too.&lt;br/&gt;
also there are a couple of questions i have in the connection class&lt;/p&gt;</comment>
                    <comment id="14509" author="beberlei" created="Fri, 1 Oct 2010 17:56:44 +0000"  >&lt;p&gt;merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-53] Missing convertToDatabase-calls when loading and persisting entities</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-53</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;As we use binary encoded UUIDs as primary keys, we sometimes stumbled upon the issue of having incorrect SQL queries executed with unencoded database values. Currently we observed the wrong behavior for the following scenarios:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Deleting entities&lt;/li&gt;
	&lt;li&gt;OneToOne relations&lt;/li&gt;
	&lt;li&gt;OneToMany relations&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I&apos;m pretty sure this bug also exists for OneToMany relations, but we haven&apos;t used them yet.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11926">DBAL-53</key>
            <summary>Missing convertToDatabase-calls when loading and persisting 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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="lstrojny">Lars Strojny</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 Sep 2010 16:41:14 +0000</created>
                <updated>Wed, 15 Sep 2010 17:01:25 +0000</updated>
                    <resolved>Wed, 15 Sep 2010 17:01:25 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14399" author="beberlei" created="Wed, 15 Sep 2010 17:00:31 +0000"  >&lt;p&gt;Duplicate of DBAL-15&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="11436">DDC-1503</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10798" name="001-doctrine-type-conversion-support-for-onetomany.diff" size="1057" author="lstrojny" created="Wed, 15 Sep 2010 16:41:14 +0000" />
                    <attachment id="10799" name="002-doctrine-type-conversion-support-for-onetoone.diff" size="1196" author="lstrojny" created="Wed, 15 Sep 2010 16:41:14 +0000" />
                    <attachment id="10800" name="004-doctrine-type-conversion-support-delete.diff" size="816" author="lstrojny" created="Wed, 15 Sep 2010 16:41:14 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-49] PDOSqlsrv&apos;s constructor breaks when using non &quot;local&quot; server host</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-49</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;h2&gt;&lt;a name=&quot;Problem%3A&quot;&gt;&lt;/a&gt;Problem:&lt;/h2&gt;
&lt;p&gt;Currently, the &lt;b&gt;_constructPdoDsn()&lt;/b&gt; for the &lt;b&gt;PDOSqlsrv&lt;/b&gt; driver works fine only if the host provided is: &lt;b&gt;local&lt;/b&gt; or &lt;b&gt;localhost&lt;/b&gt;.&lt;br/&gt;
If using an IP address, this breaks. Reason is because _constructPdoDsn() applies ( and ) around the host.&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;        $dsn = &apos;sqlsrv:server=(&apos;;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($params[&apos;host&apos;])) {
            $dsn .= $params[&apos;host&apos;];
        }
        $dsn .= &apos;)&apos;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is fine for when $params&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;host&amp;#39;&amp;#93;&lt;/span&gt; = &apos;local&apos;; because I believe local is a name pipe (I think) and to properly use it you need to add the brackets around it&lt;/p&gt;

&lt;p&gt;However if $params&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;host&amp;#39;&amp;#93;&lt;/span&gt; = &apos;127.0.0.1&apos;; this breaks!&lt;/p&gt;


&lt;h2&gt;&lt;a name=&quot;Fix%3A&quot;&gt;&lt;/a&gt;Fix:&lt;/h2&gt;
&lt;p&gt;Get rid of the forced brackets&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;        $dsn = &apos;sqlsrv:server=&apos;;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($params[&apos;host&apos;])) {
            $dsn .= $params[&apos;host&apos;];
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;That way, when supplying &lt;b&gt;local&lt;/b&gt; as a host, you have to enter &lt;b&gt;(local)&lt;/b&gt; (which makes more sense as that&apos;s how you would do it normally in other applications).&lt;/p&gt;</description>
                <environment>Windows 7, Apache 2.1, PHP 5.3.3, Microsoft SQL Server 2008 Enterprise Edition</environment>
            <key id="11892">DBAL-49</key>
            <summary>PDOSqlsrv&apos;s constructor breaks when using non &quot;local&quot; server host</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="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="aarondm">Aaron DM</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Sep 2010 09:59:25 +0000</created>
                <updated>Thu, 23 Sep 2010 15:43:29 +0000</updated>
                    <resolved>Thu, 23 Sep 2010 15:43:29 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14450" author="beberlei" created="Thu, 23 Sep 2010 15:43:29 +0000"  >&lt;p&gt;This is fixed in master.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-47] Incorrect filename -- EchoSqlLogger.php</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-47</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I&apos;ve got error:&lt;br/&gt;
require(/var/www/betportal/dev.betportal.org/application/libraries/Doctrine/DBAL/Logging/EchoSqlLogger.php) &lt;span class=&quot;error&quot;&gt;&amp;#91;function.require&amp;#93;&lt;/span&gt;: failed to open stream: No such file or directory&lt;/p&gt;

&lt;p&gt;Doctrine/DBAL/Logging/EchoSQLLogger.php should be renamed to EchoSqlLogger.php.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11869">DBAL-47</key>
            <summary>Incorrect filename -- EchoSqlLogger.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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="saniok">Alexandr Torchenko</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Sep 2010 05:48:48 +0000</created>
                <updated>Thu, 2 Sep 2010 16:17:25 +0000</updated>
                    <resolved>Thu, 2 Sep 2010 16:17:25 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14248" author="beberlei" created="Thu, 2 Sep 2010 16:17:15 +0000"  >&lt;p&gt;the class is named EchoSQLLogger.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-46] Fix doctrine-dbal console command</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-46</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It still uses Symfony\Components with S.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11867">DBAL-46</key>
            <summary>Fix doctrine-dbal console 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 1 Sep 2010 17:46:15 +0000</created>
                <updated>Thu, 2 Sep 2010 16:13:17 +0000</updated>
                    <resolved>Thu, 2 Sep 2010 16:11:29 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14247" author="beberlei" created="Thu, 2 Sep 2010 16:11:29 +0000"  >&lt;p&gt;fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-45] Add CLI tool that checks for Reserved Keywords</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-45</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Add a CLI tool that checks for reserved keywords in your current schema (for other databases vendors) to support cross vendor portability.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11857">DBAL-45</key>
            <summary>Add CLI tool that checks for Reserved Keywords</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Aug 2010 18:00:11 +0000</created>
                <updated>Sun, 27 Feb 2011 03:45:40 +0000</updated>
                    <resolved>Sun, 27 Feb 2011 03:45:40 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15402" author="beberlei" created="Sun, 27 Feb 2011 03:45:40 +0000"  >&lt;p&gt;Implemented.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                                <inwardlinks description="is referenced by">
                            <issuelink>
            <issuekey id="12431">DBAL-96</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-51] &quot;No identifier/primary key specified for Entity&quot; problem, Doctrine Beta 3 cannot find primary key</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-51</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;when execute&lt;/p&gt;

&lt;p&gt;php doctrine.php &lt;b&gt;orm:convert-mapping&lt;/b&gt; --from-database annotation &quot;Entities&quot;&lt;/p&gt;

&lt;p&gt;get error message&lt;/p&gt;

&lt;p&gt;&lt;b&gt;No identifier/primary key specified for Entity &apos;&lt;cite&gt;Classname(Tablename)&lt;/cite&gt;&apos;. Every Entity must have an identifier/primary key.&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;For resolving this problem&lt;br/&gt;
I&apos;ve replaced the line&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;    public function loadMetadataForClass($className, ClassMetadataInfo $metadata)&lt;br/&gt;
    {&lt;br/&gt;
        ...&lt;br/&gt;
        &lt;font color=&quot;red&quot;&gt;$indexes = $this-&amp;gt;tables&lt;span class=&quot;error&quot;&gt;&amp;#91;$tableName&amp;#93;&lt;/span&gt;-&amp;gt;getIndexes();&lt;/font&gt;&lt;br/&gt;
        ...&lt;br/&gt;
    }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;in function &quot;loadMetadataForClass&quot; in \\Doctrine\ORM\Mapping\Driver\DatabaseDriver.php by&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;    public function loadMetadataForClass($className, ClassMetadataInfo $metadata)&lt;br/&gt;
    {&lt;br/&gt;
        ...&lt;br/&gt;
        &lt;font color=&quot;red&quot;&gt;$indexes = $this-&amp;gt;_sm-&amp;gt;listTableIndexes($tableName);&lt;/font&gt;&lt;br/&gt;
        ...&lt;br/&gt;
    }&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;then the beta 3 works for my date base&lt;/p&gt;

&lt;p&gt;It is because doctrine look for $indexes&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;prime&amp;#39;&amp;#93;&lt;/span&gt; to construit the primary key in entities. when we use &quot;$this-&amp;gt;tables&lt;span class=&quot;error&quot;&gt;&amp;#91;$tableName&amp;#93;&lt;/span&gt;&lt;del&gt;&amp;gt;getIndexes()&quot;, the keys in $indexes are the real name of indexes of the data base, and in my database, the primary key indexes are named PK_TABLENAME. So I have to use $this&lt;/del&gt;&amp;gt;_sm-&amp;gt;listTableIndexes($tableName) to pre-edit the indexes before get the list &lt;/p&gt;</description>
                <environment>windows xp, sql server 2008, php 5.3</environment>
            <key id="11854">DBAL-51</key>
            <summary>&quot;No identifier/primary key specified for Entity&quot; problem, Doctrine Beta 3 cannot find primary key</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="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="minxuan.guo">Minxuan GUO</reporter>
                        <labels>
                    </labels>
                <created>Tue, 31 Aug 2010 08:42:33 +0000</created>
                <updated>Sat, 27 Nov 2010 12:40:23 +0000</updated>
                    <resolved>Sat, 27 Nov 2010 12:40:23 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14393" author="beberlei" created="Wed, 15 Sep 2010 16:29:36 +0000"  >&lt;p&gt;This is an error in the MSSQL SchemaManager, it is not correctly setting the primary = true key in the index retrieve method. I move that issue to DBAL and reassign to juokaz&lt;/p&gt;</comment>
                    <comment id="14733" author="juokaz" created="Sun, 14 Nov 2010 06:55:21 +0000"  >&lt;p&gt;I believe this is now fixed, but I&apos;ll test more &lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php#L118&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MsSqlSchemaManager.php#L118&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14848" author="beberlei" created="Sat, 27 Nov 2010 12:40:23 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-137] Setting empty host in PostgreSQL prevents connection to socket</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-137</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Reported on &lt;a href=&quot;https://github.com/symfony/symfony/issues/1788#issuecomment-1640104&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony/issues/1788#issuecomment-1640104&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12848">DBAL-137</key>
            <summary>Setting empty host in PostgreSQL prevents connection to socket</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Jul 2011 10:33:23 +0000</created>
                <updated>Sun, 24 Jul 2011 10:47:23 +0000</updated>
                    <resolved>Sun, 24 Jul 2011 10:47:23 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-136] OCI8 Driver MUST support connections by SERVICE_NAME</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-136</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The existing oci8 driver connection only supports connections from database name configuraton.&lt;br/&gt;
It will be very good if is possible set a connection by service name.&lt;/p&gt;

&lt;p&gt;Take a look in this DSN:&lt;/p&gt;

&lt;p&gt;(DESCRIPTION=    (ADDRESS=      (PROTOCOL=TCP)      (HOST=192.168.0.1)      (PORT=1521)    )    (CONNECT_DATA=      (SERVICE_NAME=TH01)    )  )&lt;/p&gt;

&lt;p&gt;More info:&lt;br/&gt;
&lt;a href=&quot;http://stackoverflow.com/questions/43866/how-sid-is-different-from-service-name-in-oracle-tnsnames-ora&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/43866/how-sid-is-different-from-service-name-in-oracle-tnsnames-ora&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12835">DBAL-136</key>
            <summary>OCI8 Driver MUST support connections by SERVICE_NAME</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="yourwebmaker">Daniel Lima</reporter>
                        <labels>
                    </labels>
                <created>Tue, 19 Jul 2011 21:25:37 +0000</created>
                <updated>Thu, 18 Aug 2011 20:48:51 +0000</updated>
                    <resolved>Thu, 18 Aug 2011 20:46:49 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                            <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="12887">DBAL-141</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-135] Index::overrules() does not detect pks overruling unique indexes</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-135</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="12750">DBAL-135</key>
            <summary>Index::overrules() does not detect pks overruling unique 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 26 Jun 2011 16:34:56 +0000</created>
                <updated>Sun, 26 Jun 2011 16:35:26 +0000</updated>
                    <resolved>Sun, 26 Jun 2011 16:35:26 +0000</resolved>
                            <version>2.0.6</version>
                                <fixVersion>2.1</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16074" author="beberlei" created="Sun, 26 Jun 2011 16:35:26 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/2cb22496a732029373d98ff9e4d54a7187ee9bb8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/2cb22496a732029373d98ff9e4d54a7187ee9bb8&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-134] Doctrine\DBAL\Connection::query() no logging</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-134</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Doctrine\DBAL\Connection::query() does not use SqlLogger.&lt;/p&gt;

&lt;p&gt;I guess it may be fixed 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;    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function query()
    {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;connect();

        $args = func_get_args();

        $logger = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;getConfiguration()-&amp;gt;getSQLLogger();
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($logger) {
            $logger-&amp;gt;startQuery($args[0]);
        }

        $statement = call_user_func_array(array($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn, &apos;query&apos;), $args);

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($logger) {
            $logger-&amp;gt;stopQuery();
        }

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $statement;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12747">DBAL-134</key>
            <summary>Doctrine\DBAL\Connection::query() no logging</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="chebba">Kirill chEbba Chebunin</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Jun 2011 11:49:05 +0000</created>
                <updated>Tue, 28 Jun 2011 20:47:37 +0000</updated>
                    <resolved>Tue, 28 Jun 2011 20:47:37 +0000</resolved>
                            <version>2.0.6</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16095" author="beberlei" created="Tue, 28 Jun 2011 20:47:37 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-132] wrong mysql dump generation for foreign keys</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-132</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Problem in methods Doctrine\DBAL\Platforms\AbstractPlatform::getDropForeignKeySQL() and Doctrine\DBAL\Platforms\AbstractPlatform::getCreateForeignKeySQL()&lt;/p&gt;

&lt;p&gt;This methods do not receive FK name and don&apos;t put it in sql dump. While executing dump, mysql autogenerate FK names, but at the migration generation moment doctrine knowns nothing about them.&lt;/p&gt;

&lt;p&gt;I think, doctrine must generate this names and put it into the schema.&lt;/p&gt;

&lt;p&gt;Autogenerated migrations in mysql with fk are unusable.&lt;/p&gt;

&lt;p&gt;Doctrine migrations:migrate in current doctrine version:&lt;br/&gt;
up:&lt;br/&gt;
ALTER TABLE Catalog_Field ADD CONSTRAINT FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)&lt;br/&gt;
down:&lt;br/&gt;
ALTER TABLE Catalog_Field DROP FOREIGN KEY&lt;/p&gt;

&lt;p&gt;should be:&lt;br/&gt;
up:&lt;br/&gt;
ALTER TABLE Catalog_Field ADD CONSTRAINT Catalog_Field_ibfk_2 FOREIGN KEY (groupId) REFERENCES Catalog_FieldGroup(id)&lt;br/&gt;
down:&lt;br/&gt;
ALTER TABLE Catalog_Field DROP FOREIGN KEY catalog_Field_ibfk_2&lt;/p&gt;


&lt;p&gt;see: &lt;a href=&quot;https://github.com/doctrine/migrations/issues/32&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/32&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/migrations/issues/35&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/migrations/issues/35&lt;/a&gt;&lt;/p&gt;</description>
                <environment>PHP 5.3.3-7+squeeze1 with Suhosin-Patch, Debian GNU/Linux 6.0.1 (squeeze)&lt;br/&gt;
</environment>
            <key id="12735">DBAL-132</key>
            <summary>wrong mysql dump generation for 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="zerkalica">Stefan Zerkalica</reporter>
                        <labels>
                    </labels>
                <created>Wed, 22 Jun 2011 08:05:39 +0000</created>
                <updated>Sun, 31 Jul 2011 12:10:53 +0000</updated>
                    <resolved>Sun, 31 Jul 2011 12:10:53 +0000</resolved>
                            <version>2.0.5</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16253" author="beberlei" created="Sun, 31 Jul 2011 12:10:53 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-130] Add tests for modify limit query functionality</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-130</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="12722">DBAL-130</key>
            <summary>Add tests for modify limit query functionality</summary>
                <type id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/subtask_alternate.png">Sub-task</type>
                    <parent id="12395">DBAL-93</parent>
                        <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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Jun 2011 19:12:11 +0000</created>
                <updated>Fri, 17 Jun 2011 21:20:28 +0000</updated>
                    <resolved>Fri, 17 Jun 2011 21:20:28 +0000</resolved>
                                            <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-128] Additional types are not registered in the platforms when creating a connection</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-128</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;New types have to be registered in the platforms using registerDoctrineMappingType but the driver does not call this for type that are registered using Type::addType&lt;br/&gt;
This issue has been reported by some Symfony user here &lt;a href=&quot;https://github.com/symfony/symfony/issues/1349&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony/issues/1349&lt;/a&gt; but the bug is indeed in DBAL.&lt;/p&gt;

&lt;p&gt;Btw, this also affects the master branch but this project does not allow to select it (the ORM project does)&lt;/p&gt;</description>
                <environment></environment>
            <key id="12719">DBAL-128</key>
            <summary>Additional types are not registered in the platforms when creating a 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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Thu, 16 Jun 2011 19:50:37 +0000</created>
                <updated>Thu, 16 Jun 2011 20:20:31 +0000</updated>
                    <resolved>Thu, 16 Jun 2011 19:57:54 +0000</resolved>
                            <version>2.0.5</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15999" author="beberlei" created="Thu, 16 Jun 2011 19:57:54 +0000"  >&lt;p&gt;This is not a &quot;bug&quot;. This methods have to called indepdentatly.&lt;/p&gt;</comment>
                    <comment id="16000" author="stof" created="Thu, 16 Jun 2011 20:00:40 +0000"  >&lt;p&gt;When I asked you about this some times ago for the DoctrineBundle integration, you told me that calling Type:addType was enough&lt;/p&gt;</comment>
                    <comment id="16001" author="beberlei" created="Thu, 16 Jun 2011 20:20:31 +0000"  >&lt;p&gt;cant remember, i must have been tired sorry &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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-126] schema-tool creates primary keys as unique constraints</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-126</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The schema tool calls AbstractPlatform::getCreateIndexSQL() to create new indexes. When the index is primary, this creates a unique key instead.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12704">DBAL-126</key>
            <summary>schema-tool creates primary keys as unique 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="arnaud-lb">arnaud-lb</reporter>
                        <labels>
                    </labels>
                <created>Thu, 9 Jun 2011 12:21:00 +0000</created>
                <updated>Sun, 26 Jun 2011 11:22:54 +0000</updated>
                    <resolved>Sun, 26 Jun 2011 11:22:54 +0000</resolved>
                            <version>2.0.5</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16062" author="k-fish" created="Sat, 25 Jun 2011 09:40:26 +0000"  >&lt;p&gt;While the description here is very sparse, I think it is about the following problem.&lt;/p&gt;

&lt;p&gt;When a primary key is to be created for MySQL, the statement generated is&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ADD UNIQUE INDEX PRIMARY ON foo (bar)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;This fails with MySQL stating primary is an invalid name. Since &quot;ADD INDEX&quot; is mapped to &quot;ALTER TABLE&quot; anyway, I just made that&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE foo ADD PRIMARY KEY (bar)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;which works fine. Also&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;DROP INDEX primary ON foo&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;doesn&apos;t work, unless I quote primary (since it is a reserved word), but there&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ALTER TABLE foo DROP PRIMARY KEY&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;seems better as well.&lt;/p&gt;</comment>
                    <comment id="16070" author="beberlei" created="Sun, 26 Jun 2011 11:22:54 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-120] MySql platform getAlterTableSQL does not quote existing column names</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-120</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When creating alter table SQL, the MySqlPlatform class does not quote names for columns of an existing table when building a CHANGE query.  This can cause SQL errors.&lt;/p&gt;

&lt;p&gt;It creates queries like this:&lt;/p&gt;

&lt;p&gt;ALTER TABLE my_table CHANGE key `key` INTVARCHAR(255) DEFAULT &apos;&apos; NOT NULL&apos;;&lt;/p&gt;


&lt;p&gt;Attached is a patch to fix this.&lt;/p&gt;

&lt;p&gt;As an aside, is this the best way to contribute a patch?  Or is a GitHub pull request better?&lt;/p&gt;</description>
                <environment></environment>
            <key id="12636">DBAL-120</key>
            <summary>MySql platform getAlterTableSQL does not quote existing column names</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="deweller">Devon Weller</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 May 2011 21:56:35 +0000</created>
                <updated>Sun, 19 Jun 2011 09:46:39 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 09:46:39 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.0.4</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15839" author="deweller" created="Fri, 13 May 2011 22:13:00 +0000"  >&lt;p&gt;I also discovered a similar issue with key names.  A second patch is attached.&lt;/p&gt;</comment>
                    <comment id="16027" author="beberlei" created="Sun, 19 Jun 2011 09:46:39 +0000"  >&lt;p&gt;This problem is a little more complicated, it will be fixed in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-96&quot; title=&quot;Make approach towards identifier quoting consistent&quot;&gt;DBAL-96&lt;/a&gt; probably for 2.2&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="12431">DBAL-96</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10992" name="quote-mysql-change-colname.patch" size="966" author="deweller" created="Fri, 13 May 2011 21:56:35 +0000" />
                    <attachment id="10993" name="quote-mysql-change-keyname.patch" size="650" author="deweller" created="Fri, 13 May 2011 22:13:28 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-119] Outdated Console component</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-119</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The DBAL submodule uses an outdated version of the Console component (before the switch to private properties). But the Migrations project defines its command using the latest interface which means that it cannot be used with the DBAL out-of-the-box as it calls the getApplication method which does not exist in the old version of the component.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12632">DBAL-119</key>
            <summary>Outdated Console component</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="stof">Christophe Coevoet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 May 2011 22:51:24 +0000</created>
                <updated>Sat, 14 May 2011 06:26:41 +0000</updated>
                    <resolved>Sat, 14 May 2011 06:26:41 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15842" author="beberlei" created="Sat, 14 May 2011 06:26:41 +0000"  >&lt;p&gt;Fixed for 2.0.x aswell&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-118] When speaking about security do not rely on default link in mysql_*  function calls</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-118</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The documentation about escaping reads:&lt;/p&gt;

&lt;p&gt;&quot;Consider the previous query, now parameterized to fetch only a single article by id. Using ext/mysql (still the primary choice of MySQL access for many developers) you had to escape every value passed into the query using mysql_real_escape_string() to avoid SQL injection:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;br/&gt;
$sql = &quot;SELECT * FROM articles WHERE id = &apos;&quot; . mysql_real_escape_string($id) . &quot;&apos;&quot;;&lt;br/&gt;
$rs = mysql_query($sql);&quot;,&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/docs/dbal/2.0/en/reference/data-retrieval-and-manipulation.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/dbal/2.0/en/reference/data-retrieval-and-manipulation.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please, do not rely on MySQL default links when discussing security issues. One of major differences between the mysql and the later mysqli extension is that mysqli forces users to explicitly specify a connection handle. There is no concept of default links and magical global connection handles in mysqli any more. The convenience of not having to specify a connection handle has been removed from mysqli. This was done to increase security, for example, when escaping strings. Escaping needs to take the current charset of the connection into account. Thus, it is recommended to explicitly specify the connection and so not use default connection.&lt;/p&gt;

&lt;p&gt;&quot;string mysql_real_escape_string ( string $unescaped_string &lt;span class=&quot;error&quot;&gt;&amp;#91;, resource $link_identifier &amp;#93;&lt;/span&gt; )&quot;,&lt;br/&gt;
&lt;a href=&quot;http://de.php.net/mysql_real_escape_string&quot; class=&quot;external-link&quot;&gt;http://de.php.net/mysql_real_escape_string&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Please, change the example:&lt;/p&gt;

&lt;p&gt;&amp;lt;?php&lt;br/&gt;
$sql = &quot;SELECT * FROM articles WHERE id = &apos;&quot; . mysql_real_escape_string($id, $link) . &quot;&apos;&quot;;&lt;br/&gt;
$rs = mysql_query($sql);&quot;,&lt;/p&gt;

&lt;p&gt;($link added)&lt;/p&gt;

&lt;p&gt;Thanks!&lt;/p&gt;

</description>
                <environment></environment>
            <key id="12628">DBAL-118</key>
            <summary>When speaking about security do not rely on default link in mysql_*  function calls</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</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="nixnutz">Ulf Wendel</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 May 2011 12:38:35 +0000</created>
                <updated>Sat, 14 May 2011 06:20:30 +0000</updated>
                    <resolved>Sat, 14 May 2011 06:20:30 +0000</resolved>
                                            <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15841" author="beberlei" created="Sat, 14 May 2011 06:20:30 +0000"  >&lt;p&gt;Changed, the new docs will be rolled up sometime this weekend.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-115] SchemaManager doesn&apos;t quote table names for MySQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-115</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Using a reserved word as a table name only works for schema creation not dropping.&lt;/p&gt;

&lt;p&gt;Example Enity:&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Entity&lt;/li&gt;
	&lt;li&gt;@Table(name=&quot;`call`&quot;)&lt;br/&gt;
 */&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;class Call {&lt;br/&gt;
	/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@Column(name=&quot;id&quot;, type=&quot;integer&quot;, nullable=false)&lt;/li&gt;
	&lt;li&gt;@Id&lt;/li&gt;
	&lt;li&gt;@GeneratedValue(strategy=&quot;IDENTITY&quot;)&lt;/li&gt;
	&lt;li&gt;@var integer $id&lt;br/&gt;
	 */&lt;br/&gt;
	private $id;&lt;br/&gt;
}&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;The table name is quoted. creation works, dropping doesn&apos;t even after changing the table name to a not reserved word.&lt;/p&gt;</description>
                <environment>Linux Kernel 2.6.38&lt;br/&gt;
MySQL 5.5.11&lt;br/&gt;
PHP 5.3.6</environment>
            <key id="12591">DBAL-115</key>
            <summary>SchemaManager doesn&apos;t quote table names for 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="zoran.zaric">Zoran Zaric</reporter>
                        <labels>
                    </labels>
                <created>Thu, 28 Apr 2011 13:03:19 +0000</created>
                <updated>Sun, 19 Jun 2011 09:47:01 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 09:47:01 +0000</resolved>
                            <version>2.0.4</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16028" author="beberlei" created="Sun, 19 Jun 2011 09:47:01 +0000"  >&lt;p&gt;This problem is a little more complicated, it will be fixed in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-96&quot; title=&quot;Make approach towards identifier quoting consistent&quot;&gt;DBAL-96&lt;/a&gt; probably for 2.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-112] Sequence alteration does not alter.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-112</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>
&lt;p&gt;When the schema diff decides there are differences between the existing SEQUENCE and the &quot;new&quot; one it alters the SEQUENCE by a DROP and then a CREATE.&lt;/p&gt;

&lt;p&gt;The CREATE is done with the fromSchema as a base which results in a no-changed SEQUENCE. &lt;/p&gt;

&lt;p&gt;Line 102 in Doctrine/DBAL/Schema/Comparator.php  uses fromSchema but shuld have been using toSchema or just $sequence&lt;/p&gt;

&lt;p&gt;This will fix the immediate issue but still require the sequence name being the same.&lt;/p&gt;</description>
                <environment>Linux &amp;amp; Postgesql</environment>
            <key id="12579">DBAL-112</key>
            <summary>Sequence alteration does not alter.</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="thomasez">Thomas Lundquist</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Apr 2011 06:05:38 +0000</created>
                <updated>Sun, 19 Jun 2011 09:33:42 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 09:33:42 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.1</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16025" author="beberlei" created="Sun, 19 Jun 2011 09:33:42 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-110] No way to get platform specific values from old schema to schema create sql</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-110</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Even if I create custom types to support non-default types in Mysql (enum,set) I cant get the values from the schema manager to the type object due to encapsulation:&lt;/p&gt;

&lt;p&gt;type declaration&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
use Doctrine\DBAL\Types\Type;&lt;br/&gt;
use Doctrine\DBAL\Platforms\AbstractPlatform;&lt;/p&gt;

&lt;p&gt;class EnumType extends Type&lt;br/&gt;
{&lt;br/&gt;
	const MYTYPE = &apos;Enum&apos;; /&lt;br/&gt;
	public function getSqlDeclaration(array $fieldDeclaration, AbstractPlatform $platform)&lt;/p&gt;
	{
		return &quot;ENUM(HERE IS THE PROBLEM)&quot;;
	}

&lt;p&gt;	public function getName()&lt;/p&gt;
	{
		return self::MYTYPE;
	}

&lt;p&gt;}&lt;br/&gt;
?&amp;gt;&lt;/p&gt;

&lt;p&gt;db connection construction:&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
//...&lt;/p&gt;

&lt;p&gt;\Doctrine\DBAL\Types\Type::addType(&apos;enum&apos;, &apos;CustomTypes\EnumType&apos;);&lt;br/&gt;
$conn-&amp;gt;getDatabasePlatform()-&amp;gt;registerDoctrineTypeMapping(&apos;enum&apos;, &apos;enum&apos;);&lt;/p&gt;

&lt;p&gt;?&amp;gt;&lt;/p&gt;

&lt;p&gt;There is no way to create even an extension to better support mysql databases, and since its a pretty commonly used rdbms this issue lowers the value of Doctrine2 for mysql (since you get errors by going by the reference guide).&lt;/p&gt;

&lt;p&gt;related issues:&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-4&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-4&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-89&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-89&lt;/a&gt;&lt;/p&gt;
</description>
                <environment>ubuntu 10.10 with php 5.3.3</environment>
            <key id="12561">DBAL-110</key>
            <summary>No way to get platform specific values from old schema to schema create sql</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="pejot">Peter Jasiulewicz</reporter>
                        <labels>
                    </labels>
                <created>Wed, 13 Apr 2011 10:14:32 +0000</created>
                <updated>Wed, 13 Apr 2011 13:12:48 +0000</updated>
                    <resolved>Wed, 13 Apr 2011 10:45:52 +0000</resolved>
                            <version>2.0.4</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15726" author="beberlei" created="Wed, 13 Apr 2011 10:45:45 +0000"  >&lt;p&gt;MySQL is a common database yes, people tend to use enums yes, but enums suck! They have tons of disadvantages that far outweight the simple benefit.&lt;/p&gt;

&lt;p&gt;There is just no way to create a generic Enum type and never will be, you can only create one enum type per class of values as described here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/cookbook/mysql-enums.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/cookbook/mysql-enums.html&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15728" author="pejot" created="Wed, 13 Apr 2011 11:11:04 +0000"  >&lt;p&gt;Yes I understad that ENUMs aren&apos;t the best possible but since enums are internally represented as numbers not strings &quot;Solution 1: Mapping to Varchars&quot; makes it even worse and can result in making a database huge and slow, and botch solutions with &quot;Solution 2: Defining a Type&quot; pretty much renders DBAL schema tools and Migrations useless (which is the main part I wanted to use)&lt;/p&gt;

&lt;p&gt;I&apos;m not saying that you should follow bad practices but if Doctrine wats to be a mature tool it should be also be highly extensible. Currently it just lacks the capability to truly abstract the thing it was written to be an abstraction layer of.&lt;/p&gt;

&lt;p&gt;cheers,&lt;br/&gt;
Peter&lt;/p&gt;</comment>
                    <comment id="15729" author="beberlei" created="Wed, 13 Apr 2011 12:17:57 +0000"  >&lt;p&gt;Types are flyweight instances, this makes enum support impossible. So the choice for us was, have a highly customizable type system that doesnt support enums, or throw performance to hell. We picked one.&lt;/p&gt;

&lt;p&gt;DBAL and Migrations firstly serve the ORM, then ship with their own features, SchemaTool was never designed to support every legacy application out there.&lt;/p&gt;

&lt;p&gt;Btw: Mapping to varchars does not make the the database huge and slow, using columnDefinition this would still be a real ENUM. Just doctrine thinks its a string (aka varchar).&lt;/p&gt;</comment>
                    <comment id="15730" author="pejot" created="Wed, 13 Apr 2011 13:12:36 +0000"  >&lt;p&gt;Thanks for expalining, still I wanted to use it mainly as a schema creation/comparator tool so this does&apos;nt help much. Will migrate to doctrine when the project has matured.&lt;/p&gt;

&lt;p&gt;Cheers,&lt;br/&gt;
Peter&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-121] Mapping, decimal returns float.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-121</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a Doctrine 2 entity and the value is mapped like this (with regular getter/setter):&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; 
/**
 * @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;decimal&quot;&lt;/span&gt;, precision=40, scale=30)
 */
&lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $someValue;

/**
 * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; decimal
 */
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getSomeValue()
{
    &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;someValue;
}

/**
 * @param decimal $someValue
 */
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setSomeValue($someValue)
{
    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;someValue = $someValue;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;When I set that value from my code, the value gets written into the database correctly. But, and that is my problem, when I get the value (via getter or \Doctrine\Common\Util\Debug::dump()), it always gives me a number with maximum 14 digits, and it rounds the value. I read the record with the default findById().&lt;/p&gt;

&lt;p&gt;eg: with value 1234567890.012345678901234567890123456789 I have 1234567890.0123&lt;br/&gt;
eg: with value 890.0123456789012345678901234567890123456 I have 890.01234567890&lt;/p&gt;

&lt;p&gt;I of course want all digits, not just 14. The field in MySQL is declared 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; 
    someValue decimal(40,30) NOT NULL,
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt; 

&lt;p&gt;When I get the value with raw PHP and mysql_query(), it returns correctly.&lt;/p&gt;

&lt;p&gt;It seems like the problem is that Doctrine returns a float: &lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;quot;someValue&amp;quot;:protected&amp;#93;&lt;/span&gt;=&amp;gt; float(234567890.01235)&lt;/p&gt;

&lt;p&gt;What&apos;s wrong, what should I check next, how to fix, any clues?&lt;br/&gt;
(also posted on &lt;a href=&quot;http://stackoverflow.com/questions/5635500/doctrine-2-decimal-can-only-contain-14-digits&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/5635500/doctrine-2-decimal-can-only-contain-14-digits&lt;/a&gt;)&lt;/p&gt;</description>
                <environment>Linux Ubuntu 10.10 x86_64, PHP 5.3.3-1ubuntu9.3, mysql  Ver 14.14 Distrib 5.1.49</environment>
            <key id="12556">DBAL-121</key>
            <summary>Mapping, decimal returns float.</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="tvlooy">Tom Van Looy</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Apr 2011 09:24:17 +0000</created>
                <updated>Sat, 14 May 2011 10:23:46 +0000</updated>
                    <resolved>Sat, 14 May 2011 10:23:46 +0000</resolved>
                            <version>2.0.3</version>
                                <fixVersion>2.0.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15724" author="beberlei" created="Tue, 12 Apr 2011 10:12:29 +0000"  >&lt;p&gt;ah yes, this is a bug.&lt;/p&gt;</comment>
                    <comment id="15851" author="beberlei" created="Sat, 14 May 2011 10:23:46 +0000"  >&lt;p&gt;fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-107] Graphviz Schema Visitor</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-107</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;We should include a Graphviz Schema Visitor.&lt;/p&gt;

&lt;p&gt;Features:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Display Tables and Columns&lt;/li&gt;
	&lt;li&gt;Highlight Primary Keys&lt;/li&gt;
	&lt;li&gt;Connect tables through foreign keys&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="12546">DBAL-107</key>
            <summary>Graphviz Schema Visitor</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 7 Apr 2011 16:13:26 +0000</created>
                <updated>Thu, 7 Apr 2011 17:32:45 +0000</updated>
                    <resolved>Thu, 7 Apr 2011 17:32:45 +0000</resolved>
                                            <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15712" author="beberlei" created="Thu, 7 Apr 2011 17:32:45 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-92] Timezones of DateTime instances are ignored when persisting dates</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-92</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When a DateTime instance, e.g. &quot;2011-02-16 00:00:00 America/New_York&quot; is written into the DB, the timezone is ignored and only &quot;2011-02-16&quot; is persisted. When fetching the date, it is written into a DateTime with the server&apos;s timezone, resulting in for example &quot;2011-02-16 00:00:00 Europe/Berlin&quot; which is not correct!&lt;/p&gt;

&lt;p&gt;To fix this issue, Doctrine should convert dates to the server&apos;s timezone (if their own timezone differs) before persisting them or before executing queries containing DateTime instances.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12394">DBAL-92</key>
            <summary>Timezones of DateTime instances are ignored when persisting 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="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="bschussek">Bernhard Schussek</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Feb 2011 07:46:31 +0000</created>
                <updated>Sat, 26 Feb 2011 10:18:59 +0000</updated>
                    <resolved>Sat, 26 Feb 2011 10:18:59 +0000</resolved>
                            <version>2.0.1</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15392" author="beberlei" created="Sat, 26 Feb 2011 10:18:59 +0000"  >&lt;p&gt;This would magically change the state of any DateTime instance upon &quot;convertToDatabaseValue&quot;, i think this would be equally weird so better no changes at all.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-88] MySqlPlatform not escaping table names</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-88</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Methods in the MySql Platform that use the table name are not escaping the table name.  This causes problems when your table name is the same as a reserved word in MySql.  Example:&lt;/p&gt;


&lt;p&gt;    public function getListTableConstraintsSQL($table)&lt;/p&gt;
    {
        return &apos;SHOW INDEX FROM &apos; . $table;
    }

&lt;p&gt;If my table name is User this method will fail and cause a SQL error because the word User is a reserved word in MySql.  You need to escape the table name with backticks to prevent these errors.  Example:&lt;/p&gt;


&lt;p&gt;    public function getListTableConstraintsSQL($table)&lt;/p&gt;
    {
        return &apos;SHOW INDEX FROM `&apos; . $table . &apos;`&apos;;
    }

&lt;p&gt;I encountered this problem while reverse engineering my existing MySql database.  I&apos;ve attached a fixed version that solved my reverse engineering problems.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12373">DBAL-88</key>
            <summary>MySqlPlatform not escaping table names</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="jreed">James Reed</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2011 16:37:36 +0000</created>
                <updated>Sat, 26 Feb 2011 15:56:34 +0000</updated>
                    <resolved>Sat, 26 Feb 2011 15:56:34 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15277" author="beberlei" created="Fri, 11 Feb 2011 17:14:11 +0000"  >&lt;p&gt;Duplicate of DDC-976&lt;/p&gt;</comment>
                    <comment id="15288" author="beberlei" created="Sat, 12 Feb 2011 14:40:59 +0000"  >&lt;p&gt;This issue is not a duplicate, only related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-91&quot; title=&quot;orm:convert-mapping SchemaException on Postgres reserved words&quot;&gt;&lt;del&gt;DBAL-91&lt;/del&gt;&lt;/a&gt;.&lt;/p&gt;</comment>
                    <comment id="15398" author="beberlei" created="Sat, 26 Feb 2011 15:56:34 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="12290">DBAL-91</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10936" name="MySqlPlatform.php" size="20047" author="jreed" created="Thu, 10 Feb 2011 16:37:37 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-89] MySqlPlatform does not handle enum  and set data types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-89</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If you do a reverse engineer of an existing database that includes enum and set columns the reverse engineer will fail.  Ideally there could be a separate Doctrine type for these fields, but at a minimum it seems they should be treated as string values.  I solved my reverse engineering problem by modifying the initializeDoctrineTypeMappings in the MySqlPlatform.php file (attached):&lt;/p&gt;

&lt;p&gt;    protected function initializeDoctrineTypeMappings()&lt;/p&gt;
    {
        $this-&amp;gt;doctrineTypeMapping = array(
            &apos;tinyint&apos;       =&amp;gt; &apos;boolean&apos;,
            &apos;smallint&apos;      =&amp;gt; &apos;smallint&apos;,
            &apos;mediumint&apos;     =&amp;gt; &apos;integer&apos;,
            &apos;int&apos;           =&amp;gt; &apos;integer&apos;,
            &apos;integer&apos;       =&amp;gt; &apos;integer&apos;,
            &apos;bigint&apos;        =&amp;gt; &apos;bigint&apos;,
            &apos;tinytext&apos;      =&amp;gt; &apos;text&apos;,
            &apos;mediumtext&apos;    =&amp;gt; &apos;text&apos;,
            &apos;longtext&apos;      =&amp;gt; &apos;text&apos;,
            &apos;text&apos;          =&amp;gt; &apos;text&apos;,
            &apos;varchar&apos;       =&amp;gt; &apos;string&apos;,
            &apos;string&apos;        =&amp;gt; &apos;string&apos;,
            &apos;char&apos;          =&amp;gt; &apos;string&apos;,
            &apos;date&apos;          =&amp;gt; &apos;date&apos;,
            &apos;datetime&apos;      =&amp;gt; &apos;datetime&apos;,
            &apos;timestamp&apos;     =&amp;gt; &apos;datetime&apos;,
            &apos;time&apos;          =&amp;gt; &apos;time&apos;,
            &apos;float&apos;         =&amp;gt; &apos;float&apos;,
            &apos;double&apos;        =&amp;gt; &apos;float&apos;,
            &apos;real&apos;          =&amp;gt; &apos;float&apos;,
            &apos;decimal&apos;       =&amp;gt; &apos;decimal&apos;,
            &apos;numeric&apos;       =&amp;gt; &apos;decimal&apos;,
            &apos;year&apos;          =&amp;gt; &apos;date&apos;,
            &apos;enum&apos;          =&amp;gt; &apos;string&apos;,
            &apos;set&apos;           =&amp;gt; &apos;string&apos;,
        );
    }</description>
                <environment></environment>
            <key id="12374">DBAL-89</key>
            <summary>MySqlPlatform does not handle enum  and set data 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="2">Won&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jreed">James Reed</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Feb 2011 16:42:18 +0000</created>
                <updated>Thu, 10 Feb 2011 17:45:05 +0000</updated>
                    <resolved>Thu, 10 Feb 2011 17:07:26 +0000</resolved>
                            <version>2.0</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15247" author="beberlei" created="Thu, 10 Feb 2011 17:07:26 +0000"  >&lt;p&gt;There is a method on the platform &quot;regsiterDoctrineMappingType&quot; that modifies this array.&lt;/p&gt;

&lt;p&gt;Enums and Sets cannot be generically supported by architectural choice.&lt;/p&gt;</comment>
                    <comment id="15248" author="jreed" created="Thu, 10 Feb 2011 17:40:32 +0000"  >&lt;p&gt;Ah, didn&apos;t know about the regsiterDoctrineMappingType.  Good solution.  Thanks!&lt;/p&gt;</comment>
                    <comment id="15249" author="jreed" created="Thu, 10 Feb 2011 17:45:05 +0000"  >&lt;p&gt;Actually, after searching the code the method is &quot;registerDoctrineTypeMapping&quot;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10937" name="MySqlPlatform.php" size="20047" author="jreed" created="Thu, 10 Feb 2011 16:42:18 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-85] Illegal quotes in SHOW FULL TABLES WHERE Table_type = &quot;BASE TABLE&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-85</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When trying to generate update SQL on MySQL running in ANSI SQL mode you get the 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;BASE TABLE&apos; in &apos;where clause&apos;&lt;/p&gt;

&lt;p&gt;This is caused by the use of identifier quotes (&quot;) instead of literal quotes (&apos;) in the query&lt;br/&gt;
 SHOW FULL TABLES WHERE Table_type = &quot;BASE TABLE&quot;&lt;/p&gt;

&lt;p&gt;This is in MySqlPlatform#getListTablesSQL()&lt;/p&gt;</description>
                <environment></environment>
            <key id="12356">DBAL-85</key>
            <summary>Illegal quotes in SHOW FULL TABLES WHERE Table_type = &quot;BASE TABLE&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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Feb 2011 07:26:38 +0000</created>
                <updated>Fri, 11 Feb 2011 16:34:15 +0000</updated>
                    <resolved>Fri, 11 Feb 2011 16:34:15 +0000</resolved>
                                            <fixVersion>2.0.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15236" author="rroor" created="Mon, 7 Feb 2011 11:01:47 +0000"  >&lt;p&gt;Here is a temporary dirty patch for this problem. ONLY FOR TESTING PURPOSE!!!&lt;/p&gt;</comment>
                    <comment id="15237" author="k-fish" created="Tue, 8 Feb 2011 04:25:41 +0000"  >&lt;p&gt;Why not simply change MySqlPlatform#getListTablesSQL()?&lt;/p&gt;</comment>
                    <comment id="15238" author="rroor" created="Tue, 8 Feb 2011 04:44:37 +0000"  >&lt;p&gt;Because did this quick and dirty patch before i read this issue. Actually i&apos;ve attached a better one,&lt;/p&gt;</comment>
                    <comment id="15242" author="k-fish" created="Wed, 9 Feb 2011 04:04:04 +0000"  >&lt;p&gt;With this change it works for me.&lt;/p&gt;</comment>
                    <comment id="15273" author="beberlei" created="Fri, 11 Feb 2011 16:34:15 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12361">DDC-1019</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10934" name="base_table.patch" size="539" author="rroor" created="Tue, 8 Feb 2011 05:18:39 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-84] Long string fields are being silently changed to 255 characters in the schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-84</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have an entity like this:&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;/**
 * @orm:Entity
 */
class Product
{
    /**
     * @orm:Id
     * @orm:Column(name=&quot;Merchant&quot;,type=&quot;string&quot;,length=50)
     */
    protected $merchant;

    /**
     * @orm:Column(name=&quot;Name&quot;,type=&quot;string&quot;,length=500)
     */
    protected $name;
}&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I change the length of $name field to 4000 it updates the schema like it is supposed to:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;php.exe -f console doctrine:schema:update --dump-sql&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;ALTER TABLE product CHANGE Name Name VARCHAR(4000) NOT NULL&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;But when I change the length to 5000 it just silently without any warning uses value 255 instead:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;php.exe -f console doctrine:schema:update --dump-sql&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;ALTER TABLE product CHANGE Name Name VARCHAR(&lt;font color=&quot;red&quot;&gt;255&lt;/font&gt;) NOT NULL&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;I had to look into actual table definition using mysql browser to find this issue because doctrine doesn&apos;t even warn about it. This could lead to some pretty serious bugs!&lt;/p&gt;</description>
                <environment></environment>
            <key id="12339">DBAL-84</key>
            <summary>Long string fields are being silently changed to 255 characters in the 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="extesy">Oleg Anashkin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Jan 2011 17:19:37 +0000</created>
                <updated>Sun, 20 Feb 2011 17:13:00 +0000</updated>
                    <resolved>Sun, 20 Feb 2011 17:13:00 +0000</resolved>
                            <version>2.0</version>
                <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15354" author="beberlei" created="Sun, 20 Feb 2011 17:13:00 +0000"  >&lt;p&gt;Fixed in master and 2.0.x&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-83] BigInt Type is returning string instead of integer</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-83</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I ran all tests with PostgreSQL and I got an 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;1) Doctrine\Tests\DBAL\Functional\TypeConversionTest::testIdempotentDataConversion with data set #3 (&apos;bigint&apos;, 12345678, &apos;string&apos;)
The expected type from the conversion to and back from the database should be string
Failed asserting that &amp;lt;integer:12345678&amp;gt; is of type &lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;.

/usr/share/php/Doctrine2/dbal/tests/Doctrine/Tests/DBAL/Functional/TypeConversionTest.php:84

FAILURES!
Tests: 367, Assertions: 745, Failures: 1, Skipped: 8.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The BigInt Type is missing convertToPHPValue() method and returns string instead of int. I fixed this and also I fixed the test case for this. Patch will be availabe via github pull request.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12332">DBAL-83</key>
            <summary>BigInt Type is returning string instead of 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="2">Won&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Fri, 28 Jan 2011 07:50:47 +0000</created>
                <updated>Sat, 14 May 2011 07:26:50 +0000</updated>
                    <resolved>Sat, 14 May 2011 07:26:50 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15846" author="beberlei" created="Sat, 14 May 2011 07:26:50 +0000"  >&lt;p&gt;Bigints have to be strings for int overflow reasons. PostgreSQL seems to detect 64 vs 32bit systems and casts correctly, this is unfortunate for the tests, i have to come up with a workdaround for this &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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-82] orderBy(), setFirstResult() bug with MSSQL Server</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-82</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;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;QueryBuilder&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;		$query = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;createQueryBuilder(&apos;account&apos;)
					  -&amp;gt;select(&apos;account&apos;)
					  -&amp;gt;orderBy(&apos;account.id&apos;, &apos;DESC&apos;)
					  -&amp;gt;getQuery();

                $result = $query-&amp;gt;setMaxResults($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;resultsPerPage+1)
        							-&amp;gt;setFirstResult($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;offset)
        							-&amp;gt;getResult();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The above, when using &quot;setFirstResult&quot; and &quot;orderBy&quot; (like that), results in an error like so:&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;SQLSTATE[42000]: [Microsoft][SQL Server Native Client 10.0][SQL Server]The multi-part identifier &lt;span class=&quot;code-quote&quot;&gt;&quot;t0_.id&quot;&lt;/span&gt; could not be bound.&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With a statement that looks something like so:&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;WITH outer_tbl AS (SELECT ROW_NUMBER() OVER (ORDER BY t0_.id DESC) AS &lt;span class=&quot;code-quote&quot;&gt;&quot;doctrine_rownum&quot;&lt;/span&gt;,   ...&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The reason the error is occurring is because you apparently need to use the &quot;alias&quot; (e.g, SELECT t0_.id AS id0) &quot;id0&quot; in the &quot;ORDER BY&quot; clause.&lt;/p&gt;

&lt;p&gt;So query will run with no problems if t0_.id as id0&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;WITH outer_tbl AS (SELECT ROW_NUMBER() OVER (ORDER BY id0 DESC) AS &lt;span class=&quot;code-quote&quot;&gt;&quot;doctrine_rownum&quot;&lt;/span&gt;,   ...&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;It looks like this behavior might only occur with Microsoft SQL Server, but it is a bug.&lt;/p&gt;

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

&lt;p&gt;If you 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;Obviously this is a really ugly hack, but this resolves it.&lt;/p&gt;</description>
                <environment>Windows 7, Apache2, PHP 5.3.5, Microsoft SQL Server 2008</environment>
            <key id="12306">DBAL-82</key>
            <summary>orderBy(), setFirstResult() bug with MSSQL 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>
                                <assignee username="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="aarondm">Aaron DM</reporter>
                        <labels>
                    </labels>
                <created>Sun, 16 Jan 2011 13:34:04 +0000</created>
                <updated>Sun, 31 Jul 2011 10:20:54 +0000</updated>
                    <resolved>Sun, 31 Jul 2011 10:20:54 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.7</fixVersion>
                <fixVersion>2.1.1</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="15146" author="aarondm" created="Sun, 16 Jan 2011 14:09:16 +0000"  >&lt;p&gt;Added the ugly hack fix.&lt;/p&gt;</comment>
                    <comment id="15172" author="beberlei" created="Sun, 23 Jan 2011 14:29:05 +0000"  >&lt;p&gt;Assigned to Juozas.&lt;/p&gt;</comment>
                    <comment id="15807" author="minxuan.guo" created="Thu, 5 May 2011 07:53:21 +0000"  >&lt;p&gt;Thanks Aaron DM&lt;/p&gt;

&lt;p&gt;Your code works perfectly&lt;/p&gt;</comment>
                    <comment id="16033" author="jmfontaine" created="Mon, 20 Jun 2011 08:54:27 +0000"  >&lt;p&gt;I am experiencing this bug too. Is there a way to get it fixed anytime soon? Maybe in the 2.1 release.&lt;/p&gt;</comment>
                    <comment id="16052" author="aarondm" created="Fri, 24 Jun 2011 18:50:21 +0000"  >&lt;p&gt;Here is what I think, a proper fix for this.&lt;/p&gt;

&lt;p&gt;I re-wrote the query however it works the same and is pretty much the exact same in performance (from couple of tests I&apos;ve done looking at profiler) + it fixes the issues regarding this ticket.&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;    /**
     * Adds an adapter-specific LIMIT clause to the SELECT statement.
     *
     * @param string $query
     * @param mixed $limit
     * @param mixed $offset
     * @link http:&lt;span class=&quot;code-comment&quot;&gt;//lists.bestpractical.com/pipermail/rt-devel/2005-June/007339.html
&lt;/span&gt;     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; string
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; function doModifyLimitQuery($query, $limit, $offset = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($limit &amp;gt; 0) {
            $count = intval($limit);
            $offset = intval($offset);

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($offset &amp;lt; 0) {
                &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DBALException(&lt;span class=&quot;code-quote&quot;&gt;&quot;LIMIT argument offset=$offset is not valid&quot;&lt;/span&gt;);
            }

            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($offset == 0) {
                $query = preg_replace(&apos;/^SELECT\s/i&apos;, &apos;SELECT TOP &apos; . $count . &apos; &apos;, $query);
            } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
                $orderby = stristr($query, &apos;ORDER BY&apos;);

                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!$orderby) {
                    $over = &apos;ORDER BY (SELECT 0)&apos;;
                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&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;span class=&quot;code-comment&quot;&gt;// Remove ORDER BY clause from $query
&lt;/span&gt;                $query = preg_replace(&apos;/\s+ORDER BY(.*)/&apos;, &apos;&apos;, $query);
                $query = preg_replace(&apos;/SELECT\s/&apos;, &apos;&apos;, $query);

                $start = $offset + 1;
                $end = $offset + $count;

                &lt;span class=&quot;code-comment&quot;&gt;// Limit query
&lt;/span&gt;                $query = &lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT * FROM (SELECT ROW_NUMBER() OVER ($over) AS \&quot;&lt;/span&gt;doctrine_rownum\&lt;span class=&quot;code-quote&quot;&gt;&quot;, $query) AS doctrine_tbl WHERE \&quot;&lt;/span&gt;doctrine_rownum\&lt;span class=&quot;code-quote&quot;&gt;&quot; BETWEEN $start AND $end&quot;&lt;/span&gt;;
            }
        }

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $query;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I had found this query a long time ago and found it to be fairly fast, however I&apos;m not sure where exactly I found it.&lt;br/&gt;
I&apos;m going to take a guess and assume it might be this comment:&lt;br/&gt;
&lt;a href=&quot;http://josephlindsay.com/archives/2005/05/27/paging-results-in-ms-sql-server/comment-page-1/#comment-28594&quot; class=&quot;external-link&quot;&gt;http://josephlindsay.com/archives/2005/05/27/paging-results-in-ms-sql-server/comment-page-1/#comment-28594&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16053" author="aarondm" created="Fri, 24 Jun 2011 19:29:42 +0000"  >&lt;p&gt;Pull request: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/37&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/37&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16250" author="beberlei" created="Sun, 31 Jul 2011 10:20:54 +0000"  >&lt;p&gt;Fixed, merged pull request&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-91] orm:convert-mapping SchemaException on Postgres reserved words</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-91</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;While execuiting &lt;/p&gt;

&lt;p&gt;  doctrine orm:convert-mapping --from-database yml /tmp/test.yml&lt;/p&gt;

&lt;p&gt;I get presented an error&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\Schema\SchemaException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  Invalid index-name tablename_&quot;input&quot;_idx given, has to be &lt;span class=&quot;error&quot;&gt;&amp;#91;a-zA-Z0-9_&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;The index &quot;type&quot; is quoted because this is a reserved word in Postgres. for example see the following definition:&lt;/p&gt;

&lt;p&gt;FOREIGN KEY (something) REFERENCES somethings(id) ON UPDATE CASCADE&lt;br/&gt;
FOREIGN KEY (another) REFERENCES anothers(id) ON UPDATE CASCADE&lt;br/&gt;
FOREIGN KEY (&quot;type&quot;) REFERENCES logtypes(id) ON UPDATE CASCADE&lt;/p&gt;

&lt;p&gt;Only type will be quoted because it is a reserved word.&lt;/p&gt;</description>
                <environment>CentOs 5.5, Postgres 8.1.22</environment>
            <key id="12290">DBAL-91</key>
            <summary>orm:convert-mapping SchemaException on Postgres reserved words</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="emilw">Emil</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 Jan 2011 09:02:23 +0000</created>
                <updated>Sat, 12 Feb 2011 14:39:41 +0000</updated>
                    <resolved>Sat, 12 Feb 2011 14:39:41 +0000</resolved>
                            <version>2.0</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15117" author="beberlei" created="Mon, 10 Jan 2011 09:16:00 +0000"  >&lt;p&gt;You have to quote with `` in Doctrine. That is translated to the underyling vendor quotation signs.&lt;/p&gt;</comment>
                    <comment id="15119" author="emilw" created="Mon, 10 Jan 2011 10:44:39 +0000"  >&lt;p&gt;@benjamin this considers a mapping error from database (Postgres) to YAML through the doctrine commandline tool, I do not think your comment is relevant for this issue.&lt;/p&gt;</comment>
                    <comment id="15120" author="beberlei" created="Tue, 11 Jan 2011 04:12:40 +0000"  >&lt;p&gt;@Emil it is, are you quoting the reserved word in the YML file using `` ? DBAL has some logic to fix escaping in these cases.&lt;/p&gt;</comment>
                    <comment id="15121" author="emilw" created="Tue, 11 Jan 2011 04:21:54 +0000"  >&lt;p&gt;@benjamin uhm, I might be baffled with the complexity of Doctrine or just plain wrong. But I&apos;m trying to create a YML file from my database. How can I be making a mistake in the YML file with quotes? &lt;/p&gt;

&lt;p&gt;The error message is presented because the Dcotrine ORM module tries to generate index names on columns, based on the database schema, but fails because the returned names (from the database schema) contain quotes (because they are reserved words).&lt;/p&gt;</comment>
                    <comment id="15122" author="beberlei" created="Tue, 11 Jan 2011 05:42:29 +0000"  >&lt;p&gt;Sorry, now i get it. I didnt relaize the usecase you were applying. Yes you are right &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="15173" author="beberlei" created="Sun, 23 Jan 2011 14:30:48 +0000"  >&lt;p&gt;Can you give me an Example Postgresql Schema with DDL SQL that produces this error?&lt;/p&gt;</comment>
                    <comment id="15244" author="emilw" created="Thu, 10 Feb 2011 05:24:52 +0000"  >&lt;p&gt;These are the table creation for a test table which is able to reproduce the error.&lt;/p&gt;</comment>
                    <comment id="15245" author="emilw" created="Thu, 10 Feb 2011 05:27:49 +0000"  >&lt;p&gt;I hope this is enough information. The attached SQL reproduces the following error:&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;doctrine orm:convert-mapping --from-database yml /tmp/test.yml&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\Schema\SchemaException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  Invalid index-name something_&quot;input&quot;_idx given, has to be &lt;span class=&quot;error&quot;&gt;&amp;#91;a-zA-Z0-9_&amp;#93;&lt;/span&gt;&lt;/p&gt;

&lt;p&gt;orm:convert-mapping &lt;span class=&quot;error&quot;&gt;&amp;#91;--filter=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--from-database&amp;#93;&lt;/span&gt; [-&lt;del&gt;extend&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;] [&lt;/del&gt;-num-spaces&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;] &lt;span class=&quot;error&quot;&gt;&amp;#91;-h|--help&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-q|--quiet&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-v|--verbose&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-V|--version&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-a|--ansi&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-n|--no-interaction&amp;#93;&lt;/span&gt; command to-type dest-path&lt;/p&gt;
</comment>
                    <comment id="15284" author="beberlei" created="Sat, 12 Feb 2011 12:54:42 +0000"  >&lt;p&gt;I can&apos;t reproduce it &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.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;Can you run the command with --verbose ? Additionally in lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php can you var_dump() $metadata after line 119?&lt;/p&gt;</comment>
                    <comment id="15285" author="beberlei" created="Sat, 12 Feb 2011 13:01:28 +0000"  >&lt;p&gt;Ok i could reproduce it now. Input is not a keyword for me though, type also not. Coudl reproduce it with &quot;table&quot;&lt;/p&gt;</comment>
                    <comment id="15286" author="beberlei" created="Sat, 12 Feb 2011 13:06:54 +0000"  >&lt;p&gt;Ok, this is a DBAL issue.&lt;/p&gt;</comment>
                    <comment id="15287" author="beberlei" created="Sat, 12 Feb 2011 14:39:41 +0000"  >&lt;p&gt;This is fixed and will be included in 2.0.2&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12373">DBAL-88</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10935" name="test-creation.sql" size="248" author="emilw" created="Thu, 10 Feb 2011 05:24:52 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-79] Add Schema\Table::hasPrimaryKey method</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-79</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Currently the name of the primary key is internal to the Table instance so there is no way to check if the table has a primary key without getting all the indexes and iterating over them.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12268">DBAL-79</key>
            <summary>Add Schema\Table::hasPrimaryKey method</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 30 Dec 2010 17:05:13 +0000</created>
                <updated>Sat, 26 Feb 2011 16:11:38 +0000</updated>
                    <resolved>Sat, 26 Feb 2011 16:11:38 +0000</resolved>
                                            <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15399" author="beberlei" created="Sat, 26 Feb 2011 16:11:38 +0000"  >&lt;p&gt;This is fixed in trunk.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-78] Native support for parameter lists</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-78</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Prerequisites:&lt;/p&gt;

&lt;p&gt;1. Detection of this mode has to be super-fast. It should not have an auto-detection but should be triggered explicitly.&lt;br/&gt;
2. This mode cannot be supported after $conn-&amp;gt;prepare(). It is only viable for $conn-&amp;gt;executeQuery() or $conn-&amp;gt;executeUpdate().&lt;/p&gt;

&lt;p&gt;Case 1: Positional&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;$stmt = $conn-&amp;gt;executeQuery(&lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT a.id FROM articles a WHERE a.id IN (?) AND a.foo = ?&quot;&lt;/span&gt;,
    array($paramList, $foo), array( Connection::PARAM_ARRAY =&amp;gt; PDO::PARAM_INT) , PDO:PARAM_STR ),
    Connection::FLAG_EXPAND_ARRAYS
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Would internally, right before execution, be rewritten 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;$c = count($paramList); &lt;span class=&quot;code-comment&quot;&gt;// 3!
&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT a.id FROM articles a WHERE a.id IN (?, ?, ?) AND a.foo = ?&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Case 2: Named&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;$stmt = $conn-&amp;gt;executeQuery(&lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT a.id FROM articles a WHERE a.id IN (:id) AND a.foo = :bar&quot;&lt;/span&gt;,
    array(&apos;id&apos; =&amp;gt; $paramList, &apos;bar&apos; =&amp;gt; $foo),
    array( array(Connection::PARAM_ARRAY =&amp;gt; PDO::PARAM_INT), PDO::PARAM_STR ),
    Connection::FLAG_EXPAND_ARRAYS
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Would internally, right before execution, be rewritten 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;$c = count($paramList); &lt;span class=&quot;code-comment&quot;&gt;// 3!
&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;SELECT a.id FROM articles a WHERE a.id IN (:id1, :id2, :id3) AND a.foo = :bar&quot;&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12250">DBAL-78</key>
            <summary>Native support for parameter lists</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Dec 2010 05:41:35 +0000</created>
                <updated>Sat, 5 Mar 2011 10:51:22 +0000</updated>
                    <resolved>Sat, 5 Mar 2011 10:51:22 +0000</resolved>
                                            <fixVersion>2.1</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15459" author="beberlei" created="Sat, 5 Mar 2011 10:02:45 +0000"  >&lt;p&gt;Implementing this for Named parameters is not really possible without re-parsing the query after every replacement just because the named parameters can occur more then once and this messes with the positions.&lt;/p&gt;</comment>
                    <comment id="15460" author="beberlei" created="Sat, 5 Mar 2011 10:10:58 +0000"  >&lt;p&gt;Using arrays as param list is a very bad idea performance wise (and also code handling).&lt;/p&gt;

&lt;p&gt;Algorithm now:&lt;/p&gt;

&lt;p&gt;1. New Constants Connection::PARAM_INT_ARRAY and PARAM_STR_ARRAY, being apart by Connection::ARRAY_TYPE_OFFSET from their PDO::PARAM_STR and PDO:PARAM_INT plain values.&lt;br/&gt;
2. Detect if there is one _ARRAY param. If not abort expansion (complexity O(T)) where T is the number of types.&lt;br/&gt;
3. Parse SQL statement for positional needle =&amp;gt; character position&lt;br/&gt;
4. Iterate param list and inline arrays values&lt;/p&gt;
</comment>
                    <comment id="15461" author="beberlei" created="Sat, 5 Mar 2011 10:51:22 +0000"  >&lt;p&gt;Implemented in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/df50f44a179028a3e30dcab02cd3ff33cc4f8498&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/df50f44a179028a3e30dcab02cd3ff33cc4f8498&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-74] OracleSchemaManager - incorrectly detected the length of the string columns</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-74</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When I create a VARCHAR2 column with the length specified in char units (VARCHAR2(10 CHAR)) instead of the default  byte, the metadata stored in all_tab_columns -&amp;gt; data_length is not 10, but 40. It is better to use char_length instead of data_length. Char_length is the same wheter the size unit is in CHAR or BYTE.&lt;/p&gt;

&lt;p&gt;It is neccessary for me to use CHAR instead of the default BYTE, because I am using unicode charset.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="12199">DBAL-74</key>
            <summary>OracleSchemaManager - incorrectly detected the length of the string 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Tue, 7 Dec 2010 06:45:02 +0000</created>
                <updated>Sun, 12 Dec 2010 06:54:32 +0000</updated>
                    <resolved>Sun, 12 Dec 2010 06:48:39 +0000</resolved>
                            <version>2.0.0-RC1-RC3</version>
                                <fixVersion>2.0-RC5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14923" author="adrive" created="Tue, 7 Dec 2010 07:07:33 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/milokmet/dbal/commit/a5087e8e229bfd2cde947e1d387ebe2e2b122b85&quot; class=&quot;external-link&quot;&gt;https://github.com/milokmet/dbal/commit/a5087e8e229bfd2cde947e1d387ebe2e2b122b85&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14924" author="beberlei" created="Tue, 7 Dec 2010 07:52:36 +0000"  >&lt;p&gt;Can I appoint you to Doctrine&apos;s Oracle specialist? &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;Thank you very much, I will merge that as soon as i have time.&lt;/p&gt;</comment>
                    <comment id="14954" author="beberlei" created="Sun, 12 Dec 2010 06:48:39 +0000"  >&lt;p&gt;Merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-73] Could not convert database value &quot;b:0;&quot; to Doctrine Type object</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-73</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The following class when value is set to false causes &quot;Could not convert database value &quot;b:0;&quot; to Doctrine Type object&quot; exception when loading the entity.&lt;/p&gt;

&lt;p&gt;/** @orm:Entity */&lt;br/&gt;
class MyClass&lt;br/&gt;
{&lt;br/&gt;
    /**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;@orm:Column(name=&quot;value&quot;, type=&quot;object&quot;)&lt;br/&gt;
     */&lt;br/&gt;
    public $value;&lt;br/&gt;
}&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="12197">DBAL-73</key>
            <summary>Could not convert database value &quot;b:0;&quot; to Doctrine Type object</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="wizbit">Marcus Speight</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Dec 2010 07:30:26 +0000</created>
                <updated>Sun, 12 Dec 2010 07:00:54 +0000</updated>
                    <resolved>Sun, 12 Dec 2010 07:00:54 +0000</resolved>
                            <version>2.0.0-RC1-RC3</version>
                                <fixVersion>2.0-RC5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14916" author="beberlei" created="Mon, 6 Dec 2010 08:30:51 +0000"  >&lt;p&gt;From the PHP manual about unserialize():&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;In &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; the passed string is not unserializeable, FALSE is returned and E_NOTICE is issued. 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The solution: Use NULL instead of false&lt;/p&gt;</comment>
                    <comment id="14917" author="wizbit" created="Mon, 6 Dec 2010 09:25:14 +0000"  >&lt;p&gt;But the string &quot;b:0;&quot; is unserializable it returns false. Also from the php manual on unserialize&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;FALSE is returned both in the &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; of an error and &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; unserializing the serialized FALSE value. 
It is possible to &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; special &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; by comparing str with serialize(&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) or by catching the issued E_NOTICE. &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I&apos;ve submitted a pull request that handles it correctly.&lt;/p&gt;</comment>
                    <comment id="14918" author="beberlei" created="Mon, 6 Dec 2010 10:01:21 +0000"  >&lt;p&gt;I know, but this type is called &quot;object&quot;, so setting it to false makes no sense. Setting it to null makes sense though.&lt;/p&gt;

&lt;p&gt;I know that b:0; is false, but why do you set it to false anyways? Objects are either null or an instance of the object. Never false.&lt;/p&gt;</comment>
                    <comment id="14919" author="wizbit" created="Mon, 6 Dec 2010 10:08:38 +0000"  >&lt;p&gt;I&apos;m storing settings in a database. using a Namespace, Key =&amp;gt; Value triplet. I don&apos;t know what might be stored in the value part. Currently strings, NULL and boolean data are stored. Using object seem to be the best approach. (ArrayTypes have the same problem).&lt;/p&gt;

&lt;p&gt;If you think a different type would be better then please let me know.&lt;/p&gt;</comment>
                    <comment id="14920" author="beberlei" created="Mon, 6 Dec 2010 10:22:11 +0000"  >&lt;p&gt;how is such a triplet only b:0; ? or is your entity the tripplet and the variable that fails is the value?&lt;/p&gt;</comment>
                    <comment id="14921" author="wizbit" created="Mon, 6 Dec 2010 10:34:43 +0000"  >&lt;p&gt;I&apos;ve added my entity. The entity is the triplet. And it is the value that fails if false is stored.&lt;br/&gt;
It allows me to store the value(false) but the throws an exception on loading the entity. It should allow the loading of the value(false) or disallow the storing of a false value.&lt;/p&gt;</comment>
                    <comment id="14958" author="beberlei" created="Sun, 12 Dec 2010 07:00:54 +0000"  >&lt;p&gt;Although this should really be just array and object, not strange false types i added this patch to prevent future reports of this as a problem. The loosely typed language PHP can go with null or false, so why throw people stones in their way.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10887" name="Setting.php" size="1452" author="wizbit" created="Mon, 6 Dec 2010 10:34:43 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-72] doctrine entities generation has a bug for OneToMany setter type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-72</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;http://trac.symfony-project.org/ticket/9272&quot; class=&quot;external-link&quot;&gt;http://trac.symfony-project.org/ticket/9272&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;assuming i&apos;ve this model :&lt;/p&gt;

&lt;p&gt;class TaskList &lt;/p&gt;
{

/**
*@Id
*@Column(type=&quot;integer&quot;)
*@GeneratedValue(strategy=&quot;AUTO&quot;) 
*/
private $id; 

/**
*@Column(type=&quot;string&quot;, length=&quot;255&quot;) 
*/
protected $name; 

/**
*@OneToMany(targetEntity=&quot;Task&quot;, mappedBy=&quot;TaskList&quot;) 
*/
protected $Tasks;

}

&lt;p&gt;AND&lt;/p&gt;

&lt;p&gt;class Task{&lt;/p&gt;

&lt;p&gt;/**&lt;br/&gt;
*@Id&lt;br/&gt;
*@Column(type=&quot;integer&quot;)&lt;br/&gt;
*@GeneratedValue?(strategy=&quot;AUTO&quot;) &lt;br/&gt;
*/&lt;br/&gt;
protected $id; &lt;/p&gt;

&lt;p&gt;/**&lt;br/&gt;
*@Column(type=&quot;string&quot;, length=&quot;255&quot;)&lt;br/&gt;
*@Validation(&lt;/p&gt;
{ @NotBlank }
&lt;p&gt;) &lt;br/&gt;
*/&lt;br/&gt;
protected $name; &lt;/p&gt;

&lt;p&gt;/**&lt;br/&gt;
*@Column(type=&quot;boolean&quot;) &lt;br/&gt;
*/&lt;br/&gt;
protected $done = false; &lt;/p&gt;

&lt;p&gt;/**&lt;br/&gt;
*@ManyToOne(targetEntity=&quot;TaskList&quot;, inversedBy=&quot;Tasks&quot;)&lt;br/&gt;
*@JoinColumn(name=&quot;task_list_id&quot;, referencedColumnName=&quot;id&quot;) &lt;br/&gt;
*/&lt;br/&gt;
protected $TaskList;&lt;/p&gt;

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

&lt;p&gt;in symfony2&lt;/p&gt;

&lt;p&gt;the ./console doctrine:generate:entities will create a setter in each class :&lt;/p&gt;

&lt;p&gt;public function setTaskList(\TaskList $taskList) {&lt;br/&gt;
    $this-&amp;gt;TaskList = $taskList;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;AND&lt;/p&gt;

&lt;p&gt;public function addTasks(\Task $tasks) {&lt;br/&gt;
    $this-&amp;gt;Tasks[] = $tasks;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;the &quot; \ &quot; before the setter function&apos;s parameter type is wrong here we should have&lt;/p&gt;

&lt;p&gt;public function setTaskList(TaskList $taskList) {&lt;br/&gt;
    $this-&amp;gt;TaskList = $taskList;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;AND&lt;/p&gt;

&lt;p&gt;public function addTasks(Task $tasks) {&lt;br/&gt;
    $this-&amp;gt;Tasks[] = $tasks;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;this lead ./console doctrine:generate:proxies to throw a hardly understandable error: &lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;ReflectionException&amp;#93;&lt;/span&gt;&lt;br/&gt;
Class Bundle\ToDoListBundle\Entity\TaskList does not exist&lt;/p&gt;

&lt;p&gt;if you typed&lt;/p&gt;

&lt;p&gt;/**&lt;br/&gt;
*@OneToMany?(targetEntity=&quot;\Bundle\myBundle\Entity\Task&quot;, mappedBy=&quot;TaskList?&quot;) &lt;br/&gt;
*/&lt;/p&gt;

&lt;p&gt;the doctrine:generate:entities do not create this problem.&lt;br/&gt;
(my apologizes for inacurrate english)&lt;/p&gt;</description>
                <environment>Apache2 + PHP5.3.3 on macosx (via macport)</environment>
            <key id="12196">DBAL-72</key>
            <summary>doctrine entities generation has a bug for OneToMany setter 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="2">Won&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="amo__">Amaury Leroux de Lens</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Dec 2010 06:13:03 +0000</created>
                <updated>Sun, 12 Dec 2010 06:54:06 +0000</updated>
                    <resolved>Sun, 12 Dec 2010 06:54:06 +0000</resolved>
                            <version>2.0.0-BETA4</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14913" author="beberlei" created="Mon, 6 Dec 2010 06:40:29 +0000"  >&lt;p&gt;This was fixed in the RC1 release. Can you verify this bug does not occour with RC1 anymore?&lt;/p&gt;</comment>
                    <comment id="14914" author="amo__" created="Mon, 6 Dec 2010 06:54:47 +0000"  >&lt;p&gt;i&apos;ll do asap, &lt;br/&gt;
was just migrating this issue from symfony2 trac&lt;/p&gt;</comment>
                    <comment id="14956" author="beberlei" created="Sun, 12 Dec 2010 06:54:06 +0000"  >&lt;p&gt;Closed, no feedback and this issue was fixed with RC1.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-70] MySql Platform is missing FloatType mappings</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-70</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;All other platforms are mapping double precission columns to the FloatType type. MySql not...&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12186">DBAL-70</key>
            <summary>MySql Platform is missing FloatType mappings</summary>
                <type id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/subtask_alternate.png">Sub-task</type>
                    <parent id="10250">DBAL-41</parent>
                        <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="steffenvogel">Steffen Vogel</reporter>
                        <labels>
                    </labels>
                <created>Thu, 2 Dec 2010 18:01:24 +0000</created>
                <updated>Sun, 12 Dec 2010 06:55:09 +0000</updated>
                    <resolved>Sun, 12 Dec 2010 06:55:09 +0000</resolved>
                            <version>2.0.0-RC1-RC3</version>
                                <fixVersion>2.0-RC4</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14957" author="beberlei" created="Sun, 12 Dec 2010 06:55:09 +0000"  >&lt;p&gt;This was fixed in RC4.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-67] OCI8: schema-tool:update is modifying not null boolean - NUMBER(1) columns to not null</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-67</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When I have a boolean column(s) in my entities and I want to update schema with schema tool, I get an exception:&lt;/p&gt;

&lt;p&gt;My 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;/** @Entity @Table(name=&apos;st_node&apos;) */
class Node
{
    /** @Id @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;) @GeneratedValue */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $id;
    
    /** @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, length=&lt;span class=&quot;code-quote&quot;&gt;&quot;255&quot;&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $title;
    
    /** @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;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $is_published;
    
    /** @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;protected&lt;/span&gt; $is_sticky;
    
    /** @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, length=4) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $hits;
    
    /** @Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;decimal&quot;&lt;/span&gt;, precision=4, scale=2) */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $score;
}
&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;./doctrine orm:schema-tool:update --force
Entities\Address
Entities\Node
Entities\Article
Entities\User
Entities\Page
Updating database schema...

  [Doctrine\DBAL\Driver\OCI8\OCI8Exception]                         
  ORA-01442: column to be modified to NOT NULL is already NOT NULL  
            
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The same with --dump-sql option:&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 orm:schema-tool:update --dump-sql
Entities\Address
Entities\Node
Entities\Article
Entities\User
Entities\Page
ALTER TABLE ST_NODE MODIFY (is_published  NUMBER(1) NOT NULL, is_sticky  NUMBER(1) NOT NULL)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The columns are already not nulls, but schema-tool can&apos;t recognize that.&lt;/p&gt;

&lt;p&gt;This is the DQL of the table: &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 &lt;span class=&quot;code-quote&quot;&gt;&quot;DOCTRINE&quot;&lt;/span&gt;.&lt;span class=&quot;code-quote&quot;&gt;&quot;ST_NODE&quot;&lt;/span&gt;
  (
    &lt;span class=&quot;code-quote&quot;&gt;&quot;ID&quot;&lt;/span&gt;           NUMBER(10,0) NOT NULL ENABLE,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;TITLE&quot;&lt;/span&gt;        VARCHAR2(255 BYTE) NOT NULL ENABLE,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;DISCR&quot;&lt;/span&gt;        VARCHAR2(255 BYTE) NOT NULL ENABLE,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;IS_PUBLISHED&quot;&lt;/span&gt; NUMBER(1,0) NOT NULL ENABLE,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;HITS&quot;&lt;/span&gt;         NUMBER(10,0) NOT NULL ENABLE,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;SCORE&quot;&lt;/span&gt;        NUMBER(4,2) NOT NULL ENABLE,
    &lt;span class=&quot;code-quote&quot;&gt;&quot;IS_STICKY&quot;&lt;/span&gt;    NUMBER(1,0) NOT NULL ENABLE,
    PRIMARY KEY (&lt;span class=&quot;code-quote&quot;&gt;&quot;ID&quot;&lt;/span&gt;)
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Oracle - Oci8</environment>
            <key id="12145">DBAL-67</key>
            <summary>OCI8: schema-tool:update is modifying not null boolean - NUMBER(1) columns to not 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Nov 2010 04:19:08 +0000</created>
                <updated>Mon, 29 Nov 2010 13:56:28 +0000</updated>
                    <resolved>Mon, 29 Nov 2010 13:56:28 +0000</resolved>
                            <version>2.0.0-RC1-RC3</version>
                                <fixVersion>2.0-RC4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14805" author="adrive" created="Wed, 24 Nov 2010 07:01:17 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/milokmet/dbal/commits/DBAL-67&quot; class=&quot;external-link&quot;&gt;https://github.com/milokmet/dbal/commits/DBAL-67&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="14852" author="beberlei" created="Sat, 27 Nov 2010 13:32:06 +0000"  >&lt;p&gt;Btw, with regard to the comment on the Fix on your repository.&lt;/p&gt;

&lt;p&gt;What has the commit to do with the NULL / NOT NULL issue? it seems the changes are entirely unrelated to this?&lt;/p&gt;</comment>
                    <comment id="14865" author="adrive" created="Mon, 29 Nov 2010 04:30:26 +0000"  >&lt;p&gt;Hi Benjamin, No the changes are not unrelated to this, but I discover, what the problem was.&lt;/p&gt;

&lt;p&gt;The problem was, thet the changed function didn&apos;t map correctly the database column types to the doctrine&apos;s types.&lt;/p&gt;

&lt;p&gt;Therefor, when I have is_published column of doctrine&apos;s boolean type, it is mapped to oracle&apos;s NUMBER(1), but when I want to update the schema, doctrine schema managers thinks, that existing column in the database is integer with precision 1, and tries to modify the column to boolean -&amp;gt; number(1), but the column already is number(1) and oracle complains.&lt;/p&gt;

&lt;p&gt;The same is also with bigint and smallint.&lt;/p&gt;</comment>
                    <comment id="14871" author="beberlei" created="Mon, 29 Nov 2010 13:56:28 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-177] Have Schema Assets handle &quot;foo.bar&quot; syntax correctly.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-177</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13137">DBAL-177</key>
            <summary>Have Schema Assets handle &quot;foo.bar&quot; syntax correctly.</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, 31 Oct 2011 20:01:10 +0000</created>
                <updated>Wed, 16 Nov 2011 22:48:41 +0000</updated>
                    <resolved>Wed, 16 Nov 2011 22:48:41 +0000</resolved>
                            <version>2.1.3</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-176] DBAL logging doesnt work correctly with Prepared Statements</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-176</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13133">DBAL-176</key>
            <summary>DBAL logging doesnt work correctly with Prepared Statements</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, 29 Oct 2011 22:20:38 +0000</created>
                <updated>Sun, 30 Oct 2011 10:43:18 +0000</updated>
                    <resolved>Sun, 30 Oct 2011 10:43:18 +0000</resolved>
                            <version>2.1.3</version>
                                <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-173] PDO Exception 17 database schema has changed</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-173</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;in a script initializing a database (creating tables and inserting rows into) i have this exception :&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;PHP 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: 17 database schema has changed&apos; in /home/mathieu/projects/no-pair/library/vendor/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php:618&lt;br/&gt;
Stack trace:&lt;br/&gt;
#0 /home/mathieu/projects/no-pair/library/vendor/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php(618): PDO-&amp;gt;query(&apos;SELECT name FRO...&apos;)&lt;br/&gt;
#1 /home/mathieu/projects/no-pair/library/vendor/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php(571): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;SELECT name FRO...&apos;, Array)&lt;br/&gt;
#2 /home/mathieu/projects/no-pair/library/vendor/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(198): Doctrine\DBAL\Connection-&amp;gt;fetchAll(&apos;SELECT name FRO...&apos;)&lt;br/&gt;
#3 /home/mathieu/projects/no-pair/library/vendor/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php(210): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableNames()&lt;br/&gt;
#4 /home/mathieu/projects/no-pa in /home/mathieu/projects/no-pair/library/vendor/doctrine2/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php on line 618&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;it&apos;s working well with mysql or postgresql. &lt;/p&gt;

&lt;p&gt;I don&apos;t think it&apos;s up to the developper using doctrine to take care of this probem. &lt;/p&gt;

&lt;p&gt;As I understand it, when this error happend doctrine should &quot;check for this error and re-execute the query as necessary.&quot; ( &lt;a href=&quot;https://bugs.php.net/bug.php?id=43942&quot; class=&quot;external-link&quot;&gt;https://bugs.php.net/bug.php?id=43942&lt;/a&gt; )&lt;/p&gt;

&lt;p&gt;apparently it could also be solved in pdo_sqlite by using sqlite3_prepare_v2 instead of sqlite3_prepare. maybe I should fill a bug here too &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;&lt;/p&gt;


&lt;p&gt;I&apos;ll provide a script reproducing the problem asap&lt;br/&gt;
but I don&apos;t know if it&apos;s better to solve it in doctrine or in pdo-sqlite&lt;/p&gt;</description>
                <environment>PHP 5.3 / SQLITE</environment>
            <key id="13050">DBAL-173</key>
            <summary>PDO Exception 17 database schema has 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="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="mathroc">Mathieu Rochette</reporter>
                        <labels>
                    </labels>
                <created>Wed, 28 Sep 2011 08:22:17 +0000</created>
                <updated>Sun, 29 Jul 2012 07:47:14 +0000</updated>
                    <resolved>Sun, 29 Jul 2012 07:47:14 +0000</resolved>
                            <version>2.1.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="17581" author="beberlei" created="Wed, 14 Mar 2012 20:56:33 +0000"  >&lt;p&gt;ARe you using two pdo connections in this initialization script?&lt;/p&gt;</comment>
                    <comment id="18337" author="lsmith" created="Thu, 19 Jul 2012 05:35:08 +0000"  >&lt;p&gt;we seem to be experiencing the same issue &lt;a href=&quot;https://github.com/jackalope/jackalope-doctrine-dbal/pull/46#discussion_r1185862&quot; class=&quot;external-link&quot;&gt;https://github.com/jackalope/jackalope-doctrine-dbal/pull/46#discussion_r1185862&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18398" author="beberlei" created="Sun, 29 Jul 2012 07:47:14 +0000"  >&lt;p&gt;Its up to the developer to fix this issue imho, there is no way for Doctrine to solve this issue generically without making the code overly complex.&lt;/p&gt;

&lt;p&gt;The use-case is rather minimal, running a testsuite and changing the db schema using more than one connection in the same request. I don&apos;t think we should change the core for this.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-174] Table without index</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-174</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The /Doctrine/DBAL/Schema/AbstractSchemaManager-&amp;gt;listTableIndexes() method returns SQL, that causes the following error:&lt;/p&gt;

&lt;p&gt;PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;IMSSP&amp;#93;&lt;/span&gt;: The active result for the query contains no fields. in C:\wamp\www\pemtic2.0\lib\Doctrine\DBAL\Connection.php on line 571&lt;br/&gt;
Call Stack&lt;/p&gt;
&lt;ol&gt;
	&lt;li&gt;Time	Memory	Function	Location&lt;br/&gt;
1	0.0004	379552	
{main}
&lt;p&gt;( )	..\postInstall.php:0&lt;br/&gt;
2	0.0297	3860720	Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getMetadataFor( )	..\postInstall.php:25&lt;br/&gt;
3	0.0297	3860840	Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;loadMetadata( )	..\ClassMetadataFactory.php:177&lt;br/&gt;
4	0.0331	4270440	Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;loadMetadataForClass( )	..\ClassMetadataFactory.php:281&lt;br/&gt;
5	0.0331	4270552	Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;reverseEngineerMappingFromDatabase( )	..\DatabaseDriver.php:154&lt;br/&gt;
6	5.9540	5021400	Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableDetails( )	..\DatabaseDriver.php:116&lt;br/&gt;
7	6.4029	5029072	Doctrine\DBAL\Schema\MsSqlSchemaManager-&amp;gt;listTableIndexes( )	..\AbstractSchemaManager.php:231&lt;br/&gt;
8	6.5440	5029360	Doctrine\DBAL\Connection-&amp;gt;fetchAll( )	..\MsSqlSchemaManager.php:182&lt;br/&gt;
9	6.6588	5031120	PDOStatement-&amp;gt;fetchAll( )	..\Connection.php:571&lt;/p&gt;&lt;/li&gt;
&lt;/ol&gt;
</description>
                <environment>Ubuntu 10.10, php 5.3, Sql Server 2008 (FreeTDS)</environment>
            <key id="13052">DBAL-174</key>
            <summary>Table without 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="romuloprandini">Romulo Prandini</reporter>
                        <labels>
                    </labels>
                <created>Thu, 29 Sep 2011 16:03:31 +0000</created>
                <updated>Mon, 9 Jan 2012 13:21:08 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 13:21:08 +0000</resolved>
                                                            <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17198" author="beberlei" created="Mon, 9 Jan 2012 13:21:08 +0000"  >&lt;p&gt;This was fixed in 2.1 somewhen.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-170] Add mysqli driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-170</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Add a mysqli driver&lt;/p&gt;</description>
                <environment></environment>
            <key id="13042">DBAL-170</key>
            <summary>Add mysqli 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>Sun, 25 Sep 2011 14:21:30 +0000</created>
                <updated>Mon, 21 Nov 2011 23:11:41 +0000</updated>
                    <resolved>Mon, 21 Nov 2011 23:11:41 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16905" author="beberlei" created="Mon, 21 Nov 2011 23:11:41 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[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-172</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using the QueryBuilder, joins that refer to table aliases from other joins get omitted. Only those joins that refer to table aliases from the &quot;from&quot; clause get included. &lt;/p&gt;

&lt;p&gt;See &lt;a href=&quot;http://stackoverflow.com/questions/7331117/doctrines-dbal-query-builder-omitts-some-joins&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/7331117/doctrines-dbal-query-builder-omitts-some-joins&lt;/a&gt;&lt;/p&gt;</description>
                <environment>MySQL</environment>
            <key id="13044">DBAL-172</key>
            <summary>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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="anush">Anush Ramani</reporter>
                        <labels>
                    </labels>
                <created>Mon, 26 Sep 2011 18:06:40 +0000</created>
                <updated>Sun, 30 Oct 2011 18:54:07 +0000</updated>
                    <resolved>Sun, 30 Oct 2011 18:54:07 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16530" author="anush" created="Tue, 27 Sep 2011 05:10:38 +0000"  >&lt;p&gt;Just realized that there is a way to solve the issue with omitted joins. Essentially, we&apos;d always need to use one of the &lt;tt&gt;FROM&lt;/tt&gt; table aliases as the &lt;tt&gt;$fromAlias&lt;/tt&gt; for the &lt;tt&gt;join()&lt;/tt&gt; methods. While this works quite well, it seems un-intuitive. &lt;/p&gt;

&lt;p&gt;If this is expected behavior, I can close the ticket, but again, seems a bit un-intuitive.&lt;/p&gt;</comment>
                    <comment id="16729" author="beberlei" created="Sun, 30 Oct 2011 18:54:07 +0000"  >&lt;p&gt;fixed.&lt;/p&gt;

&lt;p&gt;An exception is now thrown when this occurs with details on how to fix it.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-169] PostgreSQL Session init</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-169</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;During PostgreSQL Session init it may be interesting to set the search path to a different value than the default.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13039">DBAL-169</key>
            <summary>PostgreSQL Session init</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 Sep 2011 10:07:35 +0000</created>
                <updated>Sat, 24 Sep 2011 11:53:25 +0000</updated>
                    <resolved>Sat, 24 Sep 2011 11:53:25 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16501" author="beberlei" created="Sat, 24 Sep 2011 11:53:25 +0000"  >&lt;p&gt;Implemented a generic SQLSessionInit listener that executes a single sql command after connection initializtion.&lt;/p&gt;

&lt;p&gt;Example 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;$evm-&amp;gt;addEventListener(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; SQLSessionInit(&lt;span class=&quot;code-quote&quot;&gt;&quot;SET SEARCH_PATH TO foo, &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt;, TIMEZONE TO &apos;Europe/Berlin&apos;&quot;&lt;/span&gt;));
$conn = DriverManager::getConnection($params, $config $evm);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-166] Table Encoding on generation table creation query</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-166</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Can not set charset options for table creation. &lt;br/&gt;
Now I am fix  thix problem in patch. &lt;br/&gt;
File:  doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php&lt;/p&gt;

&lt;p&gt;#!/usr/bin/php&lt;br/&gt;
&amp;lt;?php&lt;br/&gt;
/**&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Doctrine DBAL Patch&lt;/li&gt;
	&lt;li&gt;fix table creation query encode&lt;/li&gt;
	&lt;li&gt;(c) _Nicolay&lt;br/&gt;
 */&lt;br/&gt;
system (&apos;cp ./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php ./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php.Orig&apos;);&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;$data = file_get_contents(&apos;./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php&apos;);&lt;br/&gt;
$data = str_replace(&quot;new Table(\$tableName);&quot;,&lt;br/&gt;
                    &quot;new Table(\$tableName,array(),array(),array(),0,array(&apos;charset&apos;=&amp;gt;&apos;utf8&apos;,&apos;collate&apos;=&amp;gt;&apos;utf8_general_ci&apos;));&quot;,&lt;br/&gt;
                    $data);&lt;br/&gt;
file_put_contents(&apos;./vendor/doctrine-dbal/lib/Doctrine/DBAL/Schema/Schema.php&apos;, $data);&lt;/p&gt;</description>
                <environment>mysql</environment>
            <key id="13018">DBAL-166</key>
            <summary>Table Encoding on generation table creation 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="png-tech">Punin Nicolay G.</reporter>
                        <labels>
                    </labels>
                <created>Wed, 14 Sep 2011 05:45:57 +0000</created>
                <updated>Sun, 1 Apr 2012 11:42:46 +0000</updated>
                    <resolved>Sun, 1 Apr 2012 11:42:46 +0000</resolved>
                            <version>2.1.2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16670" author="stfalcon" created="Thu, 20 Oct 2011 14:05:57 +0000"  >&lt;p&gt;Guys, it&apos;s real problem for me too! (:&lt;/p&gt;

&lt;p&gt;My test suite (in symfony2 project) always creates tables with &quot;latin1_swedish_ci&quot; collation. I want set &quot;utf8_general_ci&quot;. But I don&apos;t want do it&apos;s in mysql.ini.&lt;/p&gt;

&lt;p&gt;I tried setting it in MysqlSessionInit __construct, but it&apos;s not solved my problem.&lt;/p&gt;

&lt;p&gt;In MySqlPlatform I found next code (&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L420):&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L420):&lt;/a&gt;&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; (isset($options[&apos;charset&apos;])) {
            $optionStrings[&apos;charset&apos;] = &apos;DEFAULT CHARACTER SET &apos; . $options[&apos;charset&apos;];
            &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($options[&apos;collate&apos;])) {
                $optionStrings[&apos;charset&apos;] .= &apos; COLLATE &apos; . $options[&apos;collate&apos;];
            }
        }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;But any options don&apos;t set in this call&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/SchemaTool.php#L133&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/blob/master/lib/Doctrine/ORM/Tools/SchemaTool.php#L133&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17715" author="beberlei" created="Sun, 1 Apr 2012 11:42:46 +0000"  >&lt;p&gt;Implemented this as a new feature on Schema. Also defaulting to UTF-8 now.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11063" name="docrine-dbal-patch.php" size="623" author="png-tech" created="Wed, 14 Sep 2011 05:45:57 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-164] Quoting allows SQL injections</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-164</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;$test = &quot;foo &apos; bar&quot;;&lt;br/&gt;
$quoted = $conn-&amp;gt;quote( $test );&lt;br/&gt;
echo $quoted;&lt;/p&gt;

&lt;p&gt;RESULT: &apos;foo &apos; bar&apos;&lt;br/&gt;
EXPECTED: &apos;foo \&apos; bar&apos;&lt;/p&gt;</description>
                <environment>OCI8 Driver&lt;br/&gt;
IBMDB&amp;quot; Driver&lt;br/&gt;
</environment>
            <key id="13011">DBAL-164</key>
            <summary>Quoting allows SQL injections</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="ogmueller">Oliver Mueller</reporter>
                        <labels>
                    </labels>
                <created>Sat, 10 Sep 2011 14:31:21 +0000</created>
                <updated>Sun, 25 Sep 2011 19:07:47 +0000</updated>
                    <resolved>Tue, 13 Sep 2011 04:51:19 +0000</resolved>
                            <version>2.1.2</version>
                                <fixVersion>2.0.9</fixVersion>
                <fixVersion>2.1.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16464" author="guilhermeblanco" created="Tue, 13 Sep 2011 04:51:19 +0000"  >&lt;p&gt;Fixed in &lt;a href=&quot;https://github.com/doctrine/dbal/commit/82cc921447fde697bf3d9f5285d0f0b8587303d8&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/82cc921447fde697bf3d9f5285d0f0b8587303d8&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16522" author="beberlei" created="Sun, 25 Sep 2011 18:42:32 +0000"  >&lt;p&gt;Backported to 2.0.9&lt;/p&gt;</comment>
                    <comment id="16523" author="beberlei" created="Sun, 25 Sep 2011 19:07:08 +0000"  >&lt;p&gt;Fix was modified to use the Zend Framework code for quoting OCI input: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/97638edc0fef0e08ce7db631eb130fde950844d7&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/97638edc0fef0e08ce7db631eb130fde950844d7&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This code is now in DBAL 2.1.4 and 2.0.9 and i have added some tests to very some simple SQL Injection vectors don&apos;t work on any supported platform.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-171] PARAM_INT_ARRAY / PARAM_STR_ARRAY depends of parameter order</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-171</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Named parameters appears to be treated as ordered parameters, when using PARAM_INT_ARRAY or PARAM_STR_ARRAY:&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 = $em-&amp;gt;createQuery(&apos;
SELECT f FROM Foo f
WHERE a = :a
AND b IN (:b)
&apos;);

$query-&amp;gt;setParameters(array(
    &apos;b&apos; =&amp;gt; array(1,2,3),
    &apos;a&apos; =&amp;gt; 1,
));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Notice that in the query the parameter :a appears before :b. And I call -&amp;gt;setParameters() with :b before :a.&lt;/p&gt;

&lt;p&gt;When running this, I get an error from &lt;a href=&quot;https://github.com/doctrine/dbal/blob/2a44c94b9b15de446ecdff3ee8581c5d56f6ed3e/lib/Doctrine/DBAL/SQLParserUtils.php#L119&quot; class=&quot;external-link&quot;&gt;Doctrine/DBAL/SQLParserUtils::expandListParameters:119&lt;/a&gt; saying that the second parameter of array_merge() is not an array.&lt;/p&gt;

&lt;p&gt;When setting the parameters in the same order than they appear in the query, it works:&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-&amp;gt;setParameters(array(
    &apos;a&apos; =&amp;gt; 1,
    &apos;b&apos; =&amp;gt; array(1,2,3),
));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This is unexpected, as I&apos;m using named parameters; the order should not matter.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13013">DBAL-171</key>
            <summary>PARAM_INT_ARRAY / PARAM_STR_ARRAY depends of parameter order</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="arnaud-lb">arnaud-lb</reporter>
                        <labels>
                    </labels>
                <created>Sun, 11 Sep 2011 13:27:34 +0000</created>
                <updated>Fri, 18 Nov 2011 16:45:43 +0000</updated>
                    <resolved>Fri, 18 Nov 2011 16:45:43 +0000</resolved>
                            <version>2.1.1</version>
                                <fixVersion>2.1.5</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="16534" author="pschwisow" created="Tue, 27 Sep 2011 22:06:07 +0000"  >&lt;p&gt;I&apos;m getting this issue too.&lt;/p&gt;

&lt;p&gt;Doctrine\ORM\Query::_doExecute() does a ksort on $sqlParams, but does not sort $types.  Doctrine\DBAL\SQLParserUtils::expandListParameters() assumes that $params and $types are in the same order.&lt;/p&gt;

&lt;p&gt;As a workaround, I added ksort($types) in _doExecute(), but I&apos;m not sure if this is the proper way to handle this.&lt;/p&gt;</comment>
                    <comment id="16867" author="beberlei" created="Fri, 18 Nov 2011 16:45:43 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-161] Character Set of Database not UTF-8</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-161</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi Guys, &lt;/p&gt;

&lt;p&gt;I was working with symfony command line and created the database with the app/console doctrine:create:database &lt;/p&gt;

&lt;p&gt;Though the characterset I specified was UTF-8 , it created Latin character set . &lt;/p&gt;

&lt;p&gt;@elliot was right too, the create database is not using any character set &lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L328&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MySqlPlatform.php#L328&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;You can see the issue created at &lt;a href=&quot;https://github.com/symfony/symfony/issues/2044&quot; class=&quot;external-link&quot;&gt;https://github.com/symfony/symfony/issues/2044&lt;/a&gt; and later Fabien confirmed the bug is related to Doctrine .&lt;/p&gt;

&lt;p&gt;I am not sure its a Bug or a feature I am asking .&lt;/p&gt;

&lt;p&gt;Thanks&lt;/p&gt;</description>
                <environment>Ubuntu</environment>
            <key id="13002">DBAL-161</key>
            <summary>Character Set of Database not UTF-8</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="harikt">Hari K T</reporter>
                        <labels>
                    </labels>
                <created>Wed, 7 Sep 2011 17:08:27 +0000</created>
                <updated>Tue, 20 Nov 2012 06:33:33 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:49:06 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17929" author="beberlei" created="Sat, 5 May 2012 11:49:06 +0000"  >&lt;p&gt;Yes these are not connected, however we changed the default collation to UTF-8 for DBAL 2.3&lt;/p&gt;</comment>
                    <comment id="19009" author="ivan1986" created="Tue, 20 Nov 2012 06:31:39 +0000"  >&lt;p&gt;not fixed or broken now&lt;br/&gt;
doctrine:create:database still create database whis latin1 charset&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/issues/49&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/issues/49&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-160] Github-PR-51 by jheth: OCI8Statement doesn&apos;t support first query parameter being null</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-160</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 jheth:&lt;/p&gt;

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

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

&lt;p&gt;Patch for OCI8Statement to support param&lt;span class=&quot;error&quot;&gt;&amp;#91;0&amp;#93;&lt;/span&gt; being null. Switched isset to array_key_exists. Added test that demonstrates the bug and confirms the fix.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12983">DBAL-160</key>
            <summary>Github-PR-51 by jheth: OCI8Statement doesn&apos;t support first query parameter being null</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>Tue, 30 Aug 2011 18:08:58 +0000</created>
                <updated>Tue, 30 Aug 2011 18:15:07 +0000</updated>
                    <resolved>Tue, 30 Aug 2011 18:15:07 +0000</resolved>
                                            <fixVersion>2.1.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-158] Sqlite Platform doesn&apos;t set a proper mapping for &quot;double precision&quot; to act as float.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-158</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a column in an entity, defined as &quot;float&quot; type.&lt;br/&gt;
When I run my phpunit tests (which are defined to use sqlite, whereas my production and development environment uses mysql), I get the following exception:&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;Doctrine\DBAL\DBALException: Unknown database type double precision requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Looking at AbstractPlatform.php, line 1972, function &quot;getFloatDeclarationSQL&quot; returns &apos;DOUBLE PRECISION&apos;.&lt;br/&gt;
Where other platforms have in their &quot;initializeDoctrineTypeMappings&quot; method a mapping such as:&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;&apos;double precision&apos; =&amp;gt; &apos;float&apos;,
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;, SqlitePlatform.php doesn&apos;t have such a mapping. &lt;/p&gt;</description>
                <environment>Ubuntu Linux 11.04&lt;br/&gt;
PHP 5.3.5</environment>
            <key id="12966">DBAL-158</key>
            <summary>Sqlite Platform doesn&apos;t set a proper mapping for &quot;double precision&quot; to act as float.</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="gshockoman">Doron Gutman</reporter>
                        <labels>
                    </labels>
                <created>Wed, 24 Aug 2011 14:03:04 +0000</created>
                <updated>Sun, 30 Oct 2011 18:54:26 +0000</updated>
                    <resolved>Sun, 30 Oct 2011 18:54:26 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.5</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16573" author="ratius" created="Tue, 11 Oct 2011 04:54:26 +0000"  >&lt;p&gt;I have encountered the same issue while using sqlite. I have made a simple fix in the platform class, as seen in the patch I provided which hopefully fixes the issue.&lt;/p&gt;</comment>
                    <comment id="16730" author="beberlei" created="Sun, 30 Oct 2011 18:54:26 +0000"  >&lt;p&gt;Was fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11070" name="0001-Fix-for-DBAL-158-where-double-precision-was-not-work.patch" size="3401" author="ratius" created="Tue, 11 Oct 2011 04:54:49 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-152] Github-PR-49 by juokaz: Ignore sysdiagrams table from a list</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-152</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 &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

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

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

&lt;p&gt;Fix for the &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-114&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-114&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12944">DBAL-152</key>
            <summary>Github-PR-49 by juokaz: Ignore sysdiagrams table from a list</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:15 +0000</created>
                <updated>Tue, 22 Nov 2011 23:14:48 +0000</updated>
                    <resolved>Tue, 22 Nov 2011 23:14:49 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16907" author="stof" created="Tue, 22 Nov 2011 22:43:59 +0000"  >&lt;p&gt;This PR has been merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-151] Github-PR-50 by dteoh: Made custom Oracle NLS_DATE_FORMAT more compatible with Doctrine.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-151</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 &lt;/p&gt;
{username}
&lt;p&gt;:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="12943">DBAL-151</key>
            <summary>Github-PR-50 by dteoh: Made custom Oracle NLS_DATE_FORMAT more compatible with Doctrine.</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:45:32 +0000</created>
                <updated>Tue, 22 Nov 2011 23:16:33 +0000</updated>
                    <resolved>Tue, 22 Nov 2011 23:16:33 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16906" author="stof" created="Tue, 22 Nov 2011 22:42:51 +0000"  >&lt;p&gt;The corresponding PR has been closed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-148] Foreign key creation fails with MySQL 5.1.54</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-148</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;doctrine orm:schema-tool:create&lt;/p&gt;

&lt;p&gt;returns &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: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &apos;Position(id)&apos; at line 1  &lt;/p&gt;

&lt;p&gt;The problem seem to be that the create commande creates the following SQL syntax&lt;br/&gt;
ALTER TABLE Job ADD FOREIGN KEY (position_id) REFERENCES Position(id);&lt;/p&gt;

&lt;p&gt;which doesn&apos;t work. If I use the following (added a space between Postion and (id) in the end) it works.&lt;br/&gt;
ALTER TABLE Job ADD FOREIGN KEY (position_id) REFERENCES Position (id);&lt;/p&gt;

&lt;p&gt;Patch for AbstractPlatform.php attached.&lt;/p&gt;</description>
                <environment>MySQL 5.1.54, PHP 5.3.5, Ubuntu 11.04, Zend Framework 1.11.10</environment>
            <key id="12926">DBAL-148</key>
            <summary>Foreign key creation fails with MySQL 5.1.54</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="frecon">Frej Connolly</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Aug 2011 15:06:49 +0000</created>
                <updated>Thu, 18 Aug 2011 20:16:54 +0000</updated>
                    <resolved>Thu, 18 Aug 2011 20:16:54 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16354" author="beberlei" created="Thu, 18 Aug 2011 20:16:54 +0000"  >&lt;p&gt;Fixed and merged 2.1.x&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11055" name="git_commit_9242fb332baaaeb81be4.txt" size="373" author="frecon" created="Tue, 16 Aug 2011 15:29:49 +0000" />
                    <attachment id="11053" name="Job.php" size="884" author="frecon" created="Tue, 16 Aug 2011 15:06:49 +0000" />
                    <attachment id="11054" name="orm_schema-tool_create--dump-sql.txt" size="1234" author="frecon" created="Tue, 16 Aug 2011 15:06:49 +0000" />
                    <attachment id="11052" name="Position.php" size="376" author="frecon" created="Tue, 16 Aug 2011 15:06:49 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-147] PostgreSqlSchemaManager fails to set foreign key onDelete/Update option properly if table has &apos;SET NULL&apos; or &apos;SET DEFAULT&apos; foreign key constraints</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-147</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This table structure: &lt;br/&gt;
CREATE TABLE t1 (id INT NOT NULL, PRIMARY KEY(id));&lt;br/&gt;
CREATE TABLE t2 (id INT NOT NULL, fk_id INT DEFAULT NULL);&lt;br/&gt;
ALTER TABLE t2 ADD FOREIGN KEY (fk_id) REFERENCES t1(id) ON DELETE SET NULL NOT DEFERRABLE INITIALLY IMMEDIATE;&lt;/p&gt;

&lt;p&gt;will cause the listTableForeignKeys to produce incorrect results for the onDelete/Update constraints (the &apos;DEFAULT&apos; or &apos;NULL&apos; in &apos;SET DEFAULT&apos; or &apos;SET NULL&apos; respectively gets cut off).&lt;/p&gt;

&lt;p&gt;This looks to be fixed in the main branch.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12922">DBAL-147</key>
            <summary>PostgreSqlSchemaManager fails to set foreign key onDelete/Update option properly if table has &apos;SET NULL&apos; or &apos;SET DEFAULT&apos; foreign key 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="phekmat">Payam Hekmat</reporter>
                        <labels>
                    </labels>
                <created>Mon, 15 Aug 2011 11:25:02 +0000</created>
                <updated>Sat, 27 Aug 2011 15:32:36 +0000</updated>
                    <resolved>Sat, 27 Aug 2011 15:32:36 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16377" author="kmdm" created="Fri, 26 Aug 2011 10:20:42 +0000"  >&lt;p&gt;Seems to be fixed in:-&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/commit/208f995607a544f9606c83d36752a9fd96ed9e64&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/208f995607a544f9606c83d36752a9fd96ed9e64&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Would definitely be nice to have that ported to the 2.1.x branch.&lt;/p&gt;</comment>
                    <comment id="16385" author="beberlei" created="Sat, 27 Aug 2011 15:32:36 +0000"  >&lt;p&gt;Fixed and merged for 2.1.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-146] Mssql platform TOP and DISTINCT ordering issue</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-146</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When doing a limit and a distinct query, DBAL generates an SQL statement in the form of SELECT TOP X DISTINCT, which SqlSrv does not like at all. Simply moving the the DISTINCT back to the start fixes this issue.&lt;/p&gt;

&lt;p&gt;As far as I can see this is caused by the preg_replace in doModifyLimitQuery. Attached is a patch that makes it slightly more aware.  There may be other phrases to check for, but none that I&apos;ve come across yet.&lt;/p&gt;

&lt;p&gt;Patch attached. &lt;/p&gt;</description>
                <environment>Windows 2008 R2 SqlSrv 2008 R2 IIS 7.5, fully patched</environment>
            <key id="12911">DBAL-146</key>
            <summary>Mssql platform TOP and DISTINCT ordering issue</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="the_angry_angel">Karl Southern</reporter>
                        <labels>
                    </labels>
                <created>Wed, 10 Aug 2011 10:14:54 +0000</created>
                <updated>Mon, 9 Jan 2012 13:30:27 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 13:30:27 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17199" author="beberlei" created="Mon, 9 Jan 2012 13:30:27 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11046" name="FixDisctinctTopOrderingIssue.patch" size="481" author="the_angry_angel" created="Wed, 10 Aug 2011 10:14:54 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-142] Mapping Driver for Oracle does not know what to do with blobs, throws DBAL Exception for types &quot;blob&quot; and &quot;long raw&quot;.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-142</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When attempting to reverse engineer an existing Oracle 11g database an exception is thrown (by DBAL) complaining that the type blob is unknown. I believe this is coming from AbstractPlatform.php. I attempted to solve the problem by add a type mapping for blob in PDOOracle\Driver.php (blob =&amp;gt; text) and it now complains that &quot;long raw&quot; is unknown.&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 long raw requested, Doctrine\DBAL\Platforms\OraclePlatform may not support it.&lt;/p&gt;</description>
                <environment>CentOS 5.0, PHP 5.3.6, Oracle 11g EE, Symfony 2.0, Doctrine 2.1</environment>
            <key id="12893">DBAL-142</key>
            <summary>Mapping Driver for Oracle does not know what to do with blobs, throws DBAL Exception for types &quot;blob&quot; and &quot;long raw&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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="digitalmechanic">Ed Anderson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Aug 2011 10:41:55 +0000</created>
                <updated>Tue, 13 Mar 2012 17:09:59 +0000</updated>
                    <resolved>Sun, 30 Oct 2011 22:25:29 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="16737" author="beberlei" created="Sun, 30 Oct 2011 22:25:29 +0000"  >&lt;p&gt;Implemented blob support&lt;/p&gt;</comment>
                    <comment id="17562" author="seandiovza" created="Tue, 13 Mar 2012 17:09:59 +0000"  >&lt;p&gt;Sorry. i am new in it, i am developing and app in symfony 2, and when i try to import the entities from the database i get the error: &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 blob requested, Doctrine\DBAL\Platform may not support it.&lt;/p&gt;

&lt;p&gt;i am using oracle 11g, i did try (blob =&amp;gt; &apos;text&apos;)  in oraclepatform.php but is later send me more errors, i cant understand, i want know how can i fix it i anyway to at least can import the entities, thank you&lt;/p&gt;



</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                <outwardlinks description="duplicates">
                            <issuelink>
            <issuekey id="11273">DBAL-6</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-141] PDO Connection Failure through TNS - PDOOracle/Driver.php line 56</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-141</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;On line 56 of the file ./vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/PDOOracle/Driver.php:&lt;/p&gt;

&lt;p&gt;The line reads:&lt;br/&gt;
$dsn .= &apos;))(CONNECT_DATA=(SID=&apos; . $params&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;dbname&amp;#39;&amp;#93;&lt;/span&gt; . &apos;)))&apos;; should read  $dsn .= &apos;))(CONNECT_DATA=(SERVICE_NAME=&apos; . $params&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;dbname&amp;#39;&amp;#93;&lt;/span&gt; . &apos;)))&apos;;&lt;/p&gt;

&lt;p&gt;If both SID and SERVICE_NAME need to be available for use, then logic should be inserted to determine which method is being used.&lt;/p&gt;</description>
                <environment>CentOS 6.0, Symfony 2.0.0 (RC), PHP 5.3.6, Oracle 11g Enterprise, Oracle InstantClient 11.0.2</environment>
            <key id="12887">DBAL-141</key>
            <summary>PDO Connection Failure through TNS - PDOOracle/Driver.php line 56</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="digitalmechanic">Ed Anderson</reporter>
                        <labels>
                    </labels>
                <created>Mon, 1 Aug 2011 14:52:50 +0000</created>
                <updated>Sun, 30 Oct 2011 19:21:45 +0000</updated>
                    <resolved>Sun, 30 Oct 2011 19:21:45 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16356" author="beberlei" created="Thu, 18 Aug 2011 20:46:26 +0000"  >&lt;p&gt;Whats the difference? the Use of SID works for me.&lt;/p&gt;</comment>
                    <comment id="16357" author="yourwebmaker" created="Thu, 18 Aug 2011 21:03:36 +0000"  >&lt;p&gt;Hi Benjamin,&lt;/p&gt;

&lt;p&gt;There are some Oracle connections that are setup from SERVICE_NAME (without a SID).&lt;br/&gt;
In my company we always use SERVICE_NAME to setup a connection and we needed to modify the OCI connection driver from Doctrine to works fine in our environment&lt;/p&gt;

&lt;p&gt;Take a look in: &lt;a href=&quot;http://stackoverflow.com/questions/43866/how-sid-is-different-from-service-name-in-oracle-tnsnames-ora&quot; class=&quot;external-link&quot;&gt;http://stackoverflow.com/questions/43866/how-sid-is-different-from-service-name-in-oracle-tnsnames-ora&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="16362" author="digitalmechanic" created="Fri, 19 Aug 2011 12:23:47 +0000"  >&lt;p&gt;There&apos;s a subtle difference between SID and SERVICE_NAME and I think the code should somehow account for the difference. Here&apos;s why... An SID points to a physical instance at the database level (Service Identifier). If you ask for a SID you only get one shot at the connection (and hopefully the database is up). That&apos;s the legacy method of connecting to Oracle. &lt;/p&gt;

&lt;p&gt;However, for environments that have HA installations of Oracle using RAC, the SERVICE_NAME is what is used to point to a database instance (instead of a physical Service ID).  If a given database instance is down and you&apos;re using SID - meaning you&apos;re looking to connect to a specific database, the connection fails. If you&apos;re in an environment with multiple instances of the target database, then RAC figures out where to send you if you&apos;re using SERVICE_NAME and you will land on an useable instance. This is the typical way to connect when Oracle is load-balanced and in a high-availability environment.&lt;/p&gt;</comment>
                    <comment id="16423" author="beberlei" created="Sun, 4 Sep 2011 12:56:57 +0000"  >&lt;p&gt;How can we solve this issue in a BC way? I wouldn&apos;t know if I can just change it the way suggested and it will work for everyone.&lt;/p&gt;
</comment>
                    <comment id="16734" author="beberlei" created="Sun, 30 Oct 2011 19:21:45 +0000"  >&lt;p&gt;Fixed by adding a new parameter &apos;service&apos; which has to be true to use SERVICE_NAME instead of SID.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12835">DBAL-136</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-144] Oracle tables without indices are not handled during convert - this behavior should be tolerant since Oracle does not require indicies.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-144</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;While it is good practice to always have at least one index defined on every table, in some cases (such as temporary tables) indices are not necessary. Oracle does not enforce creating indices for every table, and it is common to create some tables without them.  The Table.php (line 556) method throws an exception if an index is not found for a given table.  It&apos;s obvious there are ramifications for findByPK( ) auto-generated methods - these should be generated for every case where PK exists to accommodate Oracle and tolerate variances from accepted best-practices with most other database platforms.&lt;/p&gt;</description>
                <environment>CentOS 5.0, PHP 5.3.6, Oracle 11g EE, Symfony 2.0 Doctrine 2.1</environment>
            <key id="12895">DBAL-144</key>
            <summary>Oracle tables without indices are not handled during convert - this behavior should be tolerant since Oracle does not require indicies.</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="digitalmechanic">Ed Anderson</reporter>
                        <labels>
                    </labels>
                <created>Tue, 2 Aug 2011 13:33:22 +0000</created>
                <updated>Mon, 14 Nov 2011 22:44:07 +0000</updated>
                    <resolved>Mon, 14 Nov 2011 22:44:07 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.5</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16735" author="beberlei" created="Sun, 30 Oct 2011 19:24:40 +0000"  >&lt;p&gt;When does this error happen?&lt;/p&gt;

&lt;p&gt;This method is called through Table::getPrimaryKey(). Does this happen during the &quot;doctrine:schema*&quot; toolchain?&lt;/p&gt;</comment>
                    <comment id="16738" author="digitalmechanic" created="Sun, 30 Oct 2011 23:46:48 +0000"  >&lt;p&gt;This happens in the doctrine:schema toolchain. &lt;/p&gt;</comment>
                    <comment id="16830" author="beberlei" created="Mon, 14 Nov 2011 22:44:07 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-140] Problem with null-length string comparison in Schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-140</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If you compare a column with a string type and length of null to its database value with the default length then Comparator reports a difference. It should automatically convert NULL to 255 (default for all platforms).&lt;/p&gt;</description>
                <environment></environment>
            <key id="12881">DBAL-140</key>
            <summary>Problem with null-length string comparison in 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 31 Jul 2011 11:34:39 +0000</created>
                <updated>Sun, 31 Jul 2011 11:54:32 +0000</updated>
                    <resolved>Sun, 31 Jul 2011 11:54:32 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.1.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16252" author="beberlei" created="Sun, 31 Jul 2011 11:54:32 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-138] Connection::quote should convert non PDO types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-138</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It currently doesn&apos;t so $connection-&amp;gt;quote(&apos;foo&apos;, Type::STRING) doesn&apos;t work.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12852">DBAL-138</key>
            <summary>Connection::quote should convert non PDO types</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="asm89">Alexander</reporter>
                        <labels>
                    </labels>
                <created>Mon, 25 Jul 2011 13:53:57 +0000</created>
                <updated>Sun, 31 Jul 2011 10:21:38 +0000</updated>
                    <resolved>Sun, 31 Jul 2011 10:21:38 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16201" author="asm89" created="Mon, 25 Jul 2011 14:35:23 +0000"  >&lt;p&gt;PR on github for this: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/39&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/39&lt;/a&gt;.&lt;/p&gt;</comment>
                    <comment id="16251" author="beberlei" created="Sun, 31 Jul 2011 10:21:38 +0000"  >&lt;p&gt;Merged PR into master&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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-227] Driver for PostgreSQL: DBAL fails to list foreign keys if multiple tables with the same name exist, each in a different schema</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-227</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;PHP Fatal error:  Uncaught exception &apos;PDOException&apos; with message &apos;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&apos; in /usr/share/php/Doctrine/DBAL/Connection.php:620&lt;br/&gt;
Stack trace:&lt;br/&gt;
#0 /usr/share/php/Doctrine/DBAL/Connection.php(620): PDO-&amp;gt;query(&apos;SELECT r.connam...&apos;)&lt;br/&gt;
#1 /usr/share/php/Doctrine/DBAL/Connection.php(571): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;SELECT r.connam...&apos;, Array)&lt;br/&gt;
#2 /usr/share/php/Doctrine/DBAL/Schema/AbstractSchemaManager.php(262): Doctrine\DBAL\Connection-&amp;gt;fetchAll(&apos;SELECT r.connam...&apos;)&lt;br/&gt;
#3 /usr/share/php/Doctrine/DBAL/Schema/AbstractSchemaManager.php(229): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableForeignKeys(&apos;logs&apos;)&lt;br/&gt;
#4 /usr/share/php/Doctrine/DBAL/Schema/AbstractSchemaManager.php(214): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableDetails(&apos;logs&apos;)&lt;br/&gt;
#5 /usr/share/php/Doctrine/DBAL/Schema/AbstractSchemaManager.php(764): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTables()&lt;br/&gt;
#6 /home/phopfgartner/devel/doctrine_tests/conn.php in /usr/share/php/Doctrine/DBAL/Connection.php on line 620&lt;/p&gt;


&lt;p&gt;The failing SQL statement is:&lt;/p&gt;

&lt;p&gt;SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, true) as condef&lt;br/&gt;
                  FROM pg_catalog.pg_constraint r&lt;br/&gt;
                  WHERE r.conrelid =&lt;br/&gt;
                  (&lt;br/&gt;
                      SELECT c.oid&lt;br/&gt;
                      FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n&lt;br/&gt;
                      WHERE n.nspname NOT IN (&apos;pg_catalog&apos;, &apos;information_schema&apos;, &apos;pg_toast&apos;) AND c.relname = &apos;logs&apos; AND n.oid = c.relnamespace&lt;br/&gt;
                  )&lt;br/&gt;
                  AND r.contype = &apos;f&apos;&lt;/p&gt;

&lt;p&gt;Indeed, if I execute:&lt;/p&gt;

&lt;p&gt;SELECT c.relname, n.nspname&lt;br/&gt;
FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n&lt;br/&gt;
WHERE n.nspname NOT IN (&apos;pg_catalog&apos;, &apos;information_schema&apos;, &apos;pg_toast&apos;) AND c.relname = &apos;logs&apos; AND n.oid = c.relnamespace&lt;/p&gt;

&lt;p&gt;I get:&lt;/p&gt;

&lt;p&gt;relname  | nspname&lt;br/&gt;
===============&lt;br/&gt;
logs         | sbr_stats&lt;br/&gt;
logs         | public&lt;/p&gt;

&lt;p&gt;Regards,&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</description>
                <environment>Ubuntu 10.04</environment>
            <key id="13472">DBAL-227</key>
            <summary>Driver for PostgreSQL: DBAL fails to list foreign keys if multiple tables with the same name exist, each in a different 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="6">Invalid</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="phopfgartner">Peter Hopfgartner</reporter>
                        <labels>
                    </labels>
                <created>Thu, 23 Feb 2012 10:13:02 +0000</created>
                <updated>Mon, 5 Mar 2012 09:43:53 +0000</updated>
                    <resolved>Mon, 5 Mar 2012 09:43:53 +0000</resolved>
                            <version>2.2.1</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17504" author="beberlei" created="Sat, 3 Mar 2012 20:47:53 +0000"  >&lt;p&gt;Are you sure you are on 2.2.1? Because for me the query there 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;SELECT r.conname, pg_catalog.pg_get_constraintdef(r.oid, &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) as condef
                  FROM pg_catalog.pg_constraint r
                  WHERE r.conrelid =
                  (
                      SELECT c.oid
                      FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n
                      WHERE n.nspname NOT IN (&apos;pg_catalog&apos;, &apos;information_schema&apos;, &apos;pg_toast&apos;) AND c.relname = &apos;ddc227logs&apos; AND n.nspname = ANY(string_to_array((select setting from pg_catalog.pg_settings where name = &apos;search_path&apos;),&apos;,&apos;)) AND n.oid = c.relnamespace
                  )
                  AND r.contype = &apos;f&apos;&quot;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Which gives the correct result.&lt;/p&gt;</comment>
                    <comment id="17516" author="phopfgartner" created="Mon, 5 Mar 2012 09:40:21 +0000"  >&lt;p&gt;Your&apos;re right! It was  version 2.1. With 2.2 it&apos;s perfectly fine.&lt;/p&gt;

&lt;p&gt;Sorry the noise,&lt;/p&gt;

&lt;p&gt;Peter&lt;/p&gt;</comment>
                    <comment id="17517" author="beberlei" created="Mon, 5 Mar 2012 09:43:53 +0000"  >&lt;p&gt;There won&apos;t be another DBAL 2.1 release so i am closing this, please update your library.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-224] Allow drop index and pk from table instance</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-224</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13445">DBAL-224</key>
            <summary>Allow drop index and pk from table instance</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>Mon, 13 Feb 2012 15:25:26 +0000</created>
                <updated>Mon, 13 Feb 2012 16:10:26 +0000</updated>
                    <resolved>Mon, 13 Feb 2012 16:10:26 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17420" author="beberlei" created="Mon, 13 Feb 2012 16:10:26 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-220] Some platforms require specific index handling</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-220</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;ul&gt;
	&lt;li&gt;SQL Server/Azure for example requires strict differentiation between CLUSTERED/NON-CLUSTERED indexes.&lt;/li&gt;
	&lt;li&gt;MySQL can create full text indexes&lt;/li&gt;
	&lt;li&gt;etcetc.&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment></environment>
            <key id="13439">DBAL-220</key>
            <summary>Some platforms require specific index handling</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>Mon, 13 Feb 2012 08:59:38 +0000</created>
                <updated>Tue, 29 Jan 2013 03:06:08 +0000</updated>
                    <resolved>Mon, 13 Feb 2012 10:33:17 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17413" author="beberlei" created="Mon, 13 Feb 2012 10:33:16 +0000"  >&lt;p&gt;Implemented.&lt;/p&gt;</comment>
                    <comment id="17414" author="beberlei" created="Mon, 13 Feb 2012 10:36:08 +0000"  >&lt;p&gt;SQL Server can now create clustered or non-clustered indexes 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;$table-&amp;gt;setPrimaryKey(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;id&quot;&lt;/span&gt;));
$table-&amp;gt;getIndex(&apos;primary&apos;)-&amp;gt;addFlag(&apos;nonclustered&apos;);
$table-&amp;gt;addIndex(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;column1&quot;&lt;/span&gt;), &lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;);
$table-&amp;gt;getIndex(&lt;span class=&quot;code-quote&quot;&gt;&quot;name&quot;&lt;/span&gt;)-&amp;gt;addFlag(&lt;span class=&quot;code-quote&quot;&gt;&quot;clustered&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="19433" author="deeky666" created="Tue, 29 Jan 2013 03:06:08 +0000"  >&lt;p&gt;Is there any way to define the flags via class metadata? Shouldn&apos;t there be the possibility to pass the flags to a class metadata index/id definition?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-223] Add DBAL TableGenerator</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-223</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;/**
 * Table ID Generator &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; those poor languages that are missing sequences.
 *
 * WARNING: The Table Id Generator clones a second independent database
 * connection to work correctly. This means using the generator requests that
 * generate IDs will have two open database connections. This is necessary to
 * be safe from transaction failures in the main connection. Make sure to only
 * ever use one TableGenerator otherwise you end up with many connections.
 *
 * TableID Generator does not work with SQLite.
 *
 * The TableGenerator does not take care of creating the SQL Table itself. You
 * should look at the `TableGeneratorSchemaVisitor` to &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; you.
 * Otherwise the schema &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a table looks like:
 *
 * CREATE sequences (
 *   sequence_name VARCHAR(255) NOT NULL,
 *   sequence_value INT NOT NULL DEFAULT &apos;1&apos;,
 *   sequence_increment_by INT NOT NULL DEFAULT &apos;1&apos;,
 *   PRIMARY KEY (table_name)
 * );
 *
 * Technically &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; generator works as follows:
 *
 * 1. Use a robust transaction serialization level.
 * 2. Open transaction
 * 3. Acquire a read lock on the table row (SELECT .. FOR UPDATE)
 * 4. Increment current value by one and write back to database
 * 5. Commit transaction
 *
 * If you are using a sequence_increment_by value that is larger than one the
 * ID Generator will keep incrementing values until it hits the incrementation
 * gap before issuing another query.
 *
 * If no row is present &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a given sequence a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; one will be created with the
 * &lt;span class=&quot;code-keyword&quot;&gt;default&lt;/span&gt; values &apos;value&apos; = 1 and &apos;increment_by&apos; = 1
 *
 * @author Benjamin Eberlei &amp;lt;kontakt@beberlei.de&amp;gt;
 */
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13443">DBAL-223</key>
            <summary>Add DBAL TableGenerator</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>Mon, 13 Feb 2012 13:56:49 +0000</created>
                <updated>Mon, 13 Feb 2012 14:11:35 +0000</updated>
                    <resolved>Mon, 13 Feb 2012 13:57:11 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17418" author="beberlei" created="Mon, 13 Feb 2012 13:57:11 +0000"  >&lt;p&gt;Implemented under the &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-450&quot; title=&quot;Add TableGenerator Implementation&quot;&gt;DDC-450&lt;/a&gt; label, will get into ORM through this implementation.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                                <inwardlinks description="is required for">
                            <issuelink>
            <issuekey id="11100">DDC-450</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-222] Add Azure Platform</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-222</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;SQL Azure has some platform specific SQL on top of SQL Server 2008 mainly to support Federations&lt;/p&gt;</description>
                <environment></environment>
            <key id="13441">DBAL-222</key>
            <summary>Add Azure 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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Feb 2012 11:23:03 +0000</created>
                <updated>Mon, 13 Feb 2012 11:47:35 +0000</updated>
                    <resolved>Mon, 13 Feb 2012 11:47:35 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17416" author="beberlei" created="Mon, 13 Feb 2012 11:47:35 +0000"  >&lt;p&gt;Implemented.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-216] Add ext/sqlsrv support</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-216</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Currently we only have support for PDO_SQLSRV, however some of the Azure/Advanced functionality strictly needs the sqlsrv extension.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13413">DBAL-216</key>
            <summary>Add ext/sqlsrv support</summary>
                <type id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/task.png">Task</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, 5 Feb 2012 10:56:57 +0000</created>
                <updated>Mon, 13 Feb 2012 11:21:40 +0000</updated>
                    <resolved>Mon, 13 Feb 2012 11:21:40 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17415" author="beberlei" created="Mon, 13 Feb 2012 11:21:40 +0000"  >&lt;p&gt;Implemented.&lt;/p&gt;</comment>
                </comments>
                    <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-212] Unknown database type longvarchar requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-212</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;SqlitePlatform lacks &quot;longvarchar&quot; type mapping  which is extensively used by browsers sqlite databases (e.g. places in FF, history in Chrome).&lt;br/&gt;
Trying to get a schema ends up with &apos;Unknown database type longvarchar requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support it.&apos; message.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13393">DBAL-212</key>
            <summary>Unknown database type longvarchar requested, Doctrine\DBAL\Platforms\SqlitePlatform may not support 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="1">Fixed</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="neurocitizen">neurocitizen</reporter>
                        <labels>
                    </labels>
                <created>Sat, 28 Jan 2012 08:28:17 +0000</created>
                <updated>Sat, 28 Jan 2012 09:31:53 +0000</updated>
                    <resolved>Sat, 28 Jan 2012 09:31:53 +0000</resolved>
                                            <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17341" author="beberlei" created="Sat, 28 Jan 2012 09:31:53 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-213] Fatal Error on 2.2 when running SQLServer against ORM Testsuite</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-213</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13395">DBAL-213</key>
            <summary>Fatal Error on 2.2 when running SQLServer against ORM 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>Sun, 29 Jan 2012 12:40:45 +0000</created>
                <updated>Sun, 29 Jan 2012 12:42:38 +0000</updated>
                    <resolved>Sun, 29 Jan 2012 12:42:38 +0000</resolved>
                            <version>2.2</version>
                                <fixVersion>2.2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17352" author="beberlei" created="Sun, 29 Jan 2012 12:42:13 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-211] wrong where clause in PostgreSqlPlatform::getTableWhereClause</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-211</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have the folowing table structure:&lt;/p&gt;

&lt;p&gt;Schema &quot;public&quot;:  with one table called &quot;users&quot;&lt;br/&gt;
Schema &quot;forums&quot;: with one table called &quot;users&quot; &lt;/p&gt;


&lt;p&gt;methods like &lt;tt&gt;PostgreSqlPlatform::getListTableForeignKeysSQL($table, $database = &apos;&apos;)&lt;/tt&gt; should list FK inside &lt;tt&gt;$table&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;the default search path is &quot;public,pg_catalog&quot;&lt;/p&gt;


&lt;p&gt;calling &lt;tt&gt;PostgreSqlPlatform::getListTableForeignKeysSQL(&apos;users&apos;)&lt;/tt&gt; it shuld extract the FK from &lt;tt&gt;public.users&lt;/tt&gt; table, but this is the current result:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&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;/tt&gt;&lt;/p&gt;

&lt;p&gt;this exception is thrown because &lt;tt&gt;PostgreSqlPlatform::getTableWhereClause&lt;/tt&gt; do not cosider the current search path.&lt;/p&gt;

&lt;p&gt;i propose the following implementation for &lt;tt&gt;PostgreSqlPlatform::getTableWhereClause&lt;/tt&gt;&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;private&lt;/span&gt; function getTableWhereClause($table, $classAlias = &apos;c&apos;, $namespaceAlias = &apos;n&apos;)
    {
        $whereClause = $namespaceAlias.&lt;span class=&quot;code-quote&quot;&gt;&quot;.nspname NOT IN (&apos;pg_catalog&apos;, &apos;information_schema&apos;, &apos;pg_toast&apos;) AND &quot;&lt;/span&gt;;
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (strpos($table, &lt;span class=&quot;code-quote&quot;&gt;&quot;.&quot;&lt;/span&gt;) !== &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
            list($schema, $table) = explode(&lt;span class=&quot;code-quote&quot;&gt;&quot;.&quot;&lt;/span&gt;, $table);
            $whereClause .= &lt;span class=&quot;code-quote&quot;&gt;&quot;$classAlias.relname = &apos;&quot;&lt;/span&gt; . $table . &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; AND $namespaceAlias.nspname = &apos;&quot;&lt;/span&gt; . $schema . &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt;;
        } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
            &lt;span class=&quot;code-comment&quot;&gt;// $whereClause .= &lt;span class=&quot;code-quote&quot;&gt;&quot;$classAlias.relname = &apos;&quot;&lt;/span&gt; . $table . &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt;; // &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; was the current implementation
&lt;/span&gt;            $whereClause .= &lt;span class=&quot;code-quote&quot;&gt;&quot;$classAlias.relname = &apos;&quot;&lt;/span&gt; . $table . &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; AND $namespaceAlias.nspname = ANY(string_to_array((select setting from pg_catalog.pg_settings where name = &apos;search_path&apos;),&apos;,&apos;))&quot;&lt;/span&gt;;
        }

        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $whereClause;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;this implementation will restrict the search range only to current &quot;search_path&quot;.&lt;/p&gt;


&lt;p&gt;(sorry for my english)&lt;/p&gt;</description>
                <environment>ubuntu + postgres</environment>
            <key id="13392">DBAL-211</key>
            <summary>wrong where clause in PostgreSqlPlatform::getTableWhereClause</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="goetas">Asmir Mustafic</reporter>
                        <labels>
                    </labels>
                <created>Thu, 26 Jan 2012 08:40:33 +0000</created>
                <updated>Sat, 28 Jan 2012 09:55:23 +0000</updated>
                    <resolved>Sat, 28 Jan 2012 09:55:23 +0000</resolved>
                                            <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17342" author="beberlei" created="Sat, 28 Jan 2012 09:39:07 +0000"  >&lt;p&gt;This looks very good.&lt;/p&gt;</comment>
                    <comment id="17343" author="beberlei" created="Sat, 28 Jan 2012 09:55:23 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-210] PDOOracle and OCI8 Drivers have a wrong implementation for their getDatabase function</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-210</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The method getDatabase in both the PDOOracle &amp;amp; OCI8 drivers return the &quot;user&quot; param not the &quot;dbname&quot; as expected and defined in DBAL/Driver interface. Compare their implementation with that of the MySql driver for a proper implementation. This must have been an oversight.&lt;/p&gt;</description>
                <environment>Any</environment>
            <key id="13389">DBAL-210</key>
            <summary>PDOOracle and OCI8 Drivers have a wrong implementation for their getDatabase 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="7">Can&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="marc.campeau@gmail.com">Marc Campeau</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jan 2012 18:01:26 +0000</created>
                <updated>Sat, 28 Jan 2012 09:58:05 +0000</updated>
                    <resolved>Sat, 28 Jan 2012 09:58:05 +0000</resolved>
                            <version>2.1.5</version>
                <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                <version>2.2-RC1/RC2</version>
                <version>2.2.0-RC3</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17336" author="beberlei" created="Wed, 25 Jan 2012 21:45:15 +0000"  >&lt;p&gt;But the user parameter is the &quot;database&quot; in oracle, the dbname is the name of the service instance.&lt;/p&gt;</comment>
                    <comment id="17340" author="marc.campeau@gmail.com" created="Thu, 26 Jan 2012 00:26:26 +0000"  >&lt;p&gt;Well to be precise, the user is the name of the schema that contains all the objects created by that user.&lt;/p&gt;

&lt;p&gt;So you connect to a SID (dbname) as a User and anything you create resides in a schema named after your user name. You could also be granted access to another schema. I&apos;m not sure how you intended this function to be used, but I needed to get from a Connection the SID it connected to and I assumed that getDatabse would yield that since there are already getUser, getPassword, getHost and getPort functions. Maybe this function doesn&apos;t really apply in the context of Oracle and the current implementation is better.&lt;/p&gt;

&lt;p&gt;As to why I needed the SID:&lt;br/&gt;
I&apos;ve been using the DBAL Migrations project and wanted to use the the postUp() function to import some database dumps I&apos;ve taken with Oracle EXP and for that I need to create a connection descriptor, since this is a process that I want to automate and replicate I thought I could get the info through the connection. Maybe I&apos;ll just refactor and use the DBAL configuration values instead of asking the connection.&lt;/p&gt;</comment>
                    <comment id="17345" author="beberlei" created="Sat, 28 Jan 2012 09:57:53 +0000"  >&lt;p&gt;I say this is an oversight of us, we are not really Oracle experts and this matched our expectations compared to other vendors much better.&lt;/p&gt;

&lt;p&gt;You can use $connection-&amp;gt;getParams() to get to the database name.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-208] Uniqueidentifier MSSQL type is not supported in DBAL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-208</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;My Symfony2 projects currently use main trunks of the Doctrine projects, the latest release merge into this branch was 2.2.0-BETA2, that&apos;s why I mentioned it in&quot;Affected versions&quot;. Sorry if mistaken.&lt;/p&gt;

&lt;p&gt;I would like to report that MSSQL Driver/Platform still does not support the &apos;uniquidentifier&apos; field type of MSSQL.&lt;/p&gt;

&lt;p&gt;Trying to introspect the database with &lt;br/&gt;
&lt;b&gt;php app/console doctrine:mapping:import MMPTestDBBundle annotation&lt;/b&gt;&lt;br/&gt;
we get the error&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;[Doctrine\DBAL\DBALException]
  Unknown database type uniqueidentifier requested, Doctrine\DBAL\Platforms\SQLServer2008Platform may not support it.
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There is a related issue, opened and fixed in Doctrine1 project&lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DC-253&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DC-253&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Going to fix this issue in the same way. Any help greatly appreciated.&lt;/p&gt;
</description>
                <environment>Windows 7 64x&lt;br/&gt;
MS SQL 2008 R2 Express edition&lt;br/&gt;
Doctrine2, Doctrine-DBAL and Doctrine-Common are on current [master]&lt;br/&gt;
</environment>
            <key id="13380">DBAL-208</key>
            <summary>Uniqueidentifier MSSQL type is not supported in DBAL</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="rivaros">ross neacoders</reporter>
                        <labels>
                    </labels>
                <created>Mon, 23 Jan 2012 14:15:47 +0000</created>
                <updated>Sat, 24 Mar 2012 09:07:43 +0000</updated>
                    <resolved>Sat, 24 Mar 2012 09:07:43 +0000</resolved>
                            <version>2.2-BETA2</version>
                                <fixVersion>2.3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-204] Handling of explicit Schemas is wrong in comparator</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-204</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;if you are on db &quot;foo&quot; and compare table &quot;bar&quot; to &quot;foo.bar&quot;. it shouldnt drop one and create the other one. They are the same!&lt;/p&gt;</description>
                <environment></environment>
            <key id="13372">DBAL-204</key>
            <summary>Handling of explicit Schemas is wrong in 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="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, 18 Jan 2012 22:03:25 +0000</created>
                <updated>Sat, 21 Jan 2012 10:35:51 +0000</updated>
                    <resolved>Sat, 21 Jan 2012 10:35:51 +0000</resolved>
                            <version>2.2-BETA2</version>
                                <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17312" author="beberlei" created="Sat, 21 Jan 2012 10:35:51 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;

&lt;p&gt;This includes facilities to filter schema assets when creating from a SchemaManager:&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;$connection-&amp;gt;getConfiguration()-&amp;gt;setFilterSchemaAssetsExpression(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo\.bar&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Additionally in the ORM now when using a database vendor that does not support schemas the &quot;namespaced&quot; assets are removed.&lt;/p&gt;

&lt;p&gt;Say you are connected to database &quot;foo&quot; and you have an entity defined as @Table(&quot;bar.baz&quot;), then all SQL generated for that entity will be removed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-205] MySQL SchemaManager doesn&apos;t handle composite foreign keys properly</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-205</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The MySQL SchemaManager can not properly generate a Schema from the database if a table has a foreign key that spans multiple columns.&lt;br/&gt;
Therefore the comparator tries to drop the one index as individual indexes.&lt;/p&gt;

&lt;p&gt;That leads to an error if the resulting SQL is executed because these indexes do not exist (i.e. via app/console doctrine:schema:update --force)&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;symfony2#app/console doctrine:schema:update --dump-sql&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;...
ALTER TABLE table1 DROP FOREIGN KEY FK_C1B1712387FE737264DE5A5511B8B3E;
DROP INDEX IDX_C1B1712387FE7372 ON table1;
DROP INDEX IDX_C1B1712364DE5A5 ON table1;
DROP INDEX IDX_C1B17123511B8B3E ON table1;
ALTER TABLE table1 ADD CONSTRAINT FK_C1B1712387FE737264DE5A5511B8B3E FOREIGN KEY (column1, column2, column3) REFERENCES table2(column1, column2, column3);
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13375">DBAL-205</key>
            <summary>MySQL SchemaManager doesn&apos;t handle composite foreign keys properly</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="sbeining">Sascha Beining</reporter>
                        <labels>
                    </labels>
                <created>Thu, 19 Jan 2012 13:12:09 +0000</created>
                <updated>Sat, 21 Jan 2012 15:18:28 +0000</updated>
                    <resolved>Sat, 21 Jan 2012 15:18:28 +0000</resolved>
                            <version>2.1.5</version>
                                <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-202] Preparing Statements outside Transaction</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-202</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;From the mailing list:&lt;/p&gt;

&lt;p&gt;I&apos;m using DBAL 2.1 with Oracle and it appears that if I call prepare() for my SQL and cache the prepared statement for later, if I then start a new transaction and call execute() on the statement, it commits the transaction.  Is this behavior intentional?  If so, does that mean I have to prepare my statement anew for every transaction?&lt;/p&gt;

&lt;p&gt;Note that I&apos;m seeing the aforementioned behavior with code as basic as the following:&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;$stmt = $dbh-&amp;gt;prepare(&quot;INSERT INTO test_table (id, description) VALUES
(:my_id, :my_desc)&quot;);
$dbh-&amp;gt;beginTransaction();
$stmt-&amp;gt;execute(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;:my_id&quot;&lt;/span&gt; =&amp;gt; 1, &lt;span class=&quot;code-quote&quot;&gt;&quot;:my_desc&quot;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;test&quot;&lt;/span&gt;));
$dbh-&amp;gt;rollBack();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After executing the above, a record has been committed to the db.  If I had a more complex scenario involving a transaction with multiple statements where the entire transaction is inside a loop, this becomes problematic--I can&apos;t then prepare my statements outside the loop to improve performance.&lt;/p&gt;

&lt;p&gt;When I try the same thing using straight PDO, it works fine.  Can anyone else confirm this behavior?&lt;/p&gt;</description>
                <environment></environment>
            <key id="13359">DBAL-202</key>
            <summary>Preparing Statements outside Transaction</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, 15 Jan 2012 09:14:37 +0000</created>
                <updated>Sat, 5 May 2012 07:37:54 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:37:54 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17257" author="beberlei" created="Sun, 15 Jan 2012 14:34:11 +0000"  >&lt;p&gt;Are you using PDO_OCI or oci8 with Doctrine?&lt;/p&gt;</comment>
                    <comment id="17261" author="dpb587" created="Sun, 15 Jan 2012 18:08:44 +0000"  >&lt;p&gt;I had responded to him on our intranet and intended to submit a patch, but haven&apos;t yet found the time to prepare and test one. As a temporary workaround I suggested he prepare the statement inside the transaction. We are using oci8 and the following was my response and analysis:&lt;/p&gt;

&lt;p&gt;&amp;#8211;&lt;/p&gt;

&lt;p&gt;When the doctrine2 oci8 driver prepares a statement, the generated statement will forever use the active execute mode, regardless of the mode when it&apos;s actually executed. I disagree with the current behavior.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php#L60&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php#L60&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php#L182&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php#L182&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As you noted, this is not the behavior used by PDO OCI. Short-term, I think you should prepare the statement inside a transaction. Long-term, I think we should submit a patch to doctrine2, something like follows:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;add a `getExecuteMode` to `OCI8Connection`&lt;/li&gt;
	&lt;li&gt;add a `getDriverOptions` to `OCI8Connection`&lt;/li&gt;
	&lt;li&gt;remove the `$executeMode` parameter from `OCI8Statement::__construct`&lt;/li&gt;
	&lt;li&gt;remove the `$driverOptions` parameter from `OCI8Statement::__construct`&lt;/li&gt;
	&lt;li&gt;store a reference to `$dbh` to `$this-&amp;gt;&lt;em&gt;dbh` from `OCI8Statement::&lt;/em&gt;_construct`&lt;/li&gt;
	&lt;li&gt;replace `$this-&amp;gt;_executeMode` with `$this-&amp;gt;_dbh-&amp;gt;getExecuteMode()`&lt;/li&gt;
	&lt;li&gt;replace `$this-&amp;gt;_driverOptions` with `$this-&amp;gt;_dbh-&amp;gt;getDriverOptions()`&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    <comment id="17892" author="dpb587" created="Sat, 28 Apr 2012 03:13:02 +0000"  >&lt;p&gt;Created an independent test - &lt;a href=&quot;https://gist.github.com/2515100&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/2515100&lt;/a&gt;&lt;br/&gt;
Submitted a pull request - &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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-203] Fix SQLServer version mess (2003, 2005, 2008)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-203</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The current SqlSrv platform implicitly depends on SQL Server 2008. A differentation between the common versions 2003, 2005 and 2008 is necessary.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13361">DBAL-203</key>
            <summary>Fix SQLServer version mess (2003, 2005, 2008)</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>Sun, 15 Jan 2012 18:36:14 +0000</created>
                <updated>Sun, 15 Jan 2012 18:37:43 +0000</updated>
                    <resolved>Sun, 15 Jan 2012 18:37:43 +0000</resolved>
                            <version>2.1.5</version>
                <version>2.2-BETA2</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Drivers</component>
                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17262" author="beberlei" created="Sun, 15 Jan 2012 18:37:43 +0000"  >&lt;p&gt;implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-198] Custom platform is not taken into account</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-198</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When defining a custom platform in the configuration of Symfony 2 like below :
&lt;br class=&quot;atl-forced-newline&quot; /&gt;&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;services:
    my_platform:
        class: Doctrine\DBAL\Platforms\MyPlatform

doctrine:
    dbal:
         options:
               platform: @my_platform
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;br class=&quot;atl-forced-newline&quot; /&gt;
the custom platform MyPlatform is not taken into account and the driver default one is used instead.&lt;/p&gt;</description>
                <environment>Doctrine 2.1.5 / Symphony 2.1</environment>
            <key id="13343">DBAL-198</key>
            <summary>Custom platform is not taken into account</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="sdecleire">Stephane Decleire</reporter>
                        <labels>
                    </labels>
                <created>Mon, 9 Jan 2012 08:39:28 +0000</created>
                <updated>Mon, 9 Jan 2012 09:55:23 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 09:41:07 +0000</resolved>
                            <version>2.1.5</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17189" author="sdecleire" created="Mon, 9 Jan 2012 09:27:57 +0000"  >&lt;p&gt;When the custom platform is defined in the config.yml file of symfony, its value is not set in the options array but in the driverOptions array which is itself in the options array.&lt;br/&gt;
I&apos;ve made a patch to take this into account but i have never used Doctrine alone ... Will this conflict with this kind of use ? Is platform directly in the options array in Doctrine ?&lt;/p&gt;

&lt;p&gt;Thanks in advance for any clue&lt;/p&gt;</comment>
                    <comment id="17190" author="beberlei" created="Mon, 9 Jan 2012 09:41:07 +0000"  >&lt;p&gt;This has to be fixed on the DoctrineBundle instead.&lt;/p&gt;</comment>
                    <comment id="17192" author="sdecleire" created="Mon, 9 Jan 2012 09:55:23 +0000"  >&lt;p&gt;Does it mean that i should write a patch in the doctrine bundle in order to put the platform key/value in the options array of Doctrine ?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-196] The function fetchAll(PDO::FETCH_ALL, &apos;MyClass&apos;) doesn&apos;t create object of MyClass</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-196</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The code below doesn&apos;t create objects of MyClass when it has to.&lt;br/&gt;
Instead it create StdClass objects&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;$stmt = $db-&amp;gt;prepare($sql);
$stmt-&amp;gt;execute();

$results = $stmt-&amp;gt;fetchAll(
    \PDO::FETCH_CLASS,
    &apos;MyClass&apos;
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem comes from the file Doctrine/DBAL/Statement.php&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;    /**
     * Returns an array containing all of the result set rows.
     * 
     * @param integer $fetchStyle
     * @param integer $columnIndex
     * @return array An array containing all of the remaining rows in the result set.
     */
    public function fetchAll($fetchStyle = PDO::FETCH_BOTH, $columnIndex = 0)
    {
	if ($columnIndex != 0) {
            return $this-&amp;gt;_stmt-&amp;gt;fetchAll($fetchStyle, $columnIndex);
        }
        return $this-&amp;gt;_stmt-&amp;gt;fetchAll($fetchStyle);
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;The line &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 ($columnIndex != 0) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;must be replace by &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 ($columnIndex !== 0) {
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;because the parameter $columnIndex is not always an integer and could be a name of a class : see the example n&#176;4 in php doc &lt;a href=&quot;http://www.php.net/manual/en/pdostatement.fetchall.php&quot; class=&quot;external-link&quot;&gt;http://www.php.net/manual/en/pdostatement.fetchall.php&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13338">DBAL-196</key>
            <summary>The function fetchAll(PDO::FETCH_ALL, &apos;MyClass&apos;) doesn&apos;t create object of MyClass</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="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="noodha">Antoine Froger</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jan 2012 21:26:35 +0000</created>
                <updated>Sat, 21 Jan 2012 14:44:19 +0000</updated>
                    <resolved>Sat, 21 Jan 2012 14:44:19 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17324" author="beberlei" created="Sat, 21 Jan 2012 14:44:19 +0000"  >&lt;p&gt;Fixed and merged into 2.2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-195] Method AbstractSchemaManager-&gt;dropAndCreateSequence() contains erroneous code.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-195</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I needed to use the function and looking at the code I found that it seemed partially implemented, cut and pasted from something else or just not ported from an earlier implementation. I&apos;m now submitting a patch that fixes this issue. I didn&apos;t modify the AbstractSchemaManager-&amp;gt;dropSequence($name) signature to become AbstractSchemaManager-&amp;gt;dropSequence($sequence) but it might be a good idea to refactor it (guess that would be another issue though &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;</description>
                <environment></environment>
            <key id="13337">DBAL-195</key>
            <summary>Method AbstractSchemaManager-&gt;dropAndCreateSequence() contains erroneous code.</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="marc.campeau@gmail.com">Marc Campeau</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jan 2012 20:17:29 +0000</created>
                <updated>Mon, 9 Jan 2012 07:57:39 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 07:57:39 +0000</resolved>
                            <version>2.1.5</version>
                                <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17181" author="beberlei" created="Mon, 9 Jan 2012 07:45:35 +0000"  >&lt;p&gt;Oh the code worked before, but was refactored. This method was forgotten.&lt;/p&gt;</comment>
                    <comment id="17184" author="beberlei" created="Mon, 9 Jan 2012 07:57:39 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11141" name="AbstractSchemaManager_dropAndCreateSequence.patch" size="584" author="marc.campeau@gmail.com" created="Fri, 6 Jan 2012 20:17:29 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-197] Cannot drop database schema with blob type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-197</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have an entity with a blob type. When I create the database schema via cli, everthing is okay.&lt;br/&gt;
When i try to drop the schema, I receive the following error:&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;                                                                        &lt;br/&gt;
  Unknown database type longblob requested, Doctrine\DBAL\Platforms\MySqlPlatform may not support it.&lt;/p&gt;</description>
                <environment>MySQL 5.1.58, for debian-linux-gnu (x86_64)</environment>
            <key id="13331">DBAL-197</key>
            <summary>Cannot drop database schema with blob 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="prolic">Sascha-Oliver Prolic</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Jan 2012 13:42:09 +0000</created>
                <updated>Mon, 9 Jan 2012 08:12:24 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 08:12:24 +0000</resolved>
                            <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                                <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-193] GH-87: Added a leading backslash to FQCN in @return and @param PHPDoc</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-193</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/87&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/87&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;PHPDoc should only contain FQCN with a leading backslash, imported classnames or relative classnames. Doctrine ORM is using this convention in the latest versions, so i updated the DBAL library.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13322">DBAL-193</key>
            <summary>GH-87: Added a leading backslash to FQCN in @return and @param 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, 29 Dec 2011 15:32:04 +0000</created>
                <updated>Sat, 31 Dec 2011 10:27:02 +0000</updated>
                    <resolved>Sat, 31 Dec 2011 10:27:02 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17158" author="beberlei" created="Sat, 31 Dec 2011 10:27:02 +0000"  >&lt;p&gt;This was merged.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-194] BlobType should implement getBindingType() </title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-194</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;BlobType should implement getBindingType() and return PDO::PARAM_LOB&lt;/p&gt;

&lt;p&gt;Currently (2.2-BETA1) DBAL uses PDO::PARAM_STR and thus stores the data incorrectly.&lt;/p&gt;

&lt;p&gt;Working patch is attached.&lt;/p&gt;</description>
                <environment>PHP 5.3.8&lt;br/&gt;
PostgreSQL 9.1</environment>
            <key id="13324">DBAL-194</key>
            <summary>BlobType should implement getBindingType() </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="codingrobot">Nikolai Spassoff</reporter>
                        <labels>
                    </labels>
                <created>Sun, 1 Jan 2012 02:04:38 +0000</created>
                <updated>Tue, 3 Jan 2012 22:03:56 +0000</updated>
                    <resolved>Mon, 2 Jan 2012 13:52:49 +0000</resolved>
                            <version>2.2-BETA1</version>
                                <fixVersion>2.2-BETA2</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17165" author="beberlei" created="Mon, 2 Jan 2012 13:52:49 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11137" name="fix.patch" size="413" author="codingrobot" created="Sun, 1 Jan 2012 02:04:38 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-192] GH-86: Remove a type object if a type is overrided</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-192</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/86&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/86&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13310">DBAL-192</key>
            <summary>GH-86: Remove a type object if a type is overrided</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, 26 Dec 2011 23:58:06 +0000</created>
                <updated>Tue, 3 Jan 2012 22:04:08 +0000</updated>
                    <resolved>Wed, 28 Dec 2011 08:34:20 +0000</resolved>
                                            <fixVersion>2.2-BETA2</fixVersion>
                <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-191] GH-85: [WIP] Drizzle Support</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-191</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/85&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/85&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Drizzle platform support&lt;br/&gt;
Driver is using pdo_mysql&lt;/p&gt;

&lt;p&gt;All DBAL tests complete except PortabilityTest.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13305">DBAL-191</key>
            <summary>GH-85: [WIP] Drizzle Support</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>Sun, 25 Dec 2011 02:17:16 +0000</created>
                <updated>Sat, 22 Sep 2012 14:35:03 +0000</updated>
                    <resolved>Sat, 22 Sep 2012 14:35:03 +0000</resolved>
                                            <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17117" author="beberlei" created="Wed, 28 Dec 2011 07:47:54 +0000"  >&lt;p&gt;Mark as new feature&lt;/p&gt;</comment>
                    <comment id="18688" author="kimhemsoe" created="Thu, 20 Sep 2012 14:28:03 +0000"  >&lt;p&gt;This one have been solved and is in release 2.3&lt;/p&gt;

&lt;p&gt;take a look at dbal-100 aswell, also about drizzle.&lt;/p&gt;</comment>
                    <comment id="18695" author="beberlei" created="Sat, 22 Sep 2012 14:35:03 +0000"  >&lt;p&gt;Was already fixed way ago&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-190] Column type comment SQL is missing during table creation</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-190</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Column type comment is generated properly only with MySQL, and is not generated on platforms that support comment on column statements (Oracle, PgSQL).&lt;/p&gt;</description>
                <environment>Latest DBAL master</environment>
            <key id="13298">DBAL-190</key>
            <summary>Column type comment SQL is missing during table 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="adrive">Miloslav &quot;adrive&quot; Kmet</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Dec 2011 09:24:57 +0000</created>
                <updated>Tue, 3 Jan 2012 22:04:19 +0000</updated>
                    <resolved>Wed, 28 Dec 2011 07:46:02 +0000</resolved>
                                            <fixVersion>2.1.6</fixVersion>
                <fixVersion>2.2-BETA2</fixVersion>
                <fixVersion>2.2</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17094" author="beberlei" created="Fri, 23 Dec 2011 09:29:06 +0000"  >&lt;p&gt;This issue is referenced in Github Pull-Request GH-84&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/84&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/84&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17114" author="beberlei" created="Wed, 28 Dec 2011 07:41:15 +0000"  >&lt;p&gt;Related Pull Request was closed: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/84&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/84&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17115" author="beberlei" created="Wed, 28 Dec 2011 07:46:02 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-189] Unable to use CHAR data type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-189</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In order to be able to use the CHAR data type, we used to be able to set the field type to string and fixed to true.&lt;br/&gt;
I&apos;ve been struggling to achieve the same thing today, but failed.&lt;/p&gt;

&lt;p&gt;It seems the functionality has been preserved on low level, but cannot be used from within the yml adapter. I haven&apos;t researched the whole thing as it would consume much time, but as far as my mini-research goes - the SchemaTool::_getDiscriminatorColumnDefinition() method should support the fixed parameter and pass it along with the other options (lenght, notnull, etc).&lt;/p&gt;

&lt;p&gt;SchemaTool::_gatherColumn() lacks support for the fixed parameter as well.&lt;/p&gt;

&lt;p&gt;Do you plan on getting this functionality back?&lt;/p&gt;</description>
                <environment></environment>
            <key id="13286">DBAL-189</key>
            <summary>Unable to use CHAR data 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="2">Won&apos;t Fix</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="nikola.petkanski">Nikola Petkanski</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Dec 2011 09:15:24 +0000</created>
                <updated>Wed, 21 Dec 2011 09:25:48 +0000</updated>
                    <resolved>Wed, 21 Dec 2011 09:25:48 +0000</resolved>
                            <version>2.1.5</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17081" author="beberlei" created="Wed, 21 Dec 2011 09:25:48 +0000"  >&lt;p&gt;You should create a &quot;fixed_string&quot; type that derives from string and register it, see &quot;custom mapping types&quot; in the basic mapping chapter.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-188] Make doctrine and sqlite friends</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-188</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/pull/66&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/66&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Schema processing for SQLite is broken in a number of common situations. These patches fix handling of the following:&lt;/p&gt;

&lt;p&gt;    String column defaults: For columns with a default value that is a string, SQLite returns them wrapped in single quotes. Doctrine does not strip these, so it would treat a value &quot;foobar&quot; as &quot;&apos;foobar&apos;&quot; (with single quotes as part of the value).&lt;br/&gt;
    Auto-increment: SQLite handling of auto-increment is unusual. In particular, it supports it only on an integer column which is the sole primary key for a table. In addition, it will automatically increment values of an integer primary key column regardless of whether it has been defined as autoincrement BUT, unlike autoincrement, these values are not guaranteed to be unique.&lt;br/&gt;
    Most problematically, there is no way (without parsing the &quot;create&quot; statements stored in sqlite_master) to determine whether a column is marked as auto-incrementing. Doctrine was treating SQLite integer primary keys as auto-incrementing, but this is not correct and does not work for composite primary keys.&lt;br/&gt;
    Composite primary keys: As a side-effect of Doctrine treating integer primary keys in SQLite as auto-incrementing and of how SQLite requires autoincrement and primary keys to be declared, it would generate invalid create statements for composite keys in SQLite.&lt;br/&gt;
    Special indexes: SQLite sometimes automatically generates indexes, which Doctrine treated the same as any other. Because they are internal, however, their names are reserved, so they could not be used to recreate the same index and, since they are automatic, they aren&apos;t actually a part of the defined schema.&lt;/p&gt;

&lt;p&gt;I&apos;ve added to the tests to catch these situations in the future as well.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13280">DBAL-188</key>
            <summary>Make doctrine and sqlite friends</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>Sun, 18 Dec 2011 16:29:16 +0000</created>
                <updated>Sun, 18 Dec 2011 16:29:48 +0000</updated>
                    <resolved>Sun, 18 Dec 2011 16:29:48 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-187] GH-83: Added a LoggerChain</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-187</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/83&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/83&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;This logger allows registering several loggers in the connection&lt;/p&gt;</description>
                <environment></environment>
            <key id="13274">DBAL-187</key>
            <summary>GH-83: Added a LoggerChain</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 Dec 2011 17:43:04 +0000</created>
                <updated>Thu, 15 Dec 2011 18:15:50 +0000</updated>
                    <resolved>Thu, 15 Dec 2011 18:15:50 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16991" author="beberlei" created="Thu, 15 Dec 2011 18:15:50 +0000"  >&lt;p&gt;Merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-186] GH-82: Schema events</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-186</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/82&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/82&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Trigger schema related events to allow custom create/drop/update queries.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13263">DBAL-186</key>
            <summary>GH-82: Schema events</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>Tue, 13 Dec 2011 20:41:12 +0000</created>
                <updated>Mon, 19 Dec 2011 13:16:46 +0000</updated>
                    <resolved>Mon, 19 Dec 2011 13:16:46 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17045" author="beberlei" created="Mon, 19 Dec 2011 13:16:46 +0000"  >&lt;p&gt;Merged&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-185] GH-81: when using PDO on windows, the DSN required to get the driver working is...</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-185</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Pull-Request was automatically synchronized: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/81&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/81&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;... &quot;mssql&quot;. Couldn&apos;t test it, but i think this will also work on *nix systems.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13261">DBAL-185</key>
            <summary>GH-81: when using PDO on windows, the DSN required to get the driver working is...</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, 13 Dec 2011 20:41:07 +0000</created>
                <updated>Sat, 17 Dec 2011 11:26:41 +0000</updated>
                    <resolved>Sat, 17 Dec 2011 11:26:41 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-184] bigint binding problems in sqlite3</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-184</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I created a @Column that was type &quot;bigint&quot; and when inserting very large numbers, they were getting capped in SQLite3 at 2147483647.&lt;/p&gt;

&lt;p&gt;I switched Doctrine/DBAL/Types/BigIntType.php, line 46 from:&lt;/p&gt;

&lt;p&gt;return \PDO::PARAM_INT;&lt;/p&gt;

&lt;p&gt;to:&lt;/p&gt;

&lt;p&gt;return \PDO::PARAM_STR;&lt;/p&gt;

&lt;p&gt;and now it is storing the full numbers.  I am unsure, however, whether this is the right change or will affect other database layers. Any thoughts?&lt;/p&gt;

&lt;p&gt;Matt&lt;/p&gt;</description>
                <environment>CentOS 4, PHP 5.3.8, Doctrine 2.1.4</environment>
            <key id="13224">DBAL-184</key>
            <summary>bigint binding problems in sqlite3</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="mw">Matt Wright</reporter>
                        <labels>
                    </labels>
                <created>Mon, 28 Nov 2011 17:07:38 +0000</created>
                <updated>Sun, 11 Dec 2011 15:49:33 +0000</updated>
                    <resolved>Sun, 11 Dec 2011 15:49:33 +0000</resolved>
                                            <fixVersion>2.1.6</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16967" author="beberlei" created="Sun, 11 Dec 2011 15:49:33 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-199] MSSQL change column name</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-199</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hello,&lt;/p&gt;

&lt;p&gt;to create a schema for mssql works ok, but to alter the name of a column, use the SQL command &quot;CHANGE&quot; and Mssql not recognize this command.&lt;br/&gt;
to alter the name of a column in MSSQL you should use the store procedure &quot;sp_rename&quot;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms188351.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ms188351.aspx&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Do not know if I&apos;m doing something the wrong way, but the command &quot;php app \ console doctrine: schema: update&quot; does not work by altering the name of the column&lt;/p&gt;

&lt;p&gt;sorry my english it&apos;s very poor&lt;/p&gt;</description>
                <environment>Symfony console, MSSQL Server 2008 r2</environment>
            <key id="13189">DBAL-199</key>
            <summary>MSSQL change column 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="3">Duplicate</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="dv3000">Diego Vidal</reporter>
                        <labels>
                    </labels>
                <created>Tue, 15 Nov 2011 20:13:26 +0000</created>
                <updated>Wed, 14 Nov 2012 22:55:36 +0000</updated>
                    <resolved>Mon, 9 Jan 2012 11:46:14 +0000</resolved>
                            <version>2.1.2</version>
                <version>2.1.7</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16935" author="fredjiles" created="Wed, 30 Nov 2011 22:10:20 +0000"  >&lt;p&gt;I get this error as well.  Just trying to change a field from nvarchar(40) to nvarchar(60) outputs this sql&lt;br/&gt;
ALTER TABLE offense_extension CHANGE disposition disposition NVARCHAR(60) DEFAULT NULL&lt;/p&gt;

&lt;p&gt;It should be ALTER TABLE offense_extension ALTER COLUMN disposition NVARCHAR(60) NULL&lt;/p&gt;</comment>
                    <comment id="17194" author="beberlei" created="Mon, 9 Jan 2012 11:46:13 +0000"  >&lt;p&gt;This is fixed in another ticket i just realized and is included in the latest 2.1 DBAL release.&lt;/p&gt;</comment>
                    <comment id="18987" author="pidikun" created="Wed, 14 Nov 2012 22:52:45 +0000"  >&lt;p&gt;This problem still exists.&lt;/p&gt;

&lt;p&gt;Here are some of the sql lines generated with :&lt;/p&gt;

&lt;p&gt;ALTER TABLE msrs CHANGE Temp27 Temp27 SMALLINT NOT NULL;&lt;br/&gt;
ALTER TABLE batches CHANGE status status BIT DEFAULT NULL;&lt;/p&gt;

&lt;p&gt;Doctrine DBAL Version: 2.1.7&lt;br/&gt;
MSSQL 2008 R2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-181] [Oracle] RAW Type</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-181</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Missing type &lt;b&gt;raw&lt;/b&gt; from &lt;tt&gt;OraclePlatform::initializeDoctrineTypeMappings&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;The Symfony2 task &lt;em&gt;doctrine:schema:update&lt;/em&gt; throws &lt;em&gt;Unknown database type raw requested, Doctrine\DBAL\Platforms\OraclePlatform may not support it.&lt;/em&gt;.&lt;/p&gt;

&lt;p&gt;The attached patch seems to fix it, but I don&apos;t know if something more to be done.&lt;/p&gt;</description>
                <environment>Linux 64bits 2.6.35-30, Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 64bits</environment>
            <key id="13185">DBAL-181</key>
            <summary>[Oracle] RAW 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="joksnet">Juan M</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Nov 2011 10:26:27 +0000</created>
                <updated>Mon, 14 Nov 2011 20:24:01 +0000</updated>
                    <resolved>Mon, 14 Nov 2011 19:34:24 +0000</resolved>
                            <version>2.1.3</version>
                                <fixVersion>2.1.5</fixVersion>
                                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16820" author="beberlei" created="Mon, 14 Nov 2011 10:55:14 +0000"  >&lt;p&gt;Is raw really a text? Is it similar to VARBINARY or something?&lt;/p&gt;</comment>
                    <comment id="16824" author="beberlei" created="Mon, 14 Nov 2011 19:34:24 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                    <comment id="16825" author="joksnet" created="Mon, 14 Nov 2011 20:24:01 +0000"  >&lt;p&gt;Thank you Benjamin. Sorry I didn&apos;t answer before.&lt;/p&gt;

&lt;p&gt;I don&apos;t use RAW type in my tables, but Oracle creates tables when you do an export/import that contains this type. This tables starts with &quot;SYS_&quot; and must be ignored. I&apos;m not an expert, but maybe change the list tables method to another that doesn&apos;t return the system tables.&lt;/p&gt;

&lt;p&gt;Either way, this works perfect. Thanks again.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11110" name="raw.patch" size="580" author="joksnet" created="Mon, 14 Nov 2011 10:26:28 +0000" />
                </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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-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-105] Schema Comparator produces invalid SQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-105</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;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;/**
 * @orm:Entity
 * @orm:Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;twitter_users&quot;&lt;/span&gt;)
 */
class TwitterUser &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; UserInterface
{
    &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ROLE_DEFAULT = &apos;ROLE_TWITTER_USER&apos;;

    /**
     * @orm:Id
     * @orm:GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

    /**
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;true&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; $twitterId;

    /**
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;true&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; $displayName;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After:&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:Entity
 * @orm:Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;twitter_users&quot;&lt;/span&gt;)
 */
class TwitterUser &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; UserInterface
{
    &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ROLE_DEFAULT = &apos;ROLE_TWITTER_USER&apos;;

    /**
     * @orm:Id
     * @orm:GeneratedValue(strategy=&lt;span class=&quot;code-quote&quot;&gt;&quot;AUTO&quot;&lt;/span&gt;)
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $id;

    /**
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;integer&quot;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;twitter_id&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $twitterId;

    /**
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;string&quot;&lt;/span&gt;, unique=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;display_name&quot;&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $displayName;

    /**
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;datetime&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;last_logged_in_at&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; $lastLoggedInAt;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Bugs in the generated SQL:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;last_logged_in_at column is not added&lt;/li&gt;
	&lt;li&gt;displayName is dropped, and at the same time the column name &quot;displayName&quot; is changed to &quot;display_name&quot;&lt;/li&gt;
	&lt;li&gt;twitterId same as above&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Windows7, PHP 5.3.3</environment>
            <key id="12511">DBAL-105</key>
            <summary>Schema Comparator produces invalid 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johannes">Johannes Schmitt</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Mar 2011 15:12:56 +0000</created>
                <updated>Wed, 6 Apr 2011 14:21:17 +0000</updated>
                    <resolved>Wed, 6 Apr 2011 14:21:17 +0000</resolved>
                            <version>2.0.2</version>
                                <fixVersion>2.0.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15695" author="beberlei" created="Wed, 6 Apr 2011 14:21:17 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-106] Doctrine\DBAL\Schema\Comparator false positives</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-106</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I am using the model class annotations for my Doctrine schema definition and a MySQL database for my target. When testing code that uses Doctrine\DBAL\Schema\Comparator, either by using &lt;tt&gt;$schemaTool-&amp;gt;updateSchema($classes)&lt;/tt&gt; which is defined in the core functionality or by running &lt;tt&gt;doctrine migrations:diff&lt;/tt&gt; from the Doctrine Migrations project, a set of bugs are revealed. The symptoms of this are that immediately after calling &lt;tt&gt;$schemaTool-&amp;gt;createSchema($classes)&lt;/tt&gt; any call that uses the Comparator class to calculate the diffs between the real database and the schema definition produce a large set of false positives. Most of these false positives can be traced back to the logic in &lt;tt&gt;Doctrine\DBAL\Schema\Comparator::diffColumn(Column $column1, Column $column2)&lt;/tt&gt;. There are two issues here I can see right away:&lt;/p&gt;

&lt;p&gt;One is that if the model annotations rely on defaults rather than explicitly defining certain attributes, this function sees them as different. For example, if I have a column defined like this: &lt;tt&gt;@Column(type=&quot;decimal&quot;, scale=2, nullable=true)&lt;/tt&gt; then the Comparator believes it is different from the real database because precision is 10 in the real data and 0 in my schema. If I change the line to this: &lt;tt&gt;if (($column1-&amp;gt;getPrecision() ?: 10) != ($column2-&amp;gt;getPrecision() ?: 10))&lt;/tt&gt; then it works, but I am sure a real solution needs to determine what the defaults actually are. &lt;/p&gt;

&lt;p&gt;The second issue is when I use the &apos;columnDefinition&apos; attribute with a custom type to declare an enum or set, for instance. Since this function does not actually check what the columnDefinition field is set to at all, it has no way to know if I have actually made a change to the list of values, or anything else about that columnDefinition. I have been reading that using the comments field might be another way to do this, but I am not yet clear on what the best practice really is here. I know that &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; touches on this with regard to storing Array type metadata in the comments field. I need more direction on how this should work in custom field types.&lt;/p&gt;

&lt;p&gt;In addition, I am getting this strange set of diffs on the index for a ManyToMany association&apos;s join table:&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-&amp;gt;addSql(&quot;CREATE INDEX IDX_44B8C6D89AF7860 ON firm_firm (firm_id)&quot;);
        $this-&amp;gt;addSql(&quot;DROP INDEX primary ON firm_firm&quot;);
        $this-&amp;gt;addSql(&quot;CREATE UNIQUE INDEX primary ON firm_firm (firm_id, firm_id)&quot;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I am not sure why this only happens on this one table and not others, but it seems to be another case of the Comparator getting a false positive for some reason this time in &lt;tt&gt;Comparator::diffIndex(Index $index1, Index $index2)&lt;/tt&gt;. The model annotations for this association are:&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;  /**
   * @var Firm
   * @ManyToMany(targetEntity=&quot;Firm&quot;)
   */
  protected $Children = array();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I will add more to this as I learn more details about the issues, but hopefully this is enough to start grokking the issues in Comparator. Getting the Comparator class in the core Doctrine\DBAL library working properly for calculating diffs will go a long way toward making well defined migrations a reality for Doctrine2 projects running in production. Hopefully, someone will also be able to address this minor issue in the Doctrine Migrations (&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DMIG-21&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DMIG-21&lt;/a&gt;) so that it can be deployed without needing a patch.&lt;/p&gt;

&lt;p&gt;Thanks to everyone for Doctrine2, and I am looking forward to being among the first to put this new library into production on a real world project in a few months. &lt;/p&gt;</description>
                <environment>Doctrine 2.0.3, PHP 5.3.5, MySQL 5.5.9</environment>
            <key id="12512">DBAL-106</key>
            <summary>Doctrine\DBAL\Schema\Comparator false positives</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="lfeistel">Lee Feistel</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Mar 2011 15:21:08 +0000</created>
                <updated>Wed, 6 Apr 2011 17:19:17 +0000</updated>
                    <resolved>Wed, 6 Apr 2011 15:10:59 +0000</resolved>
                            <version>2.0.2</version>
                                <fixVersion>2.0.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="15696" author="beberlei" created="Wed, 6 Apr 2011 14:41:56 +0000"  >&lt;p&gt;Can you tell me how the indexes on the join table look like?&lt;/p&gt;</comment>
                    <comment id="15697" author="lfeistel" created="Wed, 6 Apr 2011 14:56:10 +0000"  >&lt;p&gt;Now that I look at this schema, I think I need to apologize for my oversight because I didn&apos;t explain the problem properly. The real issue is that this self-referential ManyToMany association needs to have the id fields explicitly defined or it will not work. Doctrine2 is generating this table by apparently assuming both id fields have the same name, and so the second index that is created gets a randomly generated name assigned to it. There is no way this association is actually working properly at all, so I&apos;ll talk to the programmer that wrote this. I think we can fix this part of the problem ourselves, but perhaps some error checking here would be helpful. The first half of the problem (in diffColumn) remains. Thanks again for looking into this.&lt;/p&gt;

&lt;p&gt;CREATE TABLE IF NOT EXISTS `firm_firm` (&lt;br/&gt;
  `firm_id` int(11) NOT NULL,&lt;br/&gt;
  PRIMARY KEY (`firm_id`),&lt;br/&gt;
  KEY `IDX_44B8C6D89AF7860` (`firm_id`)&lt;br/&gt;
) ENGINE=InnoDB DEFAULT CHARSET=utf8;&lt;/p&gt;

&lt;p&gt;ALTER TABLE `firm_firm`&lt;br/&gt;
  ADD CONSTRAINT `firm_firm_ibfk_1` FOREIGN KEY (`firm_id`) REFERENCES `firm` (`id`) ON DELETE CASCADE;&lt;/p&gt;</comment>
                    <comment id="15698" author="beberlei" created="Wed, 6 Apr 2011 15:10:59 +0000"  >&lt;p&gt;Fixed the precision issue, please open a new ticket for the many to many.&lt;/p&gt;</comment>
                    <comment id="15700" author="lfeistel" created="Wed, 6 Apr 2011 15:22:05 +0000"  >&lt;p&gt;Thanks. At least the precision issue was easy, so glad to have that one out of the way. Is there any hope for a way to handle the use of columnDefiniton? I guess the alter statements being generated are just changing it to the same value, so it might not actually be broken in and of itself. Those statements could take a small amount of time to execute what is essentially a noop. Maybe we just have to manually go through and clean out the unwanted alter statements for the time being. It might be workable. &lt;/p&gt;</comment>
                    <comment id="15701" author="beberlei" created="Wed, 6 Apr 2011 17:08:22 +0000"  >&lt;p&gt;Updated version&lt;/p&gt;</comment>
                    <comment id="15703" author="beberlei" created="Wed, 6 Apr 2011 17:19:17 +0000"  >&lt;p&gt;columnDefinition always comes up in the diff. There is just no way around it. The problem is that there is no generic way to create a &quot;columnDefinition&quot; from the existing databse, so no good value to compare it too. If you can think of a solution for this problem i would be very happy, but we havent come up with one yet.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-103] Quoting is not supported in pdo_odbc driver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-103</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;trying to execute this dql:&lt;/p&gt;

&lt;p&gt;SELECT p FROM my\namespace\entities\PQR p WHERE p.razon = &apos;TEL&apos;&lt;/p&gt;

&lt;p&gt;it built this native sql (iseries)&lt;/p&gt;

&lt;p&gt;SELECT t0_.SGNUM&#209; AS SGNUM&#209;0, t0_.SGCAUS AS SGCAUS1, t0_.SGREAS AS SGREAS2 FROM SGMASTL7 t0_ WHERE t0_.SGCAUS = &lt;/p&gt;

&lt;p&gt;because pdo is created with odbc&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt;, quote method&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; is not supported, and Doctrine/DBAL/Connection.php#quote()&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; method returns an empty value for &amp;lt;&apos;TEL&apos;&amp;gt; expression, so Database throws a Syntax error. It should be support for drivers which doesn&apos;t have implemented quote() method.&lt;/p&gt;

&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;1&amp;#93;&lt;/span&gt; with odbc: $pdo = new PDO(&quot;odbc:MY_ODBC_NAME&quot;, &quot;USER&quot;, &quot;PASSWORD&quot;);&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;2&amp;#93;&lt;/span&gt; &lt;a href=&quot;http://php.net/manual/en/pdo.quote.php&quot; class=&quot;external-link&quot;&gt;http://php.net/manual/en/pdo.quote.php&lt;/a&gt;&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;3&amp;#93;&lt;/span&gt; &lt;a href=&quot;https://github.com/doctrine/dbal/blob/2.0.3/lib/Doctrine/DBAL/Connection.php#L520&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/2.0.3/lib/Doctrine/DBAL/Connection.php#L520&lt;/a&gt; &lt;/p&gt;</description>
                <environment>System 	Windows NT 5.1 build 2600 (Windows XP Professional Service Pack 3) i586 &lt;br/&gt;
Compiler 	MSVC6 (Visual C++ 6.0) &lt;br/&gt;
Apache Version 	Apache/2.2.17 (Win32) PHP/5.3.5 </environment>
            <key id="12487">DBAL-103</key>
            <summary>Quoting is not supported in pdo_odbc 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="7">Can&apos;t Fix</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johnarevalo">John Arevalo</reporter>
                        <labels>
                    </labels>
                <created>Tue, 22 Mar 2011 18:58:30 +0000</created>
                <updated>Sun, 19 Jun 2011 09:53:50 +0000</updated>
                    <resolved>Sun, 19 Jun 2011 09:53:50 +0000</resolved>
                            <version>2.0.3</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15573" author="beberlei" created="Wed, 23 Mar 2011 10:57:25 +0000"  >&lt;p&gt;As a first trick you can use the wrapperClass parameter to the DriverManager factory and create your &quot;MyConnection extends \Doctrine\DBAL\Connection&quot; to solve this issue.&lt;/p&gt;</comment>
                    <comment id="16030" author="beberlei" created="Sun, 19 Jun 2011 09:53:50 +0000"  >&lt;p&gt;Closed, odbc is not a supported driver.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-101] Undefined index &quot;length&quot; in SqliteSchemaManager</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-101</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If not giving length for numeric columns when using SQLite, I got an undefined index error around line 155 in SqliteSchemaManager. I fixed it 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;case&lt;/span&gt; &apos;numeric&apos;:
-                list($precision, $scale) = array_map(&apos;trim&apos;, explode(&apos;, &apos;, $tableColumn[&apos;length&apos;]));
+                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (array_key_exists(&apos;length&apos;, $tableColumn)) {
+                    list($precision, $scale) = array_map(&apos;trim&apos;, explode(&apos;, &apos;, $tableColumn[&apos;length&apos;]));
+                } &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt; {
+                    $precision = $scale = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
+                }
                 $length = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;;
                 &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
 &lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Git patch attached.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12473">DBAL-101</key>
            <summary>Undefined index &quot;length&quot; in SqliteSchemaManager</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="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Mar 2011 05:01:55 +0000</created>
                <updated>Wed, 6 Apr 2011 15:19:05 +0000</updated>
                    <resolved>Wed, 6 Apr 2011 15:19:05 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15699" author="beberlei" created="Wed, 6 Apr 2011 15:19:05 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10954" name="0002-BUGFIX-Fix-undefined-index-error-on-SqliteSchemaMana.patch" size="1310" author="k-fish" created="Thu, 17 Mar 2011 05:01:55 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-99] Proposal for better params-binding</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-99</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Currently we 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;    $count = $conn-&amp;gt;executeUpdate(&apos;UPDATE user SET username = ? WHERE id = ?&apos;, array(&apos;jwage&apos;, 1));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I propose add prefixes to placeholders: i (toInt), f (toFloat), e (escape), q (quote), c (qouteIdent), j (join with comma).&lt;br/&gt;
eq - escape and quote. Arrays also can be escaped/quoted/converted to int (each element of array processed).&lt;/p&gt;

&lt;p&gt;Examples:&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;    $count = $conn-&amp;gt;executeUpdate(&apos;UPDATE user SET username = eq:0 WHERE id = i:1&apos;, array(&apos;jwage&apos;, 1)); &lt;span class=&quot;code-comment&quot;&gt;// 0, 1 - keys of binded data
&lt;/span&gt;    $users = $conn-&amp;gt;fetchAll(&apos;SELECT cj:cols FROM user WHERE id IN (ij:ids)&apos;, array(&apos;cols&apos; =&amp;gt; array(&apos;column1&apos;, &apos;column2&apos;), &apos;ids&apos; =&amp;gt; array(1, 5, 9)));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
</description>
                <environment></environment>
            <key id="12452">DBAL-99</key>
            <summary>Proposal for better params-binding</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="koc">Konstantin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 5 Mar 2011 15:43:48 +0000</created>
                <updated>Mon, 7 Mar 2011 04:55:26 +0000</updated>
                    <resolved>Sat, 5 Mar 2011 16:02:09 +0000</resolved>
                            <version>2.0.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15462" author="beberlei" created="Sat, 5 Mar 2011 16:02:09 +0000"  >&lt;p&gt;There is a third parameters types where you can pass this into.&lt;/p&gt;</comment>
                    <comment id="15464" author="koc" created="Sat, 5 Mar 2011 16:34:21 +0000"  >&lt;p&gt;Yep, but:&lt;br/&gt;
1) not all methods support this. fetchColumn has 3rd arg wich mean what column to fetch&lt;br/&gt;
2) in my opinion more usable write `i` than `\PDO::PARAM_INT`&lt;/p&gt;</comment>
                    <comment id="15469" author="beberlei" created="Mon, 7 Mar 2011 03:26:19 +0000"  >&lt;p&gt;Yes, but then we would have to implement a really powerful SQL parser. This costs losts of time. Additionally its weird for everybody using SQL, its just nothing that existed before.&lt;/p&gt;</comment>
                    <comment id="15470" author="koc" created="Mon, 7 Mar 2011 04:55:26 +0000"  >&lt;p&gt;I&apos;m using something like this &lt;a href=&quot;http://pastie.org/1642551&quot; class=&quot;external-link&quot;&gt;http://pastie.org/1642551&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-98] BUG in Table.php or AbstractAsset</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-98</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In Class Table in method _addForeignKeyConstraint is written&lt;/p&gt;

&lt;p&gt;        // add an explicit index on the foreign key columns. If there is already an index that fullfils this requirements drop the request.&lt;br/&gt;
        // In the case of __construct calling this method during hydration from schema-details all the explicitly added indexes&lt;br/&gt;
        // lead to duplicates. This creates compuation overhead in this case, however no duplicate indexes are ever added (based on columns).&lt;/p&gt;

&lt;p&gt;It is false, because duplicate indexes are added (based on columns) the cause of that is strange _generateIdentifierName method in AbstractAsset class.&lt;/p&gt;

&lt;p&gt;Algorith for genereting indexes base on substring is causing that&lt;/p&gt;

&lt;p&gt;for example&lt;br/&gt;
tablename: communications.out_emails&lt;br/&gt;
columnname: internal_contact_channel_id &lt;/p&gt;

&lt;p&gt;generates: communications_out_emails_rnal_email_contact_channel_id_idx&lt;/p&gt;

&lt;p&gt;and &lt;/p&gt;

&lt;p&gt;tablename: communications.out_emails&lt;br/&gt;
columnname: external_contact_channel_id &lt;/p&gt;

&lt;p&gt;generates:  communications_out_emails_rnal_email_contact_channel_id_idx&lt;/p&gt;

&lt;p&gt;Suprise!!!?? It&apos;s the same.&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 think the better way was to use md5 or sha (I&apos;m ceeding).&lt;/p&gt;</description>
                <environment>OS: Ubuntu 10.10&lt;br/&gt;
PHP: 5.3.3&lt;br/&gt;
WEB: NGINX</environment>
            <key id="12442">DBAL-98</key>
            <summary>BUG in Table.php or AbstractAsset</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mstrzele">Micha&#322; Strzelecki</reporter>
                        <labels>
                    </labels>
                <created>Wed, 2 Mar 2011 09:09:27 +0000</created>
                <updated>Fri, 4 Mar 2011 17:16:59 +0000</updated>
                    <resolved>Fri, 4 Mar 2011 17:16:59 +0000</resolved>
                            <version>2.0.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15455" author="beberlei" created="Fri, 4 Mar 2011 17:16:59 +0000"  >&lt;p&gt;This issue was fixed already (for other reasons):&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractAsset.php#L138&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractAsset.php#L138&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Fix will be in 2.0.2&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-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-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-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-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-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-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\PostgreSqlPlatform may not support it.  
                                                                                                        


Exception trace:
 () at /var/www/vhosts/workflow/project/Doctrine/DBAL/Platforms/AbstractPlatform.php:261
 Doctrine\DBAL\Platforms\AbstractPlatform-&amp;gt;getDoctrineTypeMapping() at /var/www/vhosts/workflow/project/Doctrine/DBAL/Schema/PostgreSqlSchemaManager.php:285
 Doctrine\DBAL\Schema\PostgreSqlSchemaManager-&amp;gt;_getPortableTableColumnDefinition() at /var/www/vhosts/workflow/project/Doctrine/DBAL/Schema/AbstractSchemaManager.php:672
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;_getPortableTableColumnList() at /var/www/vhosts/workflow/project/Doctrine/DBAL/Schema/AbstractSchemaManager.php:159
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableColumns() at /var/www/vhosts/workflow/project/Doctrine/DBAL/Schema/AbstractSchemaManager.php:254
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableDetails() at /var/www/vhosts/workflow/project/Doctrine/DBAL/Schema/AbstractSchemaManager.php:242
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTables() at /var/www/vhosts/workflow/project/Doctrine/DBAL/Schema/AbstractSchemaManager.php:830
 Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;createSchema() at /var/www/vhosts/workflow/project/Doctrine/ORM/Tools/SchemaTool.php:689
 Doctrine\ORM\Tools\SchemaTool-&amp;gt;getUpdateSchemaSql() at /var/www/vhosts/workflow/project/Doctrine/ORM/Tools/SchemaValidator.php:258
 Doctrine\ORM\Tools\SchemaValidator-&amp;gt;schemaInSyncWithMetadata() at /var/www/vhosts/workflow/project/Doctrine/ORM/Tools/Console/Command/ValidateSchemaCommand.php:80
 Doctrine\ORM\Tools\Console\Command\ValidateSchemaCommand-&amp;gt;execute() at /var/www/vhosts/workflow/project/Doctrine/Symfony/Component/Console/Command/Command.php:187
 Symfony\Component\Console\Command\Command-&amp;gt;run() at /var/www/vhosts/workflow/project/Doctrine/Symfony/Component/Console/Application.php:194
 Symfony\Component\Console\Application-&amp;gt;doRun() at /var/www/vhosts/workflow/project/Doctrine/Symfony/Component/Console/Application.php:118
 Symfony\Component\Console\Application-&amp;gt;run() at /var/www/vhosts/workflow/project/Doctrine/ORM/Tools/Console/ConsoleRunner.php:39
 Doctrine\ORM\Tools\Console\ConsoleRunner::run() at /var/www/vhosts/workflow/project/doctrine.php:36


orm:validate-schema
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I throw an eye to DBAL/Platforms/AbstractPlatform.php abstract class and DBAL/Platforms/PostgresSqlPlatform.php implementation. It appears initializeDoctrineTypeMappings() does not care about user custom types that might be declared.&lt;/p&gt;

</description>
                <environment>Postgres</environment>
            <key id="13493">DBAL-230</key>
            <summary>Custom types not taken into account when running $ doctrine orm:validate-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="6">Invalid</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="maxevron">Maxime MARAIS</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Mar 2012 13:44:52 +0000</created>
                <updated>Wed, 14 Mar 2012 19:54:01 +0000</updated>
                    <resolved>Wed, 14 Mar 2012 19:54:01 +0000</resolved>
                            <version>2.2</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17573" author="beberlei" created="Wed, 14 Mar 2012 19:54:01 +0000"  >&lt;p&gt;Yes, you have to register them manually using AbstractPlatform#registerDoctrineTypeMapping.&lt;/p&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-41] missing column type &quot;float&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-41</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The former supported column type &quot;float&quot; is not defined in Doctrine\DBAL\Types\Type.&lt;/p&gt;

&lt;p&gt;I noticed that floats are mapped like numerics/decimals within mysq right nowl:&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;protected&lt;/span&gt; function _getPortableTableColumnDefinition($tableColumn)
    {
       ...
        &lt;span class=&quot;code-comment&quot;&gt;// Map db type to Doctrine mapping type
&lt;/span&gt;        &lt;span class=&quot;code-keyword&quot;&gt;switch&lt;/span&gt; ($dbType) {
            ...
            &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;&lt;span class=&quot;code-object&quot;&gt;float&lt;/span&gt;&apos;:
            &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;&lt;span class=&quot;code-object&quot;&gt;double&lt;/span&gt;&apos;:
            &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;real&apos;:
            &lt;span class=&quot;code-keyword&quot;&gt;case&lt;/span&gt; &apos;numeric&apos;:
                $type = &apos;decimal&apos;;
                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt;;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I suggest to map them to a &quot;true&quot; float and double as available in mysql, since they use less storage space compared to numerics with fixed decimals in certain cirtumstances (-&amp;gt; performance issue). &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.0/en/storage-requirements.html&lt;/a&gt;&lt;/p&gt;
</description>
                <environment></environment>
            <key id="10250">DBAL-41</key>
            <summary>missing column type &quot;float&quot;</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="chriswest">Christian Ehmig</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Oct 2009 22:54:25 +0000</created>
                <updated>Sun, 31 Oct 2010 10:10:59 +0000</updated>
                    <resolved>Sun, 31 Oct 2010 10:10:59 +0000</resolved>
                                            <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="10991" author="guilhermeblanco" created="Thu, 3 Dec 2009 15:26:50 +0000"  >&lt;p&gt;This issue was already fixed before. Check out line 192 in MySqlSchemaManager.php&lt;/p&gt;</comment>
                    <comment id="13596" author="beberlei" created="Sun, 18 Jul 2010 17:24:57 +0000"  >&lt;p&gt;This issue is regarding the support for an additional Type &quot;Float&quot; vs the &quot;Decimal&quot; which is a precise type.&lt;/p&gt;

&lt;p&gt;A quick google over all the vendors shows that they all support floating point numbers.&lt;/p&gt;</comment>
                    <comment id="14589" author="steffenvogel" created="Wed, 20 Oct 2010 19:00:26 +0000"  >&lt;p&gt;Push...&lt;br/&gt;
Tut sich hier noch was? Oder soll ich mir den Typ lieber selbst implementieren? Bringt es was wenn ich ihn euch dann per Pull-Request ins github mergen kann?&lt;/p&gt;

&lt;p&gt;gru&#223; Steffen&lt;/p&gt;</comment>
                    <comment id="14648" author="beberlei" created="Sun, 31 Oct 2010 07:54:42 +0000"  >&lt;p&gt;All currently supported databases have a &quot;DOUBLE PRECISION&quot; type or use that as an alias for their float. Supporting this will be super-easy &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="14650" author="beberlei" created="Sun, 31 Oct 2010 10:10:59 +0000"  >&lt;p&gt;Implemented and to be released with the RC1&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
            <subtask id="12186">DBAL-70</subtask>
        </subtasks>
        </item>

<item>
            <title>[DBAL-2] Schema Comparator - Changes of only Identifier Strategy are not detected</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-2</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When changing metdata from a NONE to an IDENTITY generator only for example on MySQL, SchemaComparator does not pick up the changes.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11367">DBAL-2</key>
            <summary>Schema Comparator - Changes of only Identifier Strategy are not detected</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 15 May 2010 06:51:34 +0000</created>
                <updated>Sun, 13 Jun 2010 14:24:48 +0000</updated>
                    <resolved>Sun, 13 Jun 2010 14:24:48 +0000</resolved>
                                            <fixVersion>2.0.0-BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13117" author="beberlei" created="Sun, 6 Jun 2010 08:23:40 +0000"  >&lt;p&gt;This should be fixed now&lt;/p&gt;</comment>
                    <comment id="13268" author="beberlei" created="Thu, 10 Jun 2010 17:56:15 +0000"  >&lt;p&gt;Introduced a regression&lt;/p&gt;</comment>
                    <comment id="13302" author="beberlei" created="Sun, 13 Jun 2010 14:24:48 +0000"  >&lt;p&gt;Fixed in current master, scheduled for Beta 3&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="11475">DDC-632</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-1] PostgreSQL driver doesn&apos;t support date type TIMESTAMP WITHOUT TIME ZONE</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-1</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Doctrine PostgreSqlPlatform driver supports only TIMESTAMP(0) WITH TIME ZONE, but I think TIMESTAMP WITHOUT TIME ZONE is also often used so Doctrine should support it.&lt;/p&gt;</description>
                <environment>PostgreSQL 8.4.3</environment>
            <key id="11341">DBAL-1</key>
            <summary>PostgreSQL driver doesn&apos;t support date type TIMESTAMP WITHOUT TIME ZONE</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="3">Duplicate</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="drevolution">V&#225;clav Novotn&#253;</reporter>
                        <labels>
                    </labels>
                <created>Mon, 10 May 2010 04:21:40 +0000</created>
                <updated>Sun, 20 Jun 2010 10:56:46 +0000</updated>
                    <resolved>Sun, 20 Jun 2010 10:56:46 +0000</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13379" author="beberlei" created="Sun, 20 Jun 2010 10:56:46 +0000"  >&lt;p&gt;I close this as duplicate of &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-22&quot; title=&quot;Saving UTC Offset in Postgres DATETIME messes with PHP DateTime and Timezones&quot;&gt;&lt;del&gt;DBAL-22&lt;/del&gt;&lt;/a&gt;, since two different types will be implemented.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-10] Implement PDO SqlSrv</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-10</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="11303">DBAL-10</key>
            <summary>Implement PDO SqlSrv</summary>
                <type id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/subtask_alternate.png">Sub-task</type>
                    <parent id="10866">DBAL-8</parent>
                        <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="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 30 Apr 2010 22:02:55 +0000</created>
                <updated>Sun, 13 Jun 2010 08:10:04 +0000</updated>
                    <resolved>Sun, 13 Jun 2010 08:10:04 +0000</resolved>
                                            <fixVersion>2.0.0-BETA2</fixVersion>
                                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13294" author="beberlei" created="Sun, 13 Jun 2010 08:10:04 +0000"  >&lt;p&gt;Merged into DBAL Master for Beta 2&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-5] Generalize SchemaManager Db Column to Doctrine Type Detection</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-5</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Currrently the Transformation from each Database Column to a Doctrine Type is hardcoded in the SchemaManager. This code has to be generalized and moved to the Platform so that people supplying custom doctrine types can overwrite this. The API for this sould look 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;$platform-&amp;gt;registerDoctrineType($doctrineTypeName, $dbColumnType)
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;This way we could supply all the defaults using this API and give users the ability to overwrite or extend it based on their needs.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11305">DBAL-5</key>
            <summary>Generalize SchemaManager Db Column to Doctrine Type Detection</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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 1 May 2010 12:28:48 +0000</created>
                <updated>Sun, 13 Jun 2010 06:39:15 +0000</updated>
                    <resolved>Sun, 13 Jun 2010 06:39:15 +0000</resolved>
                                            <fixVersion>2.0.0-BETA2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13286" author="beberlei" created="Sun, 13 Jun 2010 06:39:15 +0000"  >&lt;p&gt;Implemented for BETA 2&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                                <inwardlinks description="is required for">
                            <issuelink>
            <issuekey id="11273">DBAL-6</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-6] MySQL BLOB datatypes throw DoctrineException::unknownColumnType() exception</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-6</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;MySQL BLOB datatype appears to be breaking ClassMetadataExporter.  Very new to Doctrine so hopefully I&apos;ve isolated this correctly.&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;CREATE TABLE foo (
    id      BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
    bar   BLOB,
    PRIMARY KEY (id)
) ENGINE=InnoDB;
&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;&lt;span class=&quot;code-comment&quot;&gt;// ... setup entitymanager ....
&lt;/span&gt;
$cme = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Tools\Export\ClassMetadataExporter();
$sm = $em-&amp;gt;getConnection()-&amp;gt;getSchemaManager();
$cme-&amp;gt;addMappingSource($sm, &apos;database&apos;);
$metadatas = $cme-&amp;gt;getMetadatasForMappingSources();
$exporter = $cme-&amp;gt;getExporter(&apos;annotation&apos;, &apos;/path/to/annotations&apos;);
$exporter-&amp;gt;setMetadatas($metadatas);
$exporter-&amp;gt;export();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;php -f doctrine Orm:convert-mapping --from-database --to=annotation --dest C:\www\app\models
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&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;Fatal error: Uncaught exception &apos;Doctrine\Common\DoctrineException&apos; with message &apos;Unknown column type&apos; in C:\www\app\lib\Doctrine\Common\DoctrineException.php:112

Stack trace:
#0 [internal function]: Doctrine\Common\DoctrineException::__callStatic(&apos;unknownColumnTy...&apos;, Array)
#1 C:\www\app\lib\Doctrine\DBAL\Types\Type.php(125): Doctrine\Common\DoctrineException::unknownColumnType(&apos;blob&apos;)
#2 C:\www\app\lib\Doctrine\DBAL\Schema\MySqlSchemaManager.php(262): Doctrine\DBAL\Types\Type::getType(&apos;blob&apos;)
#3 C:\www\app\lib\Doctrine\DBAL\Schema\AbstractSchemaManager.php(802): Doctrine\DBAL\Schema\MySqlSchemaManager-&amp;gt;_getPortableTableColumnDefinition(Array)
#4 C:\www\app\lib\Doctrine\DBAL\Schema\AbstractSchemaManager.php(221): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;_getPortableTableColumnList(Array)
#5 C:\www\app in C:\www\app\lib\Doctrine\Common\DoctrineException.php on line 112
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Windows 7 x64, PHP 5.3.1, MySQL 5.1.36 (pdo_mysql driver)</environment>
            <key id="11273">DBAL-6</key>
            <summary>MySQL BLOB datatypes throw DoctrineException::unknownColumnType() 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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="mjh_ca">Marc Hodgins</reporter>
                        <labels>
                    </labels>
                <created>Tue, 27 Apr 2010 01:03:29 +0000</created>
                <updated>Sun, 30 Oct 2011 22:25:41 +0000</updated>
                    <resolved>Sun, 30 Oct 2011 22:25:09 +0000</resolved>
                            <version>2.0.4</version>
                                <fixVersion>2.2</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>4</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="12758" author="beberlei" created="Tue, 27 Apr 2010 03:03:00 +0000"  >&lt;p&gt;You did isolate it correctly, we haven&apos;t gotten around to support BLOBs yet, because they are very complex to handle across different database vendors.&lt;/p&gt;

&lt;p&gt;We probably should address this asap though for beta 2.&lt;/p&gt;</comment>
                    <comment id="12759" author="romanb" created="Tue, 27 Apr 2010 03:37:09 +0000"  >&lt;p&gt;Unless I am missing something it should be easy to work around this by creating a custom type (that will, of course, be mysql-specific).&lt;/p&gt;</comment>
                    <comment id="12760" author="beberlei" created="Tue, 27 Apr 2010 04:01:14 +0000"  >&lt;p&gt;@Roman: I think the problem with custom types currently is that you cannot register them in Platform, giving you almost no chance to use custom types&lt;br/&gt;
with SchemaTool&lt;/p&gt;</comment>
                    <comment id="12891" author="shurakai" created="Mon, 10 May 2010 09:55:24 +0000"  >&lt;p&gt;@Benjamin: Where exactly is the problem? DBAL\Types\Type supports adding custom types...&lt;/p&gt;</comment>
                    <comment id="13443" author="beberlei" created="Mon, 28 Jun 2010 16:57:50 +0000"  >&lt;p&gt;Mark as New Feature.&lt;/p&gt;

&lt;p&gt;Blobs are so fundamentally different even across different PDO drivers that we might not implement them in Core, there is no common denominator we can abstract completely.&lt;/p&gt;</comment>
                    <comment id="15201" author="extesy" created="Mon, 31 Jan 2011 18:55:57 +0000"  >&lt;p&gt;Please consider implementing this in Doctrine 2.1, my database uses blobs for storing some binary data therefore I can&apos;t use doctrine for schema updates anymore - it won&apos;t even product the migration sql script.&lt;/p&gt;</comment>
                    <comment id="15202" author="beberlei" created="Tue, 1 Feb 2011 03:18:06 +0000"  >&lt;p&gt;See &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/reference/basic-mapping.html#custom-mapping-types&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.0/en/reference/basic-mapping.html#custom-mapping-types&lt;/a&gt; how to implement a blob type yourself.&lt;/p&gt;</comment>
                    <comment id="15218" author="beberlei" created="Wed, 2 Feb 2011 18:21:48 +0000"  >&lt;p&gt;We should look into creating binary streams for blobs using the data wrapper &lt;a href=&quot;http://php.net/manual/en/wrappers.data.php&quot; class=&quot;external-link&quot;&gt;http://php.net/manual/en/wrappers.data.php&lt;/a&gt; for vendors that return strings. I have to look into it in detail though.&lt;/p&gt;</comment>
                    <comment id="16736" author="beberlei" created="Sun, 30 Oct 2011 22:25:09 +0000"  >&lt;p&gt;Implemented BLOB support&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10002">
                <name>Dependency</name>
                                <outwardlinks description="depends on">
                            <issuelink>
            <issuekey id="11305">DBAL-5</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12893">DBAL-142</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-12] Add Doctrine\DBAL\SQLQuery package with simple Query Objects</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-12</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;We should add a Query Objects package to Doctrine\DBAL. This won&apos;t necessarily be used with Doctrine\ORM, however it could be really helpful to people that only plan to use Doctrine\DBAL and not the ORM.&lt;/p&gt;

&lt;p&gt;Requirements:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Add Query Objects for all types of SELECT, INSERT, UPDATE, DELETE&lt;/li&gt;
	&lt;li&gt;Fluent Interface&lt;/li&gt;
	&lt;li&gt;Make use of Platform to abstract limit subquery and expressions&lt;/li&gt;
	&lt;li&gt;Add factory method on Doctrine\DBAL\Connection&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;API Ideas:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;For the INSERT, UPDATE, DELETE I like the approach taken by eZ Components: &lt;a href=&quot;http://www.ezcomponents.org/docs/api/trunk/introduction_Database.html#query-abstraction&quot; class=&quot;external-link&quot;&gt;http://www.ezcomponents.org/docs/api/trunk/introduction_Database.html#query-abstraction&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;For the SELECT I find Zend_Db_Select much more usable: &lt;a href=&quot;http://framework.zend.com/manual/en/zend.db.select.html&quot; class=&quot;external-link&quot;&gt;http://framework.zend.com/manual/en/zend.db.select.html&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Are there query objects in other languages that could help here?&lt;/p&gt;</description>
                <environment></environment>
            <key id="11264">DBAL-12</key>
            <summary>Add Doctrine\DBAL\SQLQuery package with simple Query Objects</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 24 Apr 2010 07:31:21 +0000</created>
                <updated>Sun, 15 May 2011 17:23:13 +0000</updated>
                    <resolved>Sun, 15 May 2011 17:23:13 +0000</resolved>
                                            <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13296" author="beberlei" created="Sun, 13 Jun 2010 10:30:54 +0000"  >&lt;p&gt;Discussions on the API:&lt;/p&gt;

&lt;p&gt;First observations/requirements:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Identifiers are NEVER quoted by the SQL Query Object&lt;/li&gt;
	&lt;li&gt;A query object cannot ever be as efficient as our Persisters building SQL in a custom way&lt;/li&gt;
	&lt;li&gt;A SQL Query instance is only an Object with an internal stack of SQL parts, it should not have any logic whatsoever&lt;/li&gt;
	&lt;li&gt;A SQL Query instance is a stack for bound params and values, i.e. it should work towards prepared statements and not inline and quote values (like Zend_Db_Select)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Questions:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;Should we allow methods to accept either array or string? Or streamline API to allow only one? select(string) + selectAll(array)?&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Binding values:&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;$sql-&amp;gt;bindValue(1); &lt;span class=&quot;code-comment&quot;&gt;// adds 1 to the bind stack and returns a &lt;span class=&quot;code-quote&quot;&gt;&quot;:doctrineValue$inc&quot;&lt;/span&gt; string
&lt;/span&gt;$sql-&amp;gt;bindParam($foo, PDO::PARAM_INT); &lt;span class=&quot;code-comment&quot;&gt;// the same as before, with additional type binding&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Building a Select clause A:&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;$sql-&amp;gt;select(array(&apos;foo&apos;, &apos;bar&apos;, &apos;baz&apos;)); &lt;span class=&quot;code-comment&quot;&gt;// SELECT foo, bar, baz
&lt;/span&gt;$sql-&amp;gt;select(array(&apos;foo&apos; =&amp;gt; &apos;foo1&apos;, &apos;bar&apos; =&amp;gt; &apos;bar2&apos;, &apos;baz&apos; =&amp;gt; &apos;baz3&apos;)); &lt;span class=&quot;code-comment&quot;&gt;// SELECT foo AS foo1, bar AS bar2, baz AS baz3&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Building a Select clause B:&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;$sql-&amp;gt;select(&apos;foo&apos;)-&amp;gt;select(&apos;bar&apos;)-&amp;gt;select(&apos;baz&apos;); &lt;span class=&quot;code-comment&quot;&gt;// SELECT foo, bar, baz
&lt;/span&gt;$sql-&amp;gt;select(&apos;foo&apos;, &apos;f&apos;); &lt;span class=&quot;code-comment&quot;&gt;// SELECT foo AS f&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Building the From clause A:&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;$sql-&amp;gt;from(&apos;foo&apos;); &lt;span class=&quot;code-comment&quot;&gt;// FROM foo
&lt;/span&gt;$sql-&amp;gt;from(&apos;foo&apos;, &apos;f&apos;); &lt;span class=&quot;code-comment&quot;&gt;// FROM foo f
&lt;/span&gt;$sql-&amp;gt;from(&apos;foo&apos;, &apos;f&apos;, array(&apos;foo&apos;)); &lt;span class=&quot;code-comment&quot;&gt;// SELECT foo FROM foo f&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Building the From Clause B:&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;$sql-&amp;gt;from(&apos;foo&apos;); &lt;span class=&quot;code-comment&quot;&gt;// FROM foo
&lt;/span&gt;$sql-&amp;gt;from(array(&apos;foo&apos;)); &lt;span class=&quot;code-comment&quot;&gt;// FROM foo
&lt;/span&gt;$sql-&amp;gt;from(array(&apos;f&apos; =&amp;gt; &apos;foo&apos;)); &lt;span class=&quot;code-comment&quot;&gt;// FROM foo f
&lt;/span&gt;$sql-&amp;gt;from(array(&apos;f&apos; =&amp;gt; &apos;foo&apos;), array(&apos;foo&apos;)); &lt;span class=&quot;code-comment&quot;&gt;// SELECT foo FROM foo f&lt;/span&gt;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Building a Join clause (obviously depends on the From syntax also for a consistent approach):&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 join($table, $alias, $onClause, $cols);
&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function join($table, $onClause, $cols);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Join Method Names: joinInner, joinLeft, joinRight (Zend) OR innerJoin, leftJoin, rightJoin (Zeta)?&lt;/p&gt;

&lt;p&gt;Where Syntax:&lt;/p&gt;

&lt;p&gt;This is pretty difficult and i prefer the approach from ORM\QueryBuilder:&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;$sql-&amp;gt;where(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo = ?&quot;&lt;/span&gt;);
$sql-&amp;gt;where(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo = ?&quot;&lt;/span&gt;, $foo); &lt;span class=&quot;code-comment&quot;&gt;// allow &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;? its Zend_Db_Select syntax
&lt;/span&gt;$sql-&amp;gt;where(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo = &quot;&lt;/span&gt; . $sql-&amp;gt;bindParam($foo));
$sql-&amp;gt;where($sql-&amp;gt;expr()-&amp;gt;eq(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;, $sql-&amp;gt;bindParam($foo));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For an OR on the main level:&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;$sql-&amp;gt;where(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo = ?&quot;&lt;/span&gt;)-&amp;gt;orWhere(&lt;span class=&quot;code-quote&quot;&gt;&quot;bar = ?&quot;&lt;/span&gt;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;For a nested condition:&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;$sql-&amp;gt;where(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo = ? OR bar = ? OR baz = ?&quot;&lt;/span&gt;);
$sql-&amp;gt;where($sql-&amp;gt;expr()-&amp;gt;or(
    $sql-&amp;gt;expr()-&amp;gt;eq(&lt;span class=&quot;code-quote&quot;&gt;&quot;foo&quot;&lt;/span&gt;, $sql-&amp;gt;bindParam($foo)),
    $sql-&amp;gt;expr()-&amp;gt;eq(&lt;span class=&quot;code-quote&quot;&gt;&quot;bar&quot;&lt;/span&gt;, $sql-&amp;gt;bindParam($bar)),
    $sql-&amp;gt;expr()-&amp;gt;eq(&lt;span class=&quot;code-quote&quot;&gt;&quot;baz&quot;&lt;/span&gt;, $sql-&amp;gt;bindParam($baz)),
));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;There is an Expression class that has control flow and sql functions, using a platform internally for vendor specific sql.&lt;/p&gt;

&lt;p&gt;Execution or Preparing the SQL:&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;$stmt = $sql-&amp;gt;prepare();
$sql-&amp;gt;execute();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Comments?&lt;/p&gt;</comment>
                    <comment id="13308" author="romanb" created="Mon, 14 Jun 2010 09:28:02 +0000"  >&lt;p&gt;The usage of bindValue/bindParam is very confusing to me. It should be in-line with PDO where the only difference is whether the parameter is bound by value (the value of the variable gets bound at the point of the method call) or by reference (the value of the variable gets bound at the point the statement is executed).&lt;/p&gt;</comment>
                    <comment id="13319" author="beberlei" created="Tue, 15 Jun 2010 03:13:34 +0000"  >&lt;p&gt;How would that look like in your opinion? This is what Zend_Db_Select gets wrong...&lt;/p&gt;</comment>
                    <comment id="13320" author="romanb" created="Tue, 15 Jun 2010 03:42:21 +0000"  >&lt;p&gt;Well I would say either having bindValue/bindParam but with the same semantics as PDO or trashing both and just having setParameter, like we do in the ORM, that binds the value at the time of the invocation, intuitively.&lt;br/&gt;
I would go with the latter as I have yet to find a real use-case for bindParam (binding &quot;by reference&quot;).&lt;/p&gt;

&lt;p&gt;The only &quot;wrong&quot; direction here IMHO is to reuse PDOs names but give them a completely different meaning.&lt;/p&gt;

&lt;p&gt;I would just go with setParameter($key, $value, &lt;span class=&quot;error&quot;&gt;&amp;#91;$type = PDO::PARAM_STR&amp;#93;&lt;/span&gt;).&lt;/p&gt;

&lt;p&gt;I might be missing something though because I dont really understand the bindValue/bindParam examples given in your comments, i.e. I dont understand why it &quot;generates&quot; a key. Can you show a &quot;real&quot; example usage in a query?&lt;/p&gt;</comment>
                    <comment id="13421" author="beberlei" created="Sat, 26 Jun 2010 12:15:05 +0000"  >&lt;p&gt;But how would that bind stuff work with sub selects?&lt;/p&gt;

&lt;p&gt;Say you 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;$sub = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; SelectQuery();
$sub-&amp;gt;select(&apos;a&apos;)-&amp;gt;from(&apos;subtable&apos;)-&amp;gt;where(&apos;b = ?&apos;)
$root = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; SelectQuery();
$root-&amp;gt;select(&apos;b&apos;)-&amp;gt;from(&apos;root&apos;)-&amp;gt;where(&apos;b IN (&apos; . $sub . &apos; )&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="15043" author="beberlei" created="Tue, 28 Dec 2010 09:31:15 +0000"  >&lt;p&gt;Assigned to Guilherme for 2.1&lt;/p&gt;</comment>
                    <comment id="15858" author="beberlei" created="Sun, 15 May 2011 17:23:13 +0000"  >&lt;p&gt;Implemented&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-43] Doctrine\DBAL\Platforms\MsSqlPlatform Generates invalid T-SQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-43</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;MsSqlPlatform::getAlterTableSQL generates a reasonable quantity of invalid T-SQL (to my knowledge, I&apos;d happily be corrected if wrong).&lt;/p&gt;

&lt;p&gt;Unfortunately SqlSrv (to my knowledge) only accepts &quot;ALTER old_old_name column_definition&quot; and renames of tables and columns are only capable using a stored procedure.&lt;/p&gt;

&lt;p&gt;I&apos;m happy to produce a patch but I think I need a bit of guidance to do so more quickly &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 major one is that getAlterTableSQL will need to produce multiple SQL statements, but in my testing I&apos;m not able to get this to do so without some additional problems, and I&apos;ve not yet had the opportunity to dive into the bowels of the rest of the schema bits and bobs to understand why. If anyone could point me in the vague direction that would be really handy &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;</description>
                <environment>Any version of SQLSrv that I have available (2000-2008 R2)</environment>
            <key id="11773">DBAL-43</key>
            <summary>Doctrine\DBAL\Platforms\MsSqlPlatform Generates invalid T-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>
                                <assignee username="juokaz">Juozas Kaziukenas</assignee>
                                <reporter username="the_angry_angel">Karl Southern</reporter>
                        <labels>
                    </labels>
                <created>Sun, 15 Aug 2010 10:12:16 +0000</created>
                <updated>Sat, 27 Nov 2010 12:40:02 +0000</updated>
                    <resolved>Sat, 27 Nov 2010 12:40:02 +0000</resolved>
                            <version>2.0.0-BETA3</version>
                                <fixVersion>2.0.0-RC1-RC3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="14731" author="juokaz" created="Sun, 14 Nov 2010 06:51:51 +0000"  >&lt;p&gt;Isn&apos;t this fixed in current master &lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php#L226&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/MsSqlPlatform.php#L226&lt;/a&gt; ?&lt;/p&gt;</comment>
                    <comment id="14847" author="beberlei" created="Sat, 27 Nov 2010 12:40:02 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-42] Use column comments for further Doctrine Type Inference </title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-42</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Any custom type could use vendors column comment functionalities to allow more details on the specific type of a column that can be used inside the &quot;listTableColumns()&quot; method.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11759">DBAL-42</key>
            <summary>Use column comments for further Doctrine Type Inference </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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Aug 2010 17:13:00 +0000</created>
                <updated>Sun, 20 Feb 2011 04:39:12 +0000</updated>
                    <resolved>Sun, 20 Feb 2011 04:39:12 +0000</resolved>
                                            <fixVersion>2.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15340" author="beberlei" created="Fri, 18 Feb 2011 16:28:14 +0000"  >&lt;p&gt;MySQL, postfix column with &quot;COMMENT &apos;The KEY obviously&apos;&quot;&lt;/p&gt;

&lt;p&gt;Postgres, COMMENT syntax (another SQL statement, narf!): &lt;a href=&quot;http://www.postgresql.org/docs/8.3/static/sql-comment.html&quot; class=&quot;external-link&quot;&gt;http://www.postgresql.org/docs/8.3/static/sql-comment.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Oracle, COMMENT syntax (another SQL statement): &lt;a href=&quot;http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_4009.htm&quot; class=&quot;external-link&quot;&gt;http://www.stanford.edu/dept/itss/docs/oracle/10g/server.101/b10759/statements_4009.htm&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Sqlite: Nada&lt;/p&gt;

&lt;p&gt;Mssql: (woah this is ugly) &lt;a href=&quot;http://msdn.microsoft.com/en-us/library/ms180047.aspx&quot; class=&quot;external-link&quot;&gt;http://msdn.microsoft.com/en-us/library/ms180047.aspx&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="15351" author="beberlei" created="Sun, 20 Feb 2011 04:39:12 +0000"  >&lt;p&gt;Implemented for Oracle, PostgreSQL and MySQL.&lt;/p&gt;

&lt;p&gt;Now for Array and Object types a Column Comment is appended of the format &quot;(DC2Type:$type)&quot; which is parsed when reading from the database.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12376">DBAL-90</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-39] SQL Logger should log the last failed query</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-39</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The SQL Logger is only called after a query has been executed (this was changed to allow profiling of the queries).  This makes it difficult to determine which query has failed.&lt;/p&gt;

&lt;p&gt;The commit that changed the functionality is at: &lt;a href=&quot;http://github.com/doctrine/dbal/commit/fe0f0e4b8c6c5308cab3d683c552f61317de7067&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/dbal/commit/fe0f0e4b8c6c5308cab3d683c552f61317de7067&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It seems that the logger interface needs to be changed to two functions, a pre-query function and a post-query function.  Profiling should be handled by the logger if it chooses and not by the connection class.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11722">DBAL-39</key>
            <summary>SQL Logger should log the last failed query</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="mridgway">Michael Ridgway</reporter>
                        <labels>
                    </labels>
                <created>Wed, 4 Aug 2010 14:24:09 +0000</created>
                <updated>Sun, 15 Aug 2010 14:57:22 +0000</updated>
                    <resolved>Sun, 15 Aug 2010 14:57:22 +0000</resolved>
                            <version>2.0.0-BETA3</version>
                                <fixVersion>2.0.0-BETA4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13958" author="beberlei" created="Sun, 15 Aug 2010 14:57:22 +0000"  >&lt;p&gt;After lots of thinking i changed the Logger again to have a startQuery() and a stopQuery() method now.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-37] auto increment can not be added to a column, when postgresql is used. </title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-37</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;To add auto increment to on column using the following code in the&lt;br/&gt;
migration class:&lt;/p&gt;

&lt;p&gt;    $systemSettingsTable-&amp;gt;changeColumn(&apos;setting_id&apos;,&lt;br/&gt;
array(&apos;autoincrement&apos; =&amp;gt; true));&lt;br/&gt;
or&lt;br/&gt;
    $settingIdColumn = $systemSettingsTable-&amp;gt;getColumn(&apos;setting_id&apos;);&lt;br/&gt;
    $settingIdColumn-&amp;gt;setAutoincrement(true);&lt;/p&gt;

&lt;p&gt;This works fine when MySQL is used. But when PostGreSQL is used, this&lt;br/&gt;
statement doesn&apos;t create any SQL statement. &lt;/p&gt;

&lt;p&gt;The patch in attachment could perhaps resolve this problem some way.&lt;/p&gt;</description>
                <environment>Linux</environment>
            <key id="11674">DBAL-37</key>
            <summary>auto increment can not be added to a column, when postgresql is used. </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="tiw">Ting Wang</reporter>
                        <labels>
                    </labels>
                <created>Thu, 22 Jul 2010 10:51:15 +0000</created>
                <updated>Sun, 25 Jul 2010 17:32:01 +0000</updated>
                    <resolved>Sun, 25 Jul 2010 17:32:01 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                <fixVersion>2.0.0-BETA3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13695" author="beberlei" created="Sun, 25 Jul 2010 17:32:01 +0000"  >&lt;p&gt;Fixed in current master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10705" name="autoincrementPatch.diff" size="2256" author="tiw" created="Thu, 22 Jul 2010 10:51:15 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-34] MySql getListTableForeignKeysSQL doesn&apos;t work for 5.0.xx</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-34</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The sql contains mysql specific code. And for the mysql 5.0.xxx the sql statement has syntax error.&lt;/p&gt;


&lt;p&gt;in /Doctrine/DBAL/Platforms/MySqlPlatform.php:&lt;br/&gt;
    public function getListTableForeignKeysSQL($table, $database = null)&lt;br/&gt;
    {&lt;br/&gt;
        $sql = &quot;SELECT DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, &quot;.&lt;br/&gt;
               &quot;k.`REFERENCED_COLUMN_NAME` /*!50116 , c.update_rule, c.delete_rule */ &quot;.&lt;br/&gt;
               &quot;FROM information_schema.key_column_usage k /*!50116 &quot;.&lt;br/&gt;
               &quot;INNER JOIN information_schema.referential_constraints c ON &quot;.&lt;br/&gt;
               &quot;  c.constraint_name = k.constraint_name AND &quot;.&lt;br/&gt;
               &quot;  c.table_name = &apos;$table&apos; */ WHERE k.table_name = &apos;$table&apos;&quot;;&lt;/p&gt;

&lt;p&gt;        if ($database) &lt;/p&gt;
{
            $sql .= &quot; AND k.table_schema = &apos;$database&apos; AND c.constraint_schema = &apos;$database&apos;&quot;;
        }

&lt;p&gt;        $sql .= &quot; AND `REFERENCED_COLUMN_NAME` is not NULL&quot;;&lt;/p&gt;

&lt;p&gt;        return $sql;&lt;br/&gt;
}&lt;/p&gt;


&lt;p&gt;For the mysql lower as 5.1.16 the SQL could be as the following:&lt;/p&gt;

&lt;p&gt; SELECT DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, k.`REFERENCED_COLUMN_NAME` FROM information_schema.key_column_usage k WHERE k.table_name = &apos;some_table&apos; AND k.table_schema = &apos;some database&apos; AND c.constraint_schema = &apos;some database&apos; AND `REFERENCED_COLUMN_NAME` is not NULL&lt;/p&gt;

&lt;p&gt;In this statement there is no reference of c&lt;/p&gt;
</description>
                <environment>MySQL Server version: 5.0.51a-24+lenny4 (Debian)&lt;br/&gt;
</environment>
            <key id="11639">DBAL-34</key>
            <summary>MySql getListTableForeignKeysSQL doesn&apos;t work for 5.0.xx</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="tiw">Ting Wang</reporter>
                        <labels>
                    </labels>
                <created>Mon, 19 Jul 2010 04:36:06 +0000</created>
                <updated>Mon, 15 Aug 2011 10:00:48 +0000</updated>
                    <resolved>Tue, 27 Jul 2010 16:36:58 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                <fixVersion>2.0.0-BETA3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13715" author="beberlei" created="Tue, 27 Jul 2010 16:36:58 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="16336" author="gedrox" created="Mon, 15 Aug 2011 08:55:14 +0000"  >&lt;p&gt;Pity that because of this the Doctrine schema-tool update action reports incorrect change list.&lt;br/&gt;
It tries to drop/add foreign keys because &quot;ON DELETE CASCADE&quot; option isn&apos;t read from the database at all.&lt;/p&gt;</comment>
                    <comment id="16338" author="beberlei" created="Mon, 15 Aug 2011 10:00:48 +0000"  >&lt;p&gt;5.0.x has no way to export the CASCADE details. Its just not possible to get this data in 5.0&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-33] Doctrine2 fails handling microseconds from PostgreSQL record</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-33</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;A column in database may be defined as both  TIMESTAMP WITH TIMEZONE and   TIMESTAMP WITHOUT TIMEZONE. If I insert a new value directly to the database through NOW() function, the value is stored including microseconds.&lt;/p&gt;

&lt;p&gt;But then, when I am trying to load the record to Doctrine entity, following exception is thrown:&lt;/p&gt;

&lt;p&gt;&amp;#8212;&lt;/p&gt;

&lt;p&gt;Doctrine\DBAL\Types\ConversionException&lt;/p&gt;

&lt;p&gt;Could not convert database value &quot;2010-07-17 15:29:57.762+02&quot; to Doctrine Type datetimetz&lt;/p&gt;

&lt;p&gt;File: C:\dev\etrener\library\Doctrine\DBAL\Types\ConversionException.php   Line: 46&lt;/p&gt;

&lt;p&gt;&amp;#8212;&lt;/p&gt;

&lt;p&gt;The same with both datetime and datetimetz columns.&lt;/p&gt;

&lt;p&gt;The problem is probably in PostgreSqlPlatform::getDateTimeTzFormatString(), where is the following row:&lt;br/&gt;
public function getDateTimeTzFormatString()&lt;/p&gt;

{ return &apos;Y-m-d H:i:sO&apos;; }

&lt;p&gt;But PostgreSQL stores timestamps with microseconds, so format should be maybe something like:&lt;/p&gt;

{ return &apos;Y-m-d H:i:s.uO&apos;; }

&lt;p&gt;The problem is already posted in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-22?focusedCommentId=13574&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_13574&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-22?focusedCommentId=13574&amp;amp;page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_13574&lt;/a&gt;, but that issue is already closed so maybe it was overlooked already then.&lt;/p&gt;

&lt;p&gt;Thank you for fix!&lt;/p&gt;</description>
                <environment>Doctrine - GIT trunk (night build from 2010-07-17), Windows 7, PHP 5.3.2, PostgreSQL  8.4.3, Apache 2.2.15</environment>
            <key id="11635">DBAL-33</key>
            <summary>Doctrine2 fails handling microseconds from PostgreSQL record</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="jantichy">Jan Tich&#253;</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Jul 2010 11:03:31 +0000</created>
                <updated>Sat, 24 Jul 2010 18:56:40 +0000</updated>
                    <resolved>Sat, 24 Jul 2010 11:44:20 +0000</resolved>
                                            <fixVersion>2.0.0-BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="13620" author="beberlei" created="Tue, 20 Jul 2010 05:27:03 +0000"  >&lt;p&gt;Both DateTime and DateTimeTz assume that TIMESTAMP(0) is the definition, not the TIMESTAMP that implicitly degrades to TIMESTAMP(6). I am not sure how to handle this, I find this Postgres DateTime stuff rather annoying &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;Is there a global client side option for Postgres users to configure this?&lt;/p&gt;</comment>
                    <comment id="13683" author="beberlei" created="Sat, 24 Jul 2010 06:39:29 +0000"  >&lt;p&gt;@Jan: Did you use create the column manually yourself (TIMESTAMP WITHOUT TIMEZONE) or use the Doctrine Schema-Tool which defines TIMESTAMP(0) WITHOUT TIMEZONE.&lt;/p&gt;</comment>
                    <comment id="13686" author="beberlei" created="Sat, 24 Jul 2010 11:44:20 +0000"  >&lt;p&gt;Fixed in DBAL Trunk, see the following section of the DBAL manual to understand the workaround for PostgreSQL TIMESTAMP( n ) types where n &amp;gt; 0.&lt;/p&gt;

&lt;p&gt;ORM always creates TIMESTAMP(0), so this is handled as a legacy database schema.&lt;/p&gt;</comment>
                    <comment id="13687" author="beberlei" created="Sat, 24 Jul 2010 11:44:34 +0000"  >&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;++ PostgreSQL

+++ DateTime, DateTimeTz and Time Types

Postgres has a variable &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; format &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; the datatype TIMESTAMP(n) and TIME(n)
&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; microseconds are allowed (n &amp;gt; 0). Whenever you save a value with microseconds = 0.
PostgreSQL will &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; value in the format:

    2010-10-10 10:10:10 (Y-m-d H:i:s)

However &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; you save a value with microseconds it will &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; the full representation:

    2010-10-10 10:10:10.123456 (Y-m-d H:i:s.u)

Using the DateTime, DateTimeTz or Time type with microseconds enabled columns
can lead to errors because internally types expect the exact format &apos;Y-m-d H:i:s&apos;
in combination with `DateTime::createFromFormat()`. This method is twice a fast
as passing the date to the constructor of `DateTime`.

This is why Doctrine always wants to create the time related types without microseconds:

* DateTime to `TIMESTAMP(0) WITHOUT TIME ZONE`
* DateTimeTz to `TIMESTAMP(0) WITH TIME ZONE`
* Time to `TIME(0) WITHOUT TIME ZONE`

If you &lt;span class=&quot;code-keyword&quot;&gt;do&lt;/span&gt; not let Doctrine create the date column types and rather use types with microseconds
you have replace the &lt;span class=&quot;code-quote&quot;&gt;&quot;DateTime&quot;&lt;/span&gt;, &lt;span class=&quot;code-quote&quot;&gt;&quot;DateTimeTz&quot;&lt;/span&gt; and &lt;span class=&quot;code-quote&quot;&gt;&quot;Time&quot;&lt;/span&gt; types with a more liberal DateTime parser
that detects the format automatically:

    [php]
    use Doctrine\DBAL\Types\Type;

    Type::overrideType(&apos;datetime&apos;, &apos;Doctrine\DBAL\Types\VarDateTime&apos;);
    Type::overrideType(&apos;datetimetz&apos;, &apos;Doctrine\DBAL\Types\VarDateTime&apos;);
    Type::overrideType(&apos;time&apos;, &apos;Doctrine\DBAL\Types\VarDateTime&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13689" author="jantichy" created="Sat, 24 Jul 2010 18:56:40 +0000"  >&lt;p&gt;@Benjamin: Yes, I have created the column manualy directly in database using my own CREATE TABLE definition.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-30] Doctrine\DBAL\Connection::query() method does not connect automatically to the database</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-30</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The database access methods in Doctrine\DBAL\Connection automatically connect to the database, if the connection has not been created yet. This is not true in case of Doctrine\DBAL\Connection::query() - if we forget to connect manually, we get:&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;Warning: call_user_func_array() expects parameter 1 to be a valid callback, first array member is not a valid class name or object in /.../Doctrine/DBAL/Connection.php on line 608
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The problem is caused by the lack of&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;this&lt;/span&gt;-&amp;gt;connect();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;line within the method body.&lt;/p&gt;</description>
                <environment>Linux, PostgreSQL 8.4</environment>
            <key id="11570">DBAL-30</key>
            <summary>Doctrine\DBAL\Connection::query() method does not connect automatically to the 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="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="zyxist">Tomasz J&#281;drzejewski</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jun 2010 11:54:16 +0000</created>
                <updated>Wed, 30 Jun 2010 14:08:05 +0000</updated>
                    <resolved>Wed, 30 Jun 2010 14:08:05 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                <fixVersion>2.0.0-BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13466" author="beberlei" created="Wed, 30 Jun 2010 14:08:05 +0000"  >&lt;p&gt;fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-29] Comparator: Changing one column name and dropping one leads to changing both into the new name.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-29</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If you have a table and in a new version rename one and drop another column both of exactly the same definition, the comparator will errorusly optimize the one to rename both columns to the new one.&lt;/p&gt;

&lt;p&gt;In these cases where it is not detectable which is the renamed and which the dropped it should drop both columns and create the new one. The user has to optimize this himself.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11568">DBAL-29</key>
            <summary>Comparator: Changing one column name and dropping one leads to changing both into the new 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="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Jun 2010 07:51:37 +0000</created>
                <updated>Wed, 30 Jun 2010 14:29:42 +0000</updated>
                    <resolved>Wed, 30 Jun 2010 14:29:42 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                <fixVersion>2.0.0-BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13467" author="beberlei" created="Wed, 30 Jun 2010 14:29:42 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-26] DateTime type column can&apos;t be nullable</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-26</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;After upgrade from B1 to B2 my app stopped working, throwing ConversionException on nullable DateTime field, value of which is null.&lt;br/&gt;
There is part of DateTimeType.php which causes it - if (!$val) matches even the valid null value.&lt;/p&gt;

&lt;p&gt;    public function convertToPHPValue($value, AbstractPlatform $platform)&lt;br/&gt;
    {&lt;br/&gt;
        $val = ($value !== null)&lt;br/&gt;
            ? \DateTime::createFromFormat($platform-&amp;gt;getDateTimeFormatString(), $value) : null;&lt;br/&gt;
        if (!$val) &lt;/p&gt;
{
            throw ConversionException::conversionFailed($value, $this-&amp;gt;getName());
        }
&lt;p&gt;        return $val;&lt;br/&gt;
    }&lt;/p&gt;</description>
                <environment></environment>
            <key id="11560">DBAL-26</key>
            <summary>DateTime type column can&apos;t be nullable</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="koubas">Jakub Hus&#225;k</reporter>
                        <labels>
                    </labels>
                <created>Sun, 27 Jun 2010 11:36:09 +0000</created>
                <updated>Sun, 27 Jun 2010 13:05:27 +0000</updated>
                    <resolved>Sun, 27 Jun 2010 13:05:27 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                <fixVersion>2.0.0-BETA3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13427" author="koubas" created="Sun, 27 Jun 2010 11:41:56 +0000"  >&lt;p&gt;maybe there should be a null check in _gatherRowData method, before the value is passed to convertToPHPValue of any type class&lt;/p&gt;</comment>
                    <comment id="13429" author="beberlei" created="Sun, 27 Jun 2010 12:21:41 +0000"  >&lt;p&gt;This is a bug in the ConversionException code, sorry for that i will fix it tonight.&lt;/p&gt;

&lt;p&gt;Btw, you are not using Beta2 but trunk, the ConversionException code was just committed yesterday. Additionally you should use the ORM with the Beta2 not with trunk of DBAL, they don&apos;t work together currently in some aspects (SchemaTool)&lt;/p&gt;</comment>
                    <comment id="13430" author="beberlei" created="Sun, 27 Jun 2010 13:05:27 +0000"  >&lt;p&gt;This was introduced with &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-22&quot; title=&quot;Saving UTC Offset in Postgres DATETIME messes with PHP DateTime and Timezones&quot;&gt;&lt;del&gt;DBAL-22&lt;/del&gt;&lt;/a&gt; and is now fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-24] Fatal error: Uncaught exception &apos;PDOException&apos; with message &apos;SQLSTATE[42S02]: Base table or view not found: 1109 Unknown table</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-24</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The /Doctrine/DBAL/Platforms/MySqlPlatform-&amp;gt;getListTableForeignKeysSQL() method returns SQL, that causes 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;exception &apos;PDOException&apos; with message &apos;SQLSTATE[42S02]: Base table or view not found: 1109 Unknown table &apos;variables&apos; in information_schema&apos; in X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Connection.php:568
Stack trace:
#0 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Connection.php(568): PDO-&amp;gt;query(&apos;SELECT DISTINCT...&apos;)
#1 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Connection.php(524): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;SELECT DISTINCT...&apos;, Array)
#2 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Schema\AbstractSchemaManager.php(254): Doctrine\DBAL\Connection-&amp;gt;fetchAll(&apos;SELECT DISTINCT...&apos;)
#3 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Schema\AbstractSchemaManager.php(214): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableForeignKeys(&apos;variables&apos;)
#4 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Schema\AbstractSchemaManager.php(199): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableDetails(&apos;variables&apos;)
#5 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\ORM\Mapping\Driver\DatabaseDriver.php(155): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTables()
#6 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\ORM\Mapping\ClassMetadataFactory.php(103): Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;getAllClassNames()
#7 X:\home\localhost\www\incubator\doctrine2\index.php(53): Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getAllMetadata()
#8 {main}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The sessions table looks 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;CREATE TABLE `sessions` (
  `id` &lt;span class=&quot;code-object&quot;&gt;char&lt;/span&gt;(32) NOT NULL DEFAULT &apos;&apos;,
  `modified` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(11) DEFAULT NULL,
  `lifetime` &lt;span class=&quot;code-object&quot;&gt;int&lt;/span&gt;(11) DEFAULT NULL,
  `data` text,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 |
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Microsoft Windows 7, php 5.3.2, MySQL 5.1.40-community</environment>
            <key id="11523">DBAL-24</key>
            <summary>Fatal error: Uncaught exception &apos;PDOException&apos; with message &apos;SQLSTATE[42S02]: Base table or view not found: 1109 Unknown 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="5">Cannot Reproduce</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hinikato">Hinikato Dubrai</reporter>
                        <labels>
                    </labels>
                <created>Sat, 19 Jun 2010 05:02:28 +0000</created>
                <updated>Sat, 27 Nov 2010 13:07:34 +0000</updated>
                    <resolved>Sat, 27 Nov 2010 13:07:34 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13420" author="beberlei" created="Sat, 26 Jun 2010 11:17:33 +0000"  >&lt;p&gt;Can you use the sql logger to find out how exactly that failing SQL statement looks 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;$em-&amp;gt;getConfiguration()-&amp;gt;setSQLLogger(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Logger\EchoSQLLogger());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13425" author="hinikato" created="Sun, 27 Jun 2010 11:39:15 +0000"  >&lt;p&gt;Yes.&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 DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, k.`REFERENCED_COLUMN_NAME` /*!50116 , c.update_rule, c.delete_rule */ FROM information_schema.key_column_usage k /*!50116 INNER JOIN information_schema.referential_constraints c ON k.`CONSTRAINT_NAME` = c.constraint_name AND   c.constraint_name = k.constraint_name AND   c.table_name = &apos;sessions&apos; */ WHERE k.table_name = &apos;sessions&apos; AND table_schema = &apos;myak&apos; AND `REFERENCED_COLUMN_NAME` is not NULL
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13426" author="hinikato" created="Sun, 27 Jun 2010 11:41:34 +0000"  >&lt;p&gt;Sorry, I have replaced the table name, but bug occurs with the &apos;sessions&apos; table too.&lt;/p&gt;</comment>
                    <comment id="13428" author="hinikato" created="Sun, 27 Jun 2010 11:43:52 +0000"  >&lt;p&gt;Hmm., but exception text says that table name is `variables`, so this table looks 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;CREATE TABLE `variables` (
  `name` varchar(128) NOT NULL DEFAULT &apos;&apos;,
  `value` longtext NOT NULL,
  PRIMARY KEY (`name`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13444" author="beberlei" created="Mon, 28 Jun 2010 16:58:26 +0000"  >&lt;p&gt;But if the exception still references variables then the query from your comment cannot be the one that is failing.&lt;/p&gt;</comment>
                    <comment id="13449" author="hinikato" created="Mon, 28 Jun 2010 17:32:51 +0000"  >&lt;p&gt;Do you want that bug will be ignored and Doctrine will be worse product?&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;SHOW FULL TABLES WHERE Table_type = &lt;span class=&quot;code-quote&quot;&gt;&quot;BASE TABLE&quot;&lt;/span&gt;
DESCRIBE sessions
SELECT DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, k.`REFERENCED_COLUMN_NAME` /*!50116 , c.update_rule, c.delete_rule */ FROM information_schema.key_column_usage k /*!50116 INNER JOIN information_schema.referential_constraints c ON k.`CONSTRAINT_NAME` = c.constraint_name AND   c.constraint_name = k.constraint_name AND   c.table_name = &apos;sessions&apos; */ WHERE k.table_name = &apos;sessions&apos; AND table_schema = &apos;myak&apos; AND `REFERENCED_COLUMN_NAME` is not NULL
SHOW INDEX FROM sessions
DESCRIBE system
SELECT DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, k.`REFERENCED_COLUMN_NAME` /*!50116 , c.update_rule, c.delete_rule */ FROM information_schema.key_column_usage k /*!50116 INNER JOIN information_schema.referential_constraints c ON k.`CONSTRAINT_NAME` = c.constraint_name AND   c.constraint_name = k.constraint_name AND   c.table_name = &apos;system&apos; */ WHERE k.table_name = &apos;system&apos; AND table_schema = &apos;myak&apos; AND `REFERENCED_COLUMN_NAME` is not NULL
SHOW INDEX FROM system
DESCRIBE variables
SELECT DISTINCT k.`CONSTRAINT_NAME`, k.`COLUMN_NAME`, k.`REFERENCED_TABLE_NAME`, k.`REFERENCED_COLUMN_NAME` /*!50116 , c.update_rule, c.delete_rule */ FROM information_schema.key_column_usage k /*!50116 INNER JOIN information_schema.referential_constraints c ON k.`CONSTRAINT_NAME` = c.constraint_name AND   c.constraint_name = k.constraint_name AND   c.table_name = &apos;variables&apos; */ WHERE k.table_name = &apos;variables&apos; AND table_schema = &apos;myak&apos; AND `REFERENCED_COLUMN_NAME` is not NULL

exception &apos;PDOException&apos; with message &apos;SQLSTATE[42S02]: Base table or view not found: 1109 Unknown table &apos;variables&apos; in information_schema&apos; in X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Connection.php:568
Stack trace:
#0 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Connection.php(568): PDO-&amp;gt;query(&apos;SELECT DISTINCT...&apos;)
#1 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Connection.php(524): Doctrine\DBAL\Connection-&amp;gt;executeQuery(&apos;SELECT DISTINCT...&apos;, Array)
#2 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Schema\AbstractSchemaManager.php(254): Doctrine\DBAL\Connection-&amp;gt;fetchAll(&apos;SELECT DISTINCT...&apos;)
#3 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Schema\AbstractSchemaManager.php(214): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableForeignKeys(&apos;variables&apos;)
#4 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\DBAL\Schema\AbstractSchemaManager.php(199): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTableDetails(&apos;variables&apos;)
#5 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\ORM\Mapping\Driver\DatabaseDriver.php(155): Doctrine\DBAL\Schema\AbstractSchemaManager-&amp;gt;listTables()
#6 X:\home\localhost\www\incubator\doctrine2\libraries\Doctrine\ORM\Mapping\ClassMetadataFactory.php(101): Doctrine\ORM\Mapping\Driver\DatabaseDriver-&amp;gt;getAllClassNames()
#7 X:\home\localhost\www\incubator\doctrine2\index.php(57): Doctrine\ORM\Mapping\ClassMetadataFactory-&amp;gt;getAllMetadata()
#8 {main}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="13453" author="beberlei" created="Tue, 29 Jun 2010 03:18:30 +0000"  >&lt;p&gt;Does it seem like me is ignoring this bug? Its not that I am payed to work on Doctrine and have no day-job.&lt;/p&gt;

&lt;p&gt;This looks like a very good re-produce case though, i am looking into it (when i have time &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="13455" author="hinikato" created="Tue, 29 Jun 2010 05:31:06 +0000"  >&lt;p&gt;Benjamin, thank you!&lt;/p&gt;</comment>
                    <comment id="13716" author="beberlei" created="Tue, 27 Jul 2010 16:45:00 +0000"  >&lt;p&gt;I cannot reproduce this sorry, can you try again? i have changed that method for several other bugs lately, maybe it is fixed now?&lt;/p&gt;</comment>
                    <comment id="14851" author="beberlei" created="Sat, 27 Nov 2010 13:07:34 +0000"  >&lt;p&gt;Closed, no additional feedback given.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-22] Saving UTC Offset in Postgres DATETIME messes with PHP DateTime and Timezones</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-22</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The DateTime type is currently unusable in PostgreSQL due to a wrong parsing format.&lt;/p&gt;

&lt;p&gt;PostgreSqlPlatform::getDateTimeFormatString() should be changed from:&lt;/p&gt;

&lt;p&gt;Y-m-d H:i:sO &lt;/p&gt;

&lt;p&gt;to&lt;/p&gt;

&lt;p&gt;Y-m-d H:i:s.uO&lt;/p&gt;

&lt;p&gt;According to &lt;a href=&quot;http://twitter.com/auroraeosrose/statuses/16154268629&quot; class=&quot;external-link&quot;&gt;http://twitter.com/auroraeosrose/statuses/16154268629&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Also, there&apos;s no way to check if a convert From and To PHP/Database worked correctly. Maybe we should introduce an exception when a DBAL\Type conversion fails, otherwise, there&apos;s no way to figure it out what happened.&lt;/p&gt;</description>
                <environment></environment>
            <key id="11490">DBAL-22</key>
            <summary>Saving UTC Offset in Postgres DATETIME messes with PHP DateTime and Timezones</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="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 Jun 2010 12:53:25 +0000</created>
                <updated>Tue, 13 Jul 2010 07:42:05 +0000</updated>
                    <resolved>Sat, 26 Jun 2010 11:06:52 +0000</resolved>
                                            <fixVersion>2.0.0-BETA3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13309" author="beberlei" created="Mon, 14 Jun 2010 15:20:06 +0000"  >&lt;p&gt;throwing an exception is a no-go in my opinion, it would completely cripple an application if there is some change in the DB.&lt;/p&gt;

&lt;p&gt;There are no checks if an integer field is really in int, or if the db has a varchar field making the (int) conversion fail. This should be ignored and is responsibility of the user to get right.&lt;/p&gt;

&lt;p&gt;I am looking into the format, however we have several unit-tests for this working correctly, i am a bit confused.&lt;/p&gt;</comment>
                    <comment id="13310" author="beberlei" created="Mon, 14 Jun 2010 16:13:58 +0000"  >&lt;p&gt;The question is rather, should we deprecate the usage of timezones alltogether? This is a good read on the topic: &lt;a href=&quot;http://derickrethans.nl/storing-date-time-in-database.html&quot; class=&quot;external-link&quot;&gt;http://derickrethans.nl/storing-date-time-in-database.html&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="13312" author="beberlei" created="Mon, 14 Jun 2010 16:22:49 +0000"  >&lt;p&gt;ok the current state is, we use &quot;TIMESTAMP(0) WITH TIMEZONE&quot;, which matches the currently given format &quot;Y-m-d H:i:sO&quot;&lt;/p&gt;</comment>
                    <comment id="13313" author="auroraeosrose" created="Mon, 14 Jun 2010 16:34:26 +0000"  >&lt;p&gt;The &quot;TIMESTAMP(0) WITH TIMEZONE&quot; is a very UNCOMMON time field&lt;/p&gt;

&lt;p&gt;Usually timstamp without time zone is used &lt;/p&gt;

&lt;p&gt;Also the difference between integer field is really in int and db has a varchar field making the (int) is different for one reason&lt;/p&gt;

&lt;p&gt;The timestamp is returning a datetime object - not a scalar&lt;/p&gt;

&lt;p&gt;What happens when you try to use something in PHP that&apos;s not an object as an object? It fatal errors&lt;/p&gt;

&lt;p&gt;If the integer field is not really an integer when you get your data back from the db and you attempt to use it, PHP is not going to throw a fatal error at you.  Your application might be angry, but that&apos;s another story.&lt;/p&gt;

&lt;p&gt;I would almost rather you simply use strtotime and pass that to the datetime class for postgresql since it will work on all &apos;versions&quot; of postgresql&apos;s timestamp, regardless if it has microseconds or timezone information.  Then you&apos;re not locking all users of doctrine into using one timestamp format.&lt;/p&gt;
</comment>
                    <comment id="13314" author="auroraeosrose" created="Mon, 14 Jun 2010 16:43:05 +0000"  >&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;$full = &apos;2010-06-11 17:18:39.808397-04&apos;;
$no_micro = &apos;2010-06-11 17:18:39-04&apos;;
$no_tz = &apos;2010-06-11 17:18:39&apos;;
var_dump(DateTime::createFromFormat(&apos;Y-m-d H:i:sO&apos;, $full));
var_dump(DateTime::createFromFormat(&apos;Y-m-d H:i:s.uO&apos;, $full));

var_dump(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime($full));
var_dump(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime($no_micro));
var_dump(&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime($no_tz));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Quick test  - why rely on createFromFormat when the datetime constructor is smart enough to handle all formats?  &lt;/p&gt;</comment>
                    <comment id="13315" author="beberlei" created="Mon, 14 Jun 2010 16:52:49 +0000"  >&lt;p&gt;One reason is probably performance, using the constructor takes double the time:&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;$full = &apos;2010-06-11 17:18:39.808397-04&apos;;
$no_micro = &apos;2010-06-11 17:18:39-04&apos;;
$no_tz = &apos;2010-06-11 17:18:39&apos;;

$n = 5000;

$ts = microtime(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;);
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ($i = 0; $i &amp;lt; $n; $i++) {
    DateTime::createFromFormat(&apos;Y-m-d H:i:sO&apos;, $no_micro);
    DateTime::createFromFormat(&apos;Y-m-d H:i:s.uO&apos;, $full);
}
echo &lt;span class=&quot;code-quote&quot;&gt;&quot;DateTime::createFromFormat: &quot;&lt;/span&gt; . number_format(microtime(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) - $ts, 4).&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&lt;/span&gt;;

&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; ($i = 0; $i &amp;lt; $n; $i++) {
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime($full);
    &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime($no_micro);
}
echo &lt;span class=&quot;code-quote&quot;&gt;&quot;&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime: &quot;&lt;/span&gt; . number_format(microtime(&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;) - $ts, 4).&lt;span class=&quot;code-quote&quot;&gt;&quot;\n&quot;&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;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;DateTime::createFromFormat: 0.1173
&lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; DateTime: 0.2496
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Since the DateFormat is pretty static, therefore using createFromFormat() seems an obvious choice. This is of course mainly a good reason for MySQL where you cannot change the format, and Postgres, Oracle and DB2 allow changes in precision and formatting of the date which make this decision a little bit more complicated.&lt;/p&gt;</comment>
                    <comment id="13316" author="auroraeosrose" created="Mon, 14 Jun 2010 16:58:55 +0000"  >&lt;p&gt;I think everyone BUT mysql allow changes in the precision and formatting of the date - heck SQL Server is the worst for &quot;make the date be whatever you want&quot;&lt;/p&gt;

&lt;p&gt;I think this would fall into &quot;premature optimization&quot; - yes it&apos;s a great speed improvement for mysql, but it&apos;s at the expense of all other DBs...&lt;/p&gt;</comment>
                    <comment id="13317" author="beberlei" created="Mon, 14 Jun 2010 16:59:53 +0000"  >&lt;p&gt;A Doctrine\DBAL\DBALException due to a wrong date in the database probably leads to a fatal error in any userland code, or would anybody catch all the errors? how would you handle them?&lt;/p&gt;

&lt;p&gt;We could think of changing the type to be without timezone, that would be a pretty massive BC though since it affects users database schemas.&lt;/p&gt;

&lt;p&gt;Another option would be a configurable format per Postgres/Oracle/DB2 Platform:&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;$config = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\ORM\Configuration();
$config-&amp;gt;setDateTimeGlobalFormat(&apos;Y-m-d H:i:s.uO&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;However Type instances are flyweight instances, that means it would have to be the format of all Doctrine DateTime typed columns. However this way you would at least have full control over the format, not depending on any Doctrine 2 interpretation.&lt;/p&gt;

&lt;p&gt;You can of course add your own datetime type and overwrite the existing or use different ones. Maybe we should supply two DateTime types.&lt;/p&gt;</comment>
                    <comment id="13318" author="auroraeosrose" created="Mon, 14 Jun 2010 17:18:39 +0000"  >&lt;p&gt;I don&apos;t think an exception is a good idea&lt;br/&gt;
A PHP warning/notice might be a better solution so you at least know what failed (it shouldn&apos;t kill the script though, as a fatal error and exception do)&lt;/p&gt;

&lt;p&gt;However a configurable would probably be a good idea... &lt;br/&gt;
Or two datetime types - one that allows a format to be used&lt;br/&gt;
Or even the ability to define a format for your datetime field (with a fallback to the default format)&lt;/p&gt;

&lt;p&gt;For databases that talk to other things, not just PHP via Doctrine, dictating the format of the datetime fields is not an option &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="13363" author="beberlei" created="Thu, 17 Jun 2010 16:50:29 +0000"  >&lt;p&gt;I changed the title to reflect the real issue of this ticket, using Postgresql with WITH TIMEZONE is rather problematic with regard to DateTime and DateTimeZone Handling inside PHP, see the following code snippets (&lt;a href=&quot;http://pastie.org/1009033&quot; class=&quot;external-link&quot;&gt;http://pastie.org/1009033&lt;/a&gt;) and Dericks post (&lt;a href=&quot;http://derickrethans.nl/storing-date-time-in-database.html&quot; class=&quot;external-link&quot;&gt;http://derickrethans.nl/storing-date-time-in-database.html&lt;/a&gt;).&lt;/p&gt;

&lt;p&gt;We should change the default behaviour in Postgres (and Oracle) to be WITHOUT TIMEZONE, since this is the 90% use-case. Additionally it may create less bugs when we don&apos;t fiddle with the Timezone used for creation.&lt;/p&gt;</comment>
                    <comment id="13391" author="beberlei" created="Mon, 21 Jun 2010 14:28:01 +0000"  >&lt;p&gt;Ok we also discussed errors when conversion failed and added a ConversionException. We also implemented a new type DateTimeTz.&lt;/p&gt;

&lt;p&gt;This is both currently in my feature branch: &lt;a href=&quot;http://github.com/doctrine/dbal/tree/DBAL-22&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/dbal/tree/DBAL-22&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="13396" author="beberlei" created="Mon, 21 Jun 2010 17:40:24 +0000"  >&lt;p&gt;This is a copy of a mail going to the doctrine-dev and doctrine-user lists some minutes ago:&lt;/p&gt;

&lt;p&gt;Hello Doctrine 2 + Postgres and Oracle Users,&lt;/p&gt;

&lt;p&gt;Both Postgres and Oracle currently save the Date Offset for DateTime&lt;br/&gt;
instances they are handling from Doctrine 2. However Date Offsets should&lt;br/&gt;
not be confused with Timezones and this can cause considerable issues&lt;br/&gt;
with transitions, modifications and comparisons of dates.&lt;/p&gt;

&lt;p&gt;As a result we have to change the DateTime type implementations of&lt;br/&gt;
Oracle/Postgres for Beta 3 to reduce the risk of users running into date&lt;br/&gt;
calculation problems.&lt;/p&gt;

&lt;p&gt;Required changes inside Doctrine DBAL Package:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The column create statement on both platforms will be changed from&lt;br/&gt;
&quot;TIMESTAMP(0) WITH TIME ZONE&quot; to &quot;TIMESTAMP(0) WITHOUT TIME ZONE&quot;.&lt;/li&gt;
	&lt;li&gt;The supported PHP date format will change from &quot;Y-m-d H:i:sO&quot; to&lt;br/&gt;
&quot;Y-m-d H:i:s&quot;.&lt;/li&gt;
	&lt;li&gt;Schema-Tool will automatically detect dates with offset retrieved from&lt;br/&gt;
the Database as &quot;DateTimeTz&quot; types.&lt;/li&gt;
	&lt;li&gt;Wrongly converted date values will throw a &quot;Doctrine\DBAL\Types&lt;br/&gt;
\ConversionException&quot;. This will stop any non-migrated from running, but&lt;br/&gt;
more importantly from corrupting your data.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;What does that mean to you as a user?&lt;/p&gt;

&lt;p&gt;POSTGRES:&lt;/p&gt;

&lt;p&gt;There are two solutions if you use Postgres:&lt;/p&gt;

&lt;p&gt;1. The easy way out: We will introduce a new Type &quot;DateTimeTz&quot;, which&lt;br/&gt;
will keep backwards compability. You will however have to deal with the&lt;br/&gt;
Timezone issues yourself. One way is by setting your application&lt;br/&gt;
&quot;date.timezone&quot; ini variable to be an offset instead of a timezone on&lt;br/&gt;
your server. You have to make transition calculations yourself in this&lt;br/&gt;
case.&lt;/p&gt;

&lt;p&gt;2. Converting the columns: When upgrading from Beta 2 to the master or&lt;br/&gt;
Beta 3 the type will change its behavior, conversions from a Beta 2 WITH&lt;br/&gt;
TIME ZONE column to the new type will fail, leading to a&lt;br/&gt;
&quot;ConversionException&quot; being thrown. However Schema-Tool will recognize&lt;br/&gt;
the changes automatically and ask you to convert the column. First tests&lt;br/&gt;
of me showed that converting the TIMESTAMP column from WITH to WITHOUT&lt;br/&gt;
timezone works, it even corrects all dates for the offsets to UTC.&lt;/p&gt;

&lt;p&gt;ORACLE:&lt;/p&gt;

&lt;p&gt;Oracle does not permit changing the types when there is already data in&lt;br/&gt;
it (guessing from the preliminary tests I made).&lt;br/&gt;
You have to switch all your entity fields using the &quot;DateTime&quot; type to&lt;br/&gt;
use the new &quot;DateTimeTz&quot; type otherwise you will experience an&lt;br/&gt;
&quot;ConversionException&quot; being thrown.&lt;/p&gt;

&lt;p&gt;Planed Schedule for the changes:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;The complete changes are currently in a DBAL feature branch on Github&lt;br/&gt;
&lt;a href=&quot;http://github.com/doctrine/dbal/tree/DBAL-22&quot; class=&quot;external-link&quot;&gt;http://github.com/doctrine/dbal/tree/DBAL-22&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;Merge into the DBAL project this week. This WONT affect you using the&lt;br/&gt;
ORM just yet, its a DBAL change only!&lt;/li&gt;
	&lt;li&gt;The ORM Master on Github will still be linked against the DBAL Beta 2&lt;br/&gt;
via a Git Submodule (doctrine2/lib/vendor/doctrine-dbal).&lt;/li&gt;
	&lt;li&gt;In the timestamp between the DBAL Beta3 and the ORM Beta3 release we&lt;br/&gt;
will integrate the changes into the ORM package also.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;I will send an additional notice to the lists when we will bump the ORM&lt;br/&gt;
dependency on the DBAL.&lt;/p&gt;

&lt;p&gt;Sorry for the inconvenience regarding this issue, but we feel very&lt;br/&gt;
strongly about making this change. This will ultimately solve many&lt;br/&gt;
subtle issues that would have popped up here and there.&lt;/p&gt;

&lt;p&gt;Thanks goes to Elisabeth Smith for bringing this issue to the table and&lt;br/&gt;
to Derick Rethans who helped us understand why timezones/offset in the&lt;br/&gt;
database are a pain to work with.&lt;/p&gt;

&lt;p&gt;greetings,&lt;br/&gt;
Benjamin&lt;/p&gt;</comment>
                    <comment id="13419" author="beberlei" created="Sat, 26 Jun 2010 11:06:52 +0000"  >&lt;p&gt;Merged into Master now&lt;/p&gt;</comment>
                    <comment id="13574" author="drevolution" created="Tue, 13 Jul 2010 07:38:57 +0000"  >&lt;p&gt;Hi, on master branch of DBAL package in PostgreSqlPlatform::getDateTimeTzFormatString() I see this:&lt;/p&gt;

&lt;p&gt;    public function getDateTimeTzFormatString()&lt;/p&gt;
    {
        return &apos;Y-m-d H:i:sO&apos;;
    }

&lt;p&gt;But PostgreSQL stores timestamps with microseconds, so format should be more likely:&lt;/p&gt;

&lt;p&gt;    public function getDateTimeTzFormatString()&lt;/p&gt;
    {
        return &apos;Y-m-d H:i:s.uO&apos;;
    } 

&lt;p&gt;Yes, Doctrine converts DateTimeTz from PHP value to database value without microseconds, but if I will use some database function (for example now()) for get timestamp and I will store it to the database directly and than I will read this values through Doctrine, it will cause an error.&lt;/p&gt;

&lt;p&gt;Is there any reason for not using default PostgreSQL format of timestamp with microseconds?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-20] Add Connection Resolver</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-20</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;There should be an additional, optional &quot;connectionResolver&quot; which returns a driver instance for differentation between different drivers in Doctrine\DBAL\Connection instead of using $this-&amp;gt;_conn (which stays the default case)&lt;/p&gt;

&lt;p&gt;This is useful for master/slave, master/master or failover strategies inside the application&lt;/p&gt;</description>
                <environment></environment>
            <key id="11483">DBAL-20</key>
            <summary>Add Connection Resolver</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>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 13 Jun 2010 06:32:54 +0000</created>
                <updated>Sun, 1 Apr 2012 16:10:21 +0000</updated>
                    <resolved>Mon, 19 Dec 2011 14:56:53 +0000</resolved>
                                            <fixVersion>2.2</fixVersion>
                                        <due></due>
                    <votes>3</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="13394" author="diego.lewin" created="Mon, 21 Jun 2010 17:14:54 +0000"  >&lt;p&gt;I have done some working code, I extended  \Doctrine\DBAL\Connection:&lt;/p&gt;


&lt;p&gt;From the controllers/ service layer:&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;$em-&amp;gt;getConnection()-&amp;gt;setConnection(&apos;write&apos;);

&lt;span class=&quot;code-keyword&quot;&gt;try&lt;/span&gt; {
    $em-&amp;gt;persist($user);
} &lt;span class=&quot;code-keyword&quot;&gt;catch&lt;/span&gt; (Exception $e) {
     echo $e-&amp;gt;getMessage();
}


$em-&amp;gt;getConnection()-&amp;gt;setConnection(&apos;read_1&apos;);

...

$em-&amp;gt;getConnection()-&amp;gt;setConnection(&apos;read_2&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Obviously all the statements related with a unit of work will be associated with only one connection.&lt;/p&gt;

&lt;p&gt;_________________________________________&lt;/p&gt;

&lt;p&gt;When setting the event manager:&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; $connectionOptions =
              array(
            &apos;driver&apos;    =&amp;gt; $doctrineConfig[&apos;conn&apos;][&apos;driv&apos;],
            &apos;user&apos;      =&amp;gt; $doctrineConfig[&apos;conn&apos;][&apos;user&apos;],
            &apos;password&apos;  =&amp;gt; $doctrineConfig[&apos;conn&apos;][&apos;pass&apos;],
            &apos;dbname&apos;    =&amp;gt; $doctrineConfig[&apos;conn&apos;][&apos;dbname&apos;],
            &apos;host&apos;      =&amp;gt; $doctrineConfig[&apos;conn&apos;][&apos;host&apos;],
       
            &apos;wrapperClass&apos; =&amp;gt;&apos;\Fishpond\Doctrine\DBAL\Connections\Multiple&apos;
           
        );


        $connectionOptions[&apos;multiple_connections&apos;][&apos;read&apos;] = array(
        &lt;span class=&quot;code-quote&quot;&gt;&quot;driver&quot;&lt;/span&gt; =&amp;gt;  &lt;span class=&quot;code-quote&quot;&gt;&quot;pdo_mysql&quot;&lt;/span&gt;,
        &lt;span class=&quot;code-quote&quot;&gt;&quot;user&quot;&lt;/span&gt; =
        &lt;span class=&quot;code-quote&quot;&gt;&quot;password&quot;&lt;/span&gt; =&amp;gt;
        &lt;span class=&quot;code-quote&quot;&gt;&quot;dbname&quot;&lt;/span&gt;=&amp;gt;
        &lt;span class=&quot;code-quote&quot;&gt;&quot;host&quot;&lt;/span&gt; =&amp;gt;
     

        );


        $connectionOptions[&apos;multiple_connections&apos;][&apos;write&apos;] = array(
        &lt;span class=&quot;code-quote&quot;&gt;&quot;driver&quot;&lt;/span&gt; =&amp;gt;  &lt;span class=&quot;code-quote&quot;&gt;&quot;pdo_mysql&quot;&lt;/span&gt;,
        &lt;span class=&quot;code-quote&quot;&gt;&quot;user&quot;&lt;/span&gt; =&amp;gt; 
        &lt;span class=&quot;code-quote&quot;&gt;&quot;password&quot;&lt;/span&gt; =&amp;gt;
        &lt;span class=&quot;code-quote&quot;&gt;&quot;dbname&quot;&lt;/span&gt;=&amp;gt;
        &lt;span class=&quot;code-quote&quot;&gt;&quot;host&quot;&lt;/span&gt; =&amp;gt;

        );


$em = \Doctrine\ORM\EntityManager::create($connectionOptions, $config);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;



&lt;p&gt;_________________________________________&lt;/p&gt;


&lt;p&gt;The new connection class itself:&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;namespace Fishpond\Doctrine\DBAL\Connections;


class Multiple &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; \Doctrine\DBAL\Connection
{
    /**
     * An array with the different database connection used by the EntityManager.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; array of Doctrine\DBAL\Connection
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $_connections;

    /**
     * The index that indicate which
     * connection is used, &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt; index is &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
     * the defaul connection is used
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;String&lt;/span&gt;
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $_selectedConnection;


    /**
     * Initializes a &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; instance of the Connection class.
     *
     * @param array $params  The connection parameters.
     * @param Driver $driver
     * @param Configuration $config
     * @param EventManager $eventManager
     */

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct(array $params, Driver  $driver, Configuration $config = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;,
       EventManager     $eventManager = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
    {

        parent::__construct($params, $driver, $config, $eventManager);
      
        foreach ($params[&apos;multiple_connections&apos;] as $connectionKey =&amp;gt; $paramsMultipleConnection) {
            $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_connections[$connectionKey] = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \Doctrine\DBAL\Connection($paramsMultipleConnection, $driver, $config, $eventManager);
        }
    }
 


    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function setConnection($selectedConnection) {
        $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_selectedConnection = $selectedConnection;
   
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;;
    }


    /**
     * Establishes the connection with the database.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-object&quot;&gt;boolean&lt;/span&gt; TRUE &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; the connection was successfully established, FALSE &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;
     *                 the connection is already open.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function connect()
    {
        $status = parent::connect();
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ($status == &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;
        }
       
        foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_connections as $connection) {
            $connection-&amp;gt;connect();
        }


        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
    }

    /**
     * Executes an, optionally parameterized, SQL query.
     *
     * If the query is parameterized, a prepared statement is used.
     * If an SQLLogger is configured, the execution is logged.
     *
     * @param string $query The SQL query to execute.
     * @param array $params The parameters to bind to the query, &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; any.
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Doctrine\DBAL\Driver\Statement The executed statement.
     * @internal PERF: Directly prepares a driver statement, not a wrapper.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function executeQuery($query, array $params = array(), $types = array())
    {
    
        &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;_selectedConnection == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::executeQuery($query, $params, $types);
        }

        &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;_connections[$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_selectedConnection]-&amp;gt;executeQuery($query, $params, $types);
       
       
    }



    /**
     * Starts a transaction by suspending auto-commit mode.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; void
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function beginTransaction()
    {
       parent::beginTransaction();
       foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_connections as $connection) {
            $connection-&amp;gt;beginTransaction();
       }
    }

    /**
     * Commits the current transaction.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; void
     * @&lt;span class=&quot;code-keyword&quot;&gt;throws&lt;/span&gt; ConnectionException If the commit failed due to no active transaction or
     *                             because the transaction was marked &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; rollback only.
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function commit()
    {
       parent::commit();
       foreach ($&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_connections as $connection) {
            $connection-&amp;gt;commit();
       }
    }


  /**
     * Gets the wrapped driver connection.
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; Doctrine\DBAL\Driver\Connection
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getWrappedConnection()
    {
        &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;_selectedConnection == &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;) {
            &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::getWrappedConnection();
        }

        &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;_connections[$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_selectedConnection]-&amp;gt;getWrappedConnection();
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt; ..........&lt;br/&gt;
 ........&lt;/p&gt;

&lt;p&gt;The class is working so far (need much more testing), but the idea is if is not selected a connection it will work as it is now. Also, an &apos;automatic&apos; selection of the connection could happen in an event listener, where we could define rules about which connection should be used for  different conditions/entities.&lt;/p&gt;</comment>
                    <comment id="13694" author="beberlei" created="Sun, 25 Jul 2010 10:39:27 +0000"  >&lt;p&gt;Rescheduled for Beta4&lt;/p&gt;</comment>
                    <comment id="13963" author="romanb" created="Mon, 16 Aug 2010 12:59:04 +0000"  >&lt;p&gt;We could even move this post-2.0 since this is a new feature and carries the risk of opening a set of new issues.&lt;/p&gt;</comment>
                    <comment id="15800" author="lstrojny" created="Mon, 2 May 2011 21:22:31 +0000"  >&lt;p&gt;Here is what we use in production for a few weeks now:&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;&amp;lt;?php
namespace Jarlssen\Doctrine2\DBAL;

use Doctrine\DBAL\Connection,
    Doctrine\DBAL\Driver,
    Doctrine\ORM\Configuration,
    Doctrine\Common\EventManager,
    Doctrine\DBAL\Events;

class MasterSlaveConnection &lt;span class=&quot;code-keyword&quot;&gt;extends&lt;/span&gt; Connection
{
    /**
     * Master connection
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Doctrine\DBAL\Driver\Connection
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $_masterConn;

    /**
     * Slave connection
     *
     * @&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt; Doctrine\DBAL\Driver\Connection
     */
    &lt;span class=&quot;code-keyword&quot;&gt;protected&lt;/span&gt; $_slaveConn;

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function __construct(
        array $params,
        Driver $driver,
        Configuration $config = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;,
        EventManager $eventManager = &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;
    )
    {
        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (!isset($params[&apos;slaves&apos;]) or !isset($params[&apos;master&apos;])) {
            &lt;span class=&quot;code-keyword&quot;&gt;throw&lt;/span&gt; &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; \InvalidArgumentsException(&apos;master or slaves configuration missing&apos;);
        }

        $params[&apos;master&apos;][&apos;driver&apos;] = $params[&apos;driver&apos;];
        foreach ($params[&apos;slaves&apos;] as &amp;amp;$slave) {
            $slave[&apos;driver&apos;] = $params[&apos;driver&apos;];
        }

        parent::__construct($params, $driver, $config, $eventManager);
    }

    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function connect($connectionName = &apos;slave&apos;)
    {
        $forceMasterAsSlave = &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt;;

        &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;getTransactionNestingLevel() &amp;gt; 0) {
            $connectionName = &apos;master&apos;;
            $forceMasterAsSlave = &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;;
        }

        $connectionProperty = &apos;_&apos; . $connectionName . &apos;Conn&apos;;
        &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;{$connectionProperty}) {
            &lt;span class=&quot;code-keyword&quot;&gt;