<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 06:02:19 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://doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DBAL+AND+resolution+%3D+Unresolved+AND+fixVersion+is+EMPTY+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://doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DBAL+AND+resolution+%3D+Unresolved+AND+fixVersion+is+EMPTY+ORDER+BY+priority+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="86" total="86"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-402] Fatal error: Uncaught exception</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-402</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;
Fatal error: Uncaught exception &apos;Doctrine\DBAL\Driver\OCI8\OCI8Exception&apos; with message &apos;ORA-00904: &lt;span class=&quot;code-quote&quot;&gt;&quot;T0&quot;&lt;/span&gt;.&lt;span class=&quot;code-quote&quot;&gt;&quot;ID&quot;&lt;/span&gt;: invalid identifier&apos; in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php on line 28 Doctrine\DBAL\Driver\OCI8\OCI8Exception: ORA-00904: &lt;span class=&quot;code-quote&quot;&gt;&quot;T0&quot;&lt;/span&gt;.&lt;span class=&quot;code-quote&quot;&gt;&quot;ID&quot;&lt;/span&gt;: invalid identifier in /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Driver/OCI8/OCI8Exception.php on line 28

Call Stack: 0.0002 665368
1. {main}() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/tools/sandbox/index.php:0 0.3389 6023864
2. Doctrine\ORM\EntityManager-&amp;gt;find() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/tools/sandbox/index.php:71 0.3514 8264024
3. Doctrine\ORM\Persisters\BasicEntityPersister-&amp;gt;load() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/Doctrine/ORM/EntityManager.php:444 0.3521 8413576 
4. Doctrine\DBAL\Connection-&amp;gt;executeQuery() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/Doctrine/ORM/Persisters/BasicEntityPersister.php:725 0.3532 8625920
5. Doctrine\DBAL\Driver\OCI8\OCI8Statement-&amp;gt;execute() /&lt;span class=&quot;code-keyword&quot;&gt;var&lt;/span&gt;/www/doctrine/doctrine/lib/vendor/doctrine-dbal/lib/Doctrine/DBAL/Connection.php:635 Variables in local scope (#5): $hasZeroIndex = *uninitialized* $key = *uninitialized* $params = NULL $ret = FALSE $val = *uninitialized* 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="14337">DBAL-402</key>
            <summary>Fatal error: Uncaught exception</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="userua">Ruslan</reporter>
                        <labels>
                        <label>dql</label>
                        <label>oracle</label>
                    </labels>
                <created>Sat, 29 Dec 2012 13:03:19 +0000</created>
                <updated>Mon, 8 Apr 2013 18:23:52 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="19225" author="beberlei" created="Sun, 6 Jan 2013 09:37:59 +0000"  >&lt;p&gt;Format code sample&lt;/p&gt;</comment>
                    <comment id="19938" author="beberlei" created="Thu, 4 Apr 2013 17:01:08 +0000"  >&lt;p&gt;What is wrong here? The error alone is not very helpful&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-57] Handling of Quoted Elements</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-57</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Handling of Quoted Table, Column (etc) names is not as good as it could be. Any input is currently accepted, however it is not processed further and used in conjunction with the platform.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12043">DBAL-57</key>
            <summary>Handling of Quoted Elements</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 30 Oct 2010 02:48:54 +0000</created>
                <updated>Sat, 30 Oct 2010 02:50:13 +0000</updated>
                                    <version>2.0.0-BETA4</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                            <issuelinks>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                                <inwardlinks description="is referenced by">
                            <issuelink>
            <issuekey id="11986">DDC-832</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-125] Add Informix Support</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-125</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Today exist many customers with Informix 11.50 and they will deveoplment with php+simphony, but doctrine will be an alternative inside the framework but it isn&apos;t  supported.&lt;br/&gt;
My customers  can&apos;t migration ( they are happy with informix) your application and he need a framework as simphony and an abstration of your environment as Doctrine.&lt;br/&gt;
There is a possibility to support Informix in Doctrine?&lt;br/&gt;
Thanks and regards&lt;/p&gt;

&lt;p&gt;Adolfo Flores&lt;br/&gt;
Consultant&lt;/p&gt;</description>
                <environment>Linux, Unix &amp;amp; Windows</environment>
            <key id="12700">DBAL-125</key>
            <summary>Add Informix Support</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="adolfof">Adolfo Flores</reporter>
                        <labels>
                    </labels>
                <created>Wed, 8 Jun 2011 00:36:15 +0000</created>
                <updated>Sat, 11 Jun 2011 07:14:31 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15961" author="beberlei" created="Wed, 8 Jun 2011 07:35:27 +0000"  >&lt;p&gt;There is a possibility to support Informix, this is described here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/docs/dbal/2.0/en/reference/supporting-other-databases.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/dbal/2.0/en/reference/supporting-other-databases.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;I don&apos;t know informix and never worked with it, if you would volunteer to code this i would be enternelly grateful &lt;img class=&quot;emoticon&quot; src=&quot;http://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; I could help you with the details of implementation.&lt;/p&gt;

&lt;p&gt;I think a working prototype can be implemented in 4-6h of time.&lt;/p&gt;</comment>
                    <comment id="15964" author="adolfof" created="Wed, 8 Jun 2011 17:08:30 +0000"  >&lt;p&gt;good idea, I am an expert in informix database and I may need support in doctrine.&lt;/p&gt;

&lt;p&gt;Is there any template to follow?   I have read the required structure in the url given, it seems feasible.&lt;/p&gt;

&lt;p&gt;What next step?&lt;/p&gt;

&lt;p&gt;I am installing Informix, php 5.3 on RHES 5.2 All 32-bit&lt;/p&gt;

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

&lt;p&gt;Adolfo&lt;/p&gt;

&lt;p&gt;Note: .I have no time basis, so that one week would be a reasonable time for this activity&lt;/p&gt;</comment>
                    <comment id="15969" author="beberlei" created="Sat, 11 Jun 2011 07:14:31 +0000"  >&lt;p&gt;I added some more details to the chapter, here is the part:&lt;/p&gt;

&lt;p&gt;Implementation Steps in Detail&lt;br/&gt;
------------------------------&lt;/p&gt;

&lt;p&gt;1. Add your driver shortcut to class-name `Doctrine\DBAL\DriverManager`.&lt;br/&gt;
2. Make a copy of tests/dbproperties.xml.dev and adjust the values to your driver shortcut and testdatabase.&lt;br/&gt;
3. Create three new classes implementing ``\Doctrine\DBAL\Driver\Driver``, ``\Doctrine\DBAL\Driver\Statement``&lt;br/&gt;
   and ``Doctrine\DBAL\Driver``. You can take a look at the ``Doctrine\DBAL\Driver\OCI8`` driver.&lt;br/&gt;
4. You can run the testsuite of your new database driver by calling &quot;cd tests/ &amp;amp;&amp;amp; phpunit -c myconfig.xml Doctrine/Tess/AllTests.php&quot;&lt;br/&gt;
5. Start implementing AbstractPlatform and AbstractSchemaManager. Other implementations should serve as good example.&lt;/p&gt;

&lt;p&gt;Essentially Driver, Statement are the PDO equivalents of &quot;PDO&quot; and &quot;PDOStatement&quot;, they even have the exact same API. OCI8 is a good example to see how it works. If Informix works with PDO then its even simpler, take a look at Doctrine\DBAL\Driver\PDO namespace, you don&apos;t need to implement the connection and statement then, just the driver taking care of the configuraiton.&lt;/p&gt;

&lt;p&gt;The most complicated thing is to get the Platform and SchemaManager to work. Both are responsible for SQL generation for DDL statements for example. It makes sense to run the phpunit testsuite and fix the bugs when occuring until all tests pass.&lt;/p&gt;

&lt;p&gt;Also looking at the platform and schema managers of other databases is a very good help&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-124] OCI8 Adapter (convertPositionalToNamedPlaceholders) Statemachine doesn&apos;t consider comments and strings</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-124</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;SQL statements may contain question marks in strings, inline comments or comment blocks. The current implementation of the method &quot;convertPositionalToNamedPlaceholders()&quot; doesn&apos;t consider these implications and falsely replaces them by named bind variables.&lt;/p&gt;

&lt;p&gt;Replacement code with example:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&amp;lt;?php
$s = &apos;-- Testkomm?ntar
	select	/* ? *&lt;span class=&quot;code-comment&quot;&gt;//* ??? */ ?||\&apos;H&lt;span class=&quot;code-quote&quot;&gt;&quot;al?l&quot;&lt;/span&gt;o?\&apos; as &lt;span class=&quot;code-quote&quot;&gt;&quot;h?&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;llo&quot;&lt;/span&gt; union /* &lt;span class=&quot;code-quote&quot;&gt;&quot;? Kommentar&quot;&lt;/span&gt; \&apos; */
&lt;/span&gt;	/* ?&quot; */ select \&apos;/*Hallo\&apos;||to_char( ? ) union select \&apos;--Welt\&apos;
	union--
	select ?&apos;;

echo &apos;In: &apos; . $s . PHP_EOL;

$bind = 0;
$skip = array( &apos;--&apos; =&amp;gt; PHP_EOL, &apos;/*&apos; =&amp;gt; &apos;*/&apos;, &apos;&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; =&amp;gt; &apos;&quot;&lt;/span&gt;&apos;, &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt; );
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;( $i = 0; $i &amp;lt; strlen( $s ) /* size of string might change! */; /* yes, no increment here! */ )
{
	&lt;span class=&quot;code-comment&quot;&gt;// Skipping comments and literals
&lt;/span&gt;	foreach( $skip as $begin =&amp;gt; $end )
	{
		$matches = substr_compare( $s, $begin, $i, strlen( $begin ) );
		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $matches !== &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; &amp;amp;&amp;amp; $matches == 0 )
		{
			$pos = strpos( $s, $end, $i+strlen( $begin ) );
			&lt;span class=&quot;code-comment&quot;&gt;// echo &lt;span class=&quot;code-quote&quot;&gt;&quot;Found $begin, skipping at $i to $end at $pos&quot;&lt;/span&gt; . PHP_EOL;
&lt;/span&gt;			&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $pos === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; )
			{
				&lt;span class=&quot;code-comment&quot;&gt;// No more data or illegal statement - anyway: no more replacements!
&lt;/span&gt;				&lt;span class=&quot;code-comment&quot;&gt;// echo &lt;span class=&quot;code-quote&quot;&gt;&quot;EOD&quot;&lt;/span&gt; . PHP_EOL;
&lt;/span&gt;				&lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt; 2;
			}
			$i = $pos + strlen( $end );
			&lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt; 2; &lt;span class=&quot;code-comment&quot;&gt;// Ensure we match /*..*//*..*/, &apos;&apos;&apos;&apos; or &quot;&quot;&quot;&quot; - that&apos;s why we don&apos;t ++$i in the &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;-loop!
&lt;/span&gt;		}
	}
	&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $s[$i] == &lt;span class=&quot;code-quote&quot;&gt;&quot;?&quot;&lt;/span&gt; )
	{
		&lt;span class=&quot;code-comment&quot;&gt;// Positional to named
&lt;/span&gt;		&lt;span class=&quot;code-comment&quot;&gt;// echo &lt;span class=&quot;code-quote&quot;&gt;&quot;Replace $bind&quot;&lt;/span&gt; . PHP_EOL;
&lt;/span&gt;		$r = &apos;:name&apos; . ++$bind;
		$s = substr_replace( $s, $r, $i, 1 );
		$i += strlen( $r );
	}
	++$i;
}

echo &apos;Out: &apos; . $s . PHP_EOL;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="12654">DBAL-124</key>
            <summary>OCI8 Adapter (convertPositionalToNamedPlaceholders) Statemachine doesn&apos;t consider comments and strings</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="chetzel">Carsten Hetzel</reporter>
                        <labels>
                    </labels>
                <created>Fri, 20 May 2011 16:46:25 +0000</created>
                <updated>Tue, 28 Jun 2011 12:45:29 +0000</updated>
                                    <version>2.0.5</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16024" author="beberlei" created="Sun, 19 Jun 2011 09:06:33 +0000"  >&lt;p&gt;This algorithmus is painfully slow. There has to be something better, why do you need to foreach the loop inside the for?&lt;/p&gt;</comment>
                    <comment id="16088" author="chetzel" created="Tue, 28 Jun 2011 12:41:55 +0000"  >&lt;p&gt;Ok, sent you a PM but I&apos;ll put my response here, too:&lt;/p&gt;

&lt;p&gt;&quot;Painfully slow&quot; at what circumstances? Benchmarks?&lt;/p&gt;

&lt;p&gt;This was meant as an example implementation to show the problems of the current implementation - there&apos;s always room for improvement.&lt;/p&gt;

&lt;p&gt;And never forget: Premature optimization is the root of all evil! ;-p&lt;/p&gt;

&lt;p&gt;You want speed - try this one:&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
$sql = &apos;-- Testkomm?ntar
        select  /* ? *&lt;span class=&quot;code-comment&quot;&gt;//* ??? */ ?||\&apos;H&lt;span class=&quot;code-quote&quot;&gt;&quot;al?l&quot;&lt;/span&gt;o?\&apos; as &lt;span class=&quot;code-quote&quot;&gt;&quot;h?&quot;&lt;/span&gt;&lt;span class=&quot;code-quote&quot;&gt;&quot;llo&quot;&lt;/span&gt; union /* &lt;span class=&quot;code-quote&quot;&gt;&quot;? Kommentar&quot;&lt;/span&gt; \&apos; */
&lt;/span&gt;        /* ?&quot; */ select \&apos;/*Hallo\&apos;||to_char( ? ) union select \&apos;--Welt\&apos;
        union--
        select ?&apos;;

echo &apos;In: &apos; . $sql . PHP_EOL;

$map = array();
&lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;( $cnt = 0; $cnt &amp;lt; 1000; ++$cnt )
{
        $bind = 0;
        $s = $sql;

        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( isset( $map[$s] ) )
                &lt;span class=&quot;code-keyword&quot;&gt;continue&lt;/span&gt;;

        $strlen = strlen( $s );
        &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt;( $i = 0; $i &amp;lt; $strlen /* size of string might change! */; /* yes, no increment here! */ )
        {
                $c1 = $s[$i];
                $c2 = isset( $s[$i+1] ) ? $s[$i+1] : &apos;&apos;;
                &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $c1 == &apos;-&apos; &amp;amp;&amp;amp; $c2 == &apos;-&apos;)
                {
                        $pos = strpos( $s, PHP_EOL, $i+2 );
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $pos === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; )
                        {
                                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt; 2;
                        }
                        $i = $pos + 2;
                }
                elseif( $c1 == &apos;/&apos; &amp;amp;&amp;amp; $c2 == &apos;*&apos; )
                {
                        $pos = strpos( $s, &apos;*/&apos;, $i+2 );
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $pos === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; )
                        {
                                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt; 2;
                        }
                        $i = $pos + 2;
                }
                elseif( $c1 == &apos;&quot;&apos; )
                {
                        $pos = strpos( $s, &apos;&quot;&apos;, $i+1 );
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $pos === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; )
                        {
                                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt; 2;
                        }
                        $i = $pos + 1;
                }
                elseif( $c1 == &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt; )
                {
                        $pos = strpos( $s, &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;&quot;&lt;/span&gt;, $i+1 );
                        &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;( $pos === &lt;span class=&quot;code-keyword&quot;&gt;false&lt;/span&gt; )
                        {
                                &lt;span class=&quot;code-keyword&quot;&gt;break&lt;/span&gt; 2;
                        }
                        $i = $pos + 1;
                }
                elseif( $c1 == &lt;span class=&quot;code-quote&quot;&gt;&quot;?&quot;&lt;/span&gt; )
                {
                        &lt;span class=&quot;code-comment&quot;&gt;// Positional to named
&lt;/span&gt;                        &lt;span class=&quot;code-comment&quot;&gt;// echo &lt;span class=&quot;code-quote&quot;&gt;&quot;Replace $bind&quot;&lt;/span&gt; . PHP_EOL;
&lt;/span&gt;                        $r = &apos;:name&apos; . ++$bind;
                        $s = substr_replace( $s, $r, $i, 1 );
                        $rLen = strlen( $r );
                        $i += $rLen;
                        $strlen += $rLen - 1;
                }
                &lt;span class=&quot;code-keyword&quot;&gt;else&lt;/span&gt;
                        ++$i;
        }
        $map[$sql] = $s;
}
echo &apos;Out: &apos; . $map[$sql] . PHP_EOL;

&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;ATTENTION: Each &quot;break 2;&quot; means, you have an invalid statement! Do, whatever the statement class is supposed to do in this case!&lt;/p&gt;

&lt;p&gt;Regards, Carsten&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-122] Impossible to save data to image/binary/varbinary</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-122</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When trying to insert a value into a Column with type &apos;image&apos;, &apos;binary&apos; or &apos;varbinary&apos; the SQLServer states that this is not possible.&lt;br/&gt;
When trying to insert into &apos;binary&apos; or &apos;varbinary&apos;  the error message is:&lt;br/&gt;
=&amp;gt; Implicit conversion from nvarchar(max) datatype to varbinary(max) is not allowed.&lt;/p&gt;

&lt;p&gt;When trying to insert into &apos;image&apos; the error message is:&lt;br/&gt;
=&amp;gt; Operand collision: nvarchar(max) is incompatible with image.&lt;/p&gt;

&lt;p&gt;Doctrine prepares the image/binary/varbinary column in the statements as  nvarchar(max) which is wrong.&lt;/p&gt;

&lt;p&gt;The cause of this error is that in the MsSQLPlatform::getVarcharTypeDeclarationSQLSnippet($length, $fixed),&lt;br/&gt;
or in the datatype mapping which is to &apos;text&apos;.&lt;/p&gt;

&lt;p&gt;The documentation for the MsSQLServer states following conversions (&lt;a href=&quot;http://207.46.16.252/de-de/library/ms187928.aspx):&quot; class=&quot;external-link&quot;&gt;http://207.46.16.252/de-de/library/ms187928.aspx):&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;*char =&amp;gt; binary/varbinary : Explicit conversion&lt;br/&gt;
nchar/nvarchar =&amp;gt; image : IMPOSSIBLE&lt;/p&gt;

&lt;p&gt;So the solution would be, either to leave the datatype blank or use the char/varchar datatype when saving into image/binary/varbinary, which would cause an extra datatype as those would collide with &apos;text&apos; I guess.&lt;/p&gt;
</description>
                <environment>XAMP, MsSQL-Server 2008, PHP 5.3.x, MS pdo_sqlsrv_vc6_ts.dll</environment>
            <key id="12637">DBAL-122</key>
            <summary>Impossible to save data to image/binary/varbinary</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="le_shatai">Martin Weise</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 May 2011 10:54:04 +0000</created>
                <updated>Wed, 22 Feb 2012 16:28:32 +0000</updated>
                                    <version>2.0.4</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17201" author="beberlei" created="Mon, 9 Jan 2012 13:59:25 +0000"  >&lt;p&gt;I get the problem, but i don&apos;t understand the solutions &lt;img class=&quot;emoticon&quot; src=&quot;http://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;Can you explain a bit more?&lt;/p&gt;

&lt;p&gt;1. how do i leave a datatype empty? and which one?&lt;br/&gt;
2. how do i use char/varchar when saving?&lt;/p&gt;

&lt;p&gt;I think this is just a problem of unspecific descriptions &lt;img class=&quot;emoticon&quot; src=&quot;http://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="17483" author="le_shatai" created="Wed, 22 Feb 2012 16:28:32 +0000"  >&lt;p&gt;Hi Benjamin&lt;/p&gt;

&lt;p&gt;Sorry, for this long delay.&lt;br/&gt;
I had a deeper inspection what happens when I persist data into a field of type varbinary(MAX) and I got this (using the SQL profiler):&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;declare @p1 int
set @p1=NULL
exec sp_prepexec @p1 output,
N&apos;@P1 nvarchar(36),@P2 nvarchar(max),@P3 nvarchar(34)&apos;,
N&apos;INSERT INTO mc_dokument_data (id, data, mc_dokument_id) VALUES (@P1, @P2, @P3)&apos;,
N&apos;03DDAAD1-4BFA-416B-A0C0-9B8B7148F31C&apos;,
N&apos;0x3c3f786d6c20766572736...&apos;,
N&apos;mwe3bc2c0da6543d1f48d7c83e64f5c449&apos;
&lt;span class=&quot;code-keyword&quot;&gt;select&lt;/span&gt; @p1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;But it has to be ( removed &apos;-quotes and @P2 changed to varbinary(MAX) ):&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;declare @p1 int
set @p1=NULL
exec sp_prepexec @p1 output,
N&apos;@P1 nvarchar(36),@P2 varbinary(max),@P3 nvarchar(34)&apos;,
N&apos;INSERT INTO mc_dokument_data (id, data, mc_dokument_id) VALUES (@P1, @P2, @P3)&apos;,
N&apos;03DDAAD1-4BFA-416B-A0C0-9B8B7148F31C&apos;,
0x3c3f786d6c20766572736...,
N&apos;mwe3bc2c0da6543d1f48d7c83e64f5c449&apos;
&lt;span class=&quot;code-keyword&quot;&gt;select&lt;/span&gt; @p1
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I am not really sure any more if this is caused from Doctrine or from the &apos;MS SQL-Server PHP-PDO-Driver 2.0.1&apos; .&lt;br/&gt;
But I guess this comes from the driver.&lt;br/&gt;
If you can validate this, I will make a bug report to them.&lt;/p&gt;

&lt;p&gt;The &lt;em&gt;funny&lt;/em&gt; thing is if I do this via &lt;em&gt;executeQuery&lt;/em&gt; 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;$data = unpack(&lt;span class=&quot;code-quote&quot;&gt;&quot;H*&quot;&lt;/span&gt; , __some__data__);
$data = &apos;0x&apos;.$data[1];

$em-&amp;gt;executeQuery(
    &lt;span class=&quot;code-quote&quot;&gt;&quot;INSERT INTO mc_dokument_data (id, mc_dokument_id, data)&quot;&lt;/span&gt;. 
   &lt;span class=&quot;code-quote&quot;&gt;&quot;VALUES(&apos;&quot;&lt;/span&gt;.$id.&lt;span class=&quot;code-quote&quot;&gt;&quot;&apos; , &apos;&quot;&lt;/span&gt; . $documentId . &lt;span class=&quot;code-quote&quot;&gt;&quot;&apos;, &quot;&lt;/span&gt; . $data . &lt;span class=&quot;code-quote&quot;&gt;&quot; )&quot;&lt;/span&gt;
);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;Hopefully I could clarify my problem.&lt;/p&gt;

&lt;p&gt;Regards&lt;br/&gt;
 Martin Weise&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-109] Doctrine/DBAL/Platforms/MySqlPlatform.php is missing test coverage around _getCreateTableSQL method</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-109</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In &quot;Doctrine/DBAL/Platforms/MySqlPlatform.php&quot;, the following methods are public: getShowDatabasesSQL, getCreateDatabaseSQL, getDropDatabaseSQL, getDropTableSQL (easy to test); however, the &quot;_getCreateTableSQL&quot; method is not public.&lt;/p&gt;

&lt;p&gt;Is there a specific reason for this difference?&lt;/p&gt;

&lt;p&gt;As a result of this method not being tested, there is a &quot;quote&quot;  method being called which doesn&apos;t exist.&lt;/p&gt;

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

&lt;p&gt;The only way at this time to test for this case is to get an error when doing: $table-&amp;gt;addOption(&apos;comment&apos;, &apos;...&apos;);&lt;/p&gt;

&lt;p&gt;I would suggest making the protected method public so it can be tested. I also suggest moving the options parsing out of _getCreateTableSQL into a helper method...this method seems a bit overloaded.&lt;/p&gt;

&lt;p&gt;If agreed, I&apos;m happy to take care of the cleanup. Just wanted to get some feedback on the ideas first.&lt;/p&gt;</description>
                <environment>2.1.0-DEV</environment>
            <key id="12558">DBAL-109</key>
            <summary>Doctrine/DBAL/Platforms/MySqlPlatform.php is missing test coverage around _getCreateTableSQL method</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="wilmoore">Wil Moore III</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Apr 2011 15:21:03 +0000</created>
                <updated>Fri, 18 Nov 2011 16:46:56 +0000</updated>
                                    <version>2.1</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="16868" author="beberlei" created="Fri, 18 Nov 2011 16:46:56 +0000"  >&lt;p&gt;This is an improvement&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-76] PostgreSQL Platform list* SQL code is in need of serious love</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-76</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The Postgres Schema code is very hard to read and inconsistent across the board. Some use pg_class, some pg_tables. Namespaces /Schema are not always properly checked for. There should be a really unified way on how to approach schema query issues.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12220">DBAL-76</key>
            <summary>PostgreSQL Platform list* SQL code is in need of serious love</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Dec 2010 08:08:01 +0000</created>
                <updated>Wed, 8 Jun 2011 17:05:08 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15963" author="ddebernardy" created="Wed, 8 Jun 2011 17:05:08 +0000"  >&lt;p&gt;I&apos;m not sure what this ticket is about exactly, but...&lt;/p&gt;

&lt;p&gt;&quot;Namespaces /Schema are not always properly checked for.&quot;&lt;/p&gt;

&lt;p&gt;Usually, one would not want to specify them and set the search_path instead. Or are you meaning the schema analysis queries used internally? (If so, yes, it kind of sucks in that case, but note that there are a bunch of *_is_visible() methods, e.g. pg_catalog.pg_table_is_visible(rel.oid) which will strip out invisible schemas directly. This may be simpler than injecting schema references all over the place in that it also processes permissions.)&lt;/p&gt;

&lt;p&gt;Also, note that PG has a whole bunch of pg_catalog views, which are available in the information_schema.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-155] Github-PR-46 by gnomii: 2.1.x PgSql - Same problem with the master</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-155</link>
                <project 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/46&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/46&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Sorry, I was not able to merge the branchs with the master &lt;img class=&quot;emoticon&quot; src=&quot;http://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; I try some methods&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
Maxime&lt;/p&gt;</description>
                <environment></environment>
            <key id="12947">DBAL-155</key>
            <summary>Github-PR-46 by gnomii: 2.1.x PgSql - Same problem with the master</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:20 +0000</created>
                <updated>Sun, 21 Aug 2011 14:46:20 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-153] Github-PR-48 by phekmat: Added a regression test case for recently fixed PostgreSQLSchemaManager bug</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-153</link>
                <project 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/48&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/48&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Regression test for the following change: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/2434d95aab231273eea8fb555155e9e9c195bcc9&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/2434d95aab231273eea8fb555155e9e9c195bcc9&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12945">DBAL-153</key>
            <summary>Github-PR-48 by phekmat: Added a regression test case for recently fixed PostgreSQLSchemaManager bug</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:17 +0000</created>
                <updated>Sat, 24 Mar 2012 08:10:47 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17637" author="beberlei" created="Sat, 24 Mar 2012 07:50:32 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-48&amp;#93;&lt;/span&gt; was &lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/48&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/48&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17638" author="beberlei" created="Sat, 24 Mar 2012 07:51:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-48&amp;#93;&lt;/span&gt; was &lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/48&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/48&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17640" author="beberlei" created="Sat, 24 Mar 2012 08:10:47 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-48&amp;#93;&lt;/span&gt; was &lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/48&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/48&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-156] Github-PR-44 by richardfullmer: [PostgresPlatform] Fixing change detection when a default is removed</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-156</link>
                <project 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/44&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/44&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Change detection when the default value is removed from a field is presently broken and produces invalid SQL.  &lt;/p&gt;

&lt;p&gt;This patch checks to see if a new default value actually exists before adding the SET DEFAULT &apos;&apos;;&lt;/p&gt;

&lt;p&gt;Uses DROP DEFAULT when the new default value does not exist &lt;/p&gt;</description>
                <environment></environment>
            <key id="12948">DBAL-156</key>
            <summary>Github-PR-44 by richardfullmer: [PostgresPlatform] Fixing change detection when a default is removed</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:22 +0000</created>
                <updated>Sun, 21 Aug 2011 14:46:22 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-154] Github-PR-47 by gnomii: 2.0.x PgSql - Same problem with the master</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-154</link>
                <project 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/47&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/47&lt;/a&gt;&lt;/p&gt;

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

&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Sorry, I was not able to merge the branchs with the master &lt;img class=&quot;emoticon&quot; src=&quot;http://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; I try some methods&lt;/p&gt;

&lt;p&gt;Best regards,&lt;br/&gt;
Maxime&lt;/p&gt;</description>
                <environment></environment>
            <key id="12946">DBAL-154</key>
            <summary>Github-PR-47 by gnomii: 2.0.x PgSql - Same problem with the master</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 14:46:19 +0000</created>
                <updated>Sun, 21 Aug 2011 14:46:19 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

<item>
            <title>[DBAL-357] Missing way to set types for CAST declaration</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-357</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For a query such as&lt;/p&gt;

&lt;p&gt;    x = CASE WHEN id=$1 THEN CAST($2 AS int)&lt;/p&gt;

&lt;p&gt;there doesn&apos;t seem to be a way to correctly assign the type across multiple platforms. E.g. Postgres required &quot;int&quot; but mysql just requires &quot;unsigned&quot;. Attempting to use &quot;int&quot; here with mysql will fail.&lt;/p&gt;

&lt;p&gt;The method Doctrine\DBAL\Platforms method getIntegerTypeDeclarationSQL will return something like &quot;INT unsigned&quot; for sql, which also fails.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14095">DBAL-357</key>
            <summary>Missing way to set types for CAST declaration</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="petesiss">Pete Sisson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 4 Oct 2012 07:50:35 +0000</created>
                <updated>Thu, 4 Oct 2012 07:50:35 +0000</updated>
                                    <version>2.2</version>
                <version>2.3</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-348] [GH-202] Fixed DBAL-139 Oracle&apos;s sequences with NOCACHE </title>
                <link>http://doctrine-project.org/jira/browse/DBAL-348</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of AduroIdea:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="14053">DBAL-348</key>
            <summary>[GH-202] Fixed DBAL-139 Oracle&apos;s sequences with NOCACHE </summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 22 Sep 2012 18:23:14 +0000</created>
                <updated>Sun, 6 Jan 2013 18:56:59 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18696" author="beberlei" created="Sat, 22 Sep 2012 18:50:48 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-202&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18697" author="beberlei" created="Sat, 22 Sep 2012 18:51:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-202&amp;#93;&lt;/span&gt; was reopened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18698" author="beberlei" created="Sat, 22 Sep 2012 20:58:16 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-202&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/202&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/202&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18701" author="beberlei" created="Sun, 23 Sep 2012 15:34:55 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-204&amp;#93;&lt;/span&gt; was opened&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/204&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/204&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-333] [GH-193] Add DBAL\TypeAwareObject.</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-333</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Romain-Geissler:&lt;/p&gt;

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

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

&lt;p&gt;This PR adds a common interface for custom object values that requires some PHP &amp;lt;-&amp;gt; SQL conversions, which allows to specify what DBAL type must be used for conversion.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13996">DBAL-333</key>
            <summary>[GH-193] Add DBAL\TypeAwareObject.</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 29 Aug 2012 16:05:37 +0000</created>
                <updated>Wed, 5 Sep 2012 17:21:13 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18588" author="beberlei" created="Thu, 30 Aug 2012 13:27:22 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-193&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/193&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/193&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

&lt;p&gt;An initial implementation of a driver for the &lt;span class=&quot;error&quot;&gt;&amp;#91;Akiban Server&amp;#93;&lt;/span&gt;(&lt;a href=&quot;http://www.akiban.com/akiban-server&quot; class=&quot;external-link&quot;&gt;http://www.akiban.com/akiban-server&lt;/a&gt;). You will notice in the diff there are some features Akiban does not yet support in its latest release but are planned for future releases.&lt;/p&gt;

&lt;p&gt;I wasn&apos;t sure if pull request was the best way to start a dialog to get this work accepted or whether the mailing list is more appropriate. Please let me know and I will do as suggested.&lt;/p&gt;

&lt;p&gt;I am an engineer at Akiban and am very willing to maintain/improve this driver.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13985">DBAL-327</key>
            <summary>[GH-188] Akiban driver</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 24 Aug 2012 02:35:14 +0000</created>
                <updated>Wed, 29 Aug 2012 08:37:39 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18549" author="beberlei" created="Mon, 27 Aug 2012 21:40:56 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-188&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/188&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/188&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18553" author="posulliv" created="Tue, 28 Aug 2012 15:00:47 +0000"  >&lt;p&gt;Yes, this ticket has been superseded by ticket &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-330&quot; class=&quot;external-link&quot;&gt;330&lt;/a&gt;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-330] [GH-191] Akiban Driver Implementation that Uses PDO</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-330</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of posulliv:&lt;/p&gt;

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

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

&lt;p&gt;Based on discussion in pull request 188 with @stof, I decided to modify the implementation for Akiban to use the PostgreSQL PDO driver instead of the native PHP client for PostgreSQL.&lt;/p&gt;

&lt;p&gt;One piece of functionality that does not work with current version of Akiban is lastInsertId. This is because the implementation of CURRVAL for Akiban requires both schema name and sequence name be provided whereas PostgreSQL only requires sequence name (&lt;span class=&quot;error&quot;&gt;&amp;#91;relevant source&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_driver.c#L360&quot; class=&quot;external-link&quot;&gt;https://github.com/php/php-src/blob/master/ext/pdo_pgsql/pgsql_driver.c#L360&lt;/a&gt;)). I will attempt to get CURRVAL in Akiban implemented to have the same parameters as PostgreSQL.&lt;/p&gt;

&lt;p&gt;This causes a few tests to fail in the test suite right now. Is there a way to mark a test as expected to fail for a specific database driver with the test suite? What I did in this pull request is skip any tests that use lastInsertId when testing against the Akiban platform. I&apos;ll update these tests to not be skipped when CURRVAL works as expected. Let me know if there is a better way to do that.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13989">DBAL-330</key>
            <summary>[GH-191] Akiban Driver Implementation that Uses PDO</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                        <label>akiban</label>
                    </labels>
                <created>Mon, 27 Aug 2012 21:40:04 +0000</created>
                <updated>Tue, 11 Dec 2012 15:55:56 +0000</updated>
                                    <version>2.4</version>
                                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-320] allow SQL QueryBuilder to do INSERTS</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-320</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;With&lt;/p&gt;

&lt;p&gt;$db = \Doctrine\DBAL\DriverManager::getConnection($connectionParams, $config);&lt;br/&gt;
$qb = $db-&amp;gt;createQueryBuilder();&lt;/p&gt;

&lt;p&gt;this QueryBuilder I&apos;m able to do SELECT, UPDATE and DELETE. However, INSERT is not possible. Are there any good reasons for this?&lt;/p&gt;

&lt;p&gt;Attached you find a patch that until now works fine for me. I don&apos;t know, however, if there are any side effects.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13961">DBAL-320</key>
            <summary>allow SQL QueryBuilder to do INSERTS</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tcm">Tim Mundt</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Aug 2012 10:45:41 +0000</created>
                <updated>Mon, 13 Aug 2012 13:12:47 +0000</updated>
                                    <version>2.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18489" author="ocramius" created="Mon, 13 Aug 2012 10:46:59 +0000"  >&lt;p&gt;Insert is not supported by DQL&lt;/p&gt;</comment>
                    <comment id="18490" author="tcm" created="Mon, 13 Aug 2012 11:15:52 +0000"  >&lt;p&gt;Well, that was quick and not helpful. I have read about the QueryBuilder in the ORM package. For some reason with persistence (that other libraries don&apos;t have), insert cannot be supported. However, I&apos;m talking about DBAL here. What good reason is there not to support INSERT??&lt;/p&gt;</comment>
                    <comment id="18491" author="tcm" created="Mon, 13 Aug 2012 11:16:30 +0000"  >&lt;p&gt;see previous comment, I&apos;d appreciate some clarification&lt;/p&gt;</comment>
                    <comment id="18492" author="ocramius" created="Mon, 13 Aug 2012 11:30:30 +0000"  >&lt;p&gt;&lt;a href=&quot;http://doctrine-project.org/jira/secure/ViewProfile.jspa?name=tcm&quot; class=&quot;user-hover&quot; rel=&quot;tcm&quot;&gt;Tim Mundt&lt;/a&gt; Ouch, no, it was my fault, sorry. &lt;br/&gt;
I confused the project related to the issue.&lt;/p&gt;</comment>
                    <comment id="18493" author="ocramius" created="Mon, 13 Aug 2012 11:34:13 +0000"  >&lt;p&gt;This is actually valid (even the patch, though it needs to adds tests)&lt;/p&gt;</comment>
                    <comment id="18494" author="tcm" created="Mon, 13 Aug 2012 11:56:16 +0000"  >&lt;p&gt;Glad to hear there seems to be no fundamental problem with this. Can I somehow help this patch go into the code? I&apos;m not familiar with the tests here. If you give me some pointer, maybe I can come up with something useful. On the other hand, it could be a good idea for some more involved people to have a look at this before.&lt;/p&gt;</comment>
                    <comment id="18496" author="ocramius" created="Mon, 13 Aug 2012 12:13:24 +0000"  >&lt;p&gt;You&apos;d need to add tests in &lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/tests/Doctrine/Tests/DBAL/Query/QueryBuilderTest.php&lt;/a&gt; (to be included in your patch or in a github pull request)&lt;br/&gt;
A Github PR is also the fastest way to get your code reviewed since not everyone visits the issue tracker.&lt;/p&gt;</comment>
                    <comment id="18497" author="tcm" created="Mon, 13 Aug 2012 13:12:47 +0000"  >&lt;p&gt;Here&apos;s the PR: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/184&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/184&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11310" name="INSERT-for-doctrine-SQL-QueryBuilder.patch" size="2479" author="tcm" created="Mon, 13 Aug 2012 10:45:41 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-321] [GH-184] Added INSERT support to dbal QueryBuilder</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-321</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Tim-Erwin:&lt;/p&gt;

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

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

&lt;p&gt;See also &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-320&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-320&lt;/a&gt;&lt;br/&gt;
Please review and commit as fits.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13962">DBAL-321</key>
            <summary>[GH-184] Added INSERT support to dbal QueryBuilder</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 13 Aug 2012 13:12:28 +0000</created>
                <updated>Tue, 14 Aug 2012 20:49:18 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-215] DoctrineBundle Configuration File</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-215</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In the DoctrineBundle, there is no support for &quot;master&quot; or &quot;slave&quot;, yet the &quot;MasterSlaveConnection&quot; in the new DBAL branch wants both of them in the connection.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13410">DBAL-215</key>
            <summary>DoctrineBundle Configuration File</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="aequasi">Aaron Scherer</reporter>
                        <labels>
                    </labels>
                <created>Fri, 3 Feb 2012 20:49:37 +0000</created>
                <updated>Fri, 3 Feb 2012 20:49:37 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-305] [GH-171] provide transactional interface for EntityManager and Connection</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-305</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dfreudenberger:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13849">DBAL-305</key>
            <summary>[GH-171] provide transactional interface for EntityManager and Connection</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Thu, 12 Jul 2012 10:13:02 +0000</created>
                <updated>Sun, 29 Jul 2012 08:50:02 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-300] Updates for Fedora packaging</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-300</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I am packaging the DoctrineDBAL PEAR package for Fedora and RHEL (EPEL) and would like to have the following updates:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;package.xml role for LICENSE changed from &quot;data&quot; to &quot;doc&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;package.xml role for Doctrine/DBAL/README.markdown changed from &quot;data&quot; to &quot;doc&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul&gt;
	&lt;li&gt;add some content to Doctrine/DBAL/README.markdown (when building RPM this file throws a warning because it is empty)&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Fedora, RHEL</environment>
            <key id="13829">DBAL-300</key>
            <summary>Updates for Fedora packaging</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="siwinski">Shawn Iwinski</reporter>
                        <labels>
                    </labels>
                <created>Sat, 7 Jul 2012 03:34:14 +0000</created>
                <updated>Sat, 24 Nov 2012 02:20:36 +0000</updated>
                                    <version>2.3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-294] [GH-163] [WIP] Upsert support protoype.</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-294</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of kimhemsoe:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13809">DBAL-294</key>
            <summary>[GH-163] [WIP] Upsert support protoype.</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 29 Jun 2012 21:56:43 +0000</created>
                <updated>Wed, 4 Jul 2012 19:32:56 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

</description>
                <environment></environment>
            <key id="13748">DBAL-291</key>
            <summary>[GH-157] interface compatibility</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 1 Jun 2012 12:57:45 +0000</created>
                <updated>Wed, 4 Jul 2012 20:25:43 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-289] Wrong diff between Oracle &apos;Date&apos; type and Metadata &apos;Date&apos; type</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-289</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi,&lt;br/&gt;
I want to update my schema but I am getting the following error message:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\Driver\OCI8\OCI8Exception&amp;#93;&lt;/span&gt;&lt;br/&gt;
ORA-01442: column to be modified to NOT NULL is already NOT NULL&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;--dump-sql says:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-sql&quot;&gt;ALTER TABLE CONSIGNMENTS MODIFY (SDGDATE  DATE DEFAULT NULL);&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The current table structure looks like that:&lt;/p&gt;
&lt;table class=&apos;confluenceTable&apos;&gt;&lt;tbody&gt;
&lt;tr&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Column Name &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Data Type &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Nullable &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Default &lt;/th&gt;
&lt;th class=&apos;confluenceTh&apos;&gt; Primary Key &lt;/th&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; SDGDATE &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; DATE &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; Yes &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt; NULL &lt;/td&gt;
&lt;td class=&apos;confluenceTd&apos;&gt;&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;


&lt;p&gt;Mapping definition:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @ORM\Column(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;SDGDATE&quot;&lt;/span&gt;,type=&lt;span class=&quot;code-quote&quot;&gt;&quot;date&quot;&lt;/span&gt;,nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
 */
&lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $sdgdate;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;I think there is a problem with the comparison between Oracles &apos;Date&apos; type and the Metadata &apos;Date&apos; type. I am used to use MySQL as DBMS but our customer uses Oracle. MySQL&apos;s &apos;datetime&apos; and Oracle&apos;s &apos;date&apos; type are store the same data.&lt;/p&gt;

&lt;p&gt;I am not sure what should be done here. Because this could lead to confusion for all Oracle user.&lt;/p&gt;

&lt;p&gt;Maybe there could be a request to the platform in the Schema Comparator here:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function diffColumn(Column $column1, Column $column2)
{
    $changedProperties = array();
    &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; ( $column1-&amp;gt;getType() != $column2-&amp;gt;getType() ) {
        $changedProperties[] = &apos;type&apos;;
    }
    &lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment>Oracle Express 11g and doctrine-dbal 2.2.2</environment>
            <key id="13741">DBAL-289</key>
            <summary>Wrong diff between Oracle &apos;Date&apos; type and Metadata &apos;Date&apos; type</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="4" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/reopened.png">Reopened</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="naitsirch">Christian Stoller</reporter>
                        <labels>
                    </labels>
                <created>Wed, 30 May 2012 08:45:55 +0000</created>
                <updated>Wed, 22 Aug 2012 10:34:21 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18028" author="naitsirch" created="Wed, 30 May 2012 08:59:49 +0000"  >&lt;p&gt;When I put a breakpoint on the second line of the &lt;em&gt;diffColumn&lt;/em&gt; method in my IDE and stop there during debugging I have those variable values:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;$this				Doctrine\DBAL\Schema\Comparator		
$changedProperties		array[0]		
$column1			Doctrine\DBAL\Schema\Column		
  _type				Doctrine\DBAL\Types\DateTimeType	&amp;lt;-- datetime
  _precision			integer		10	
  _scale			integer		0	
  _unsigned			boolean		0	
  _fixed			boolean		0	
  _notnull			boolean		0	
  _autoincrement		boolean		0	
  _platformOptions		array[0]		
  _comment			string		&quot;&quot;	
  _customSchemaOptions		array[0]		
  _name				string		&quot;SDGDATE&quot;	
  _quoted			boolean		0	
$column2			Doctrine\DBAL\Schema\Column		
  _type				Doctrine\DBAL\Types\DateType		&amp;lt;-- date
  _precision			integer		0	
  _scale			integer		0	
  _unsigned			boolean		0	
  _fixed			boolean		0	
  _notnull			boolean		0	
  _autoincrement		boolean		0	
  _platformOptions		array[1]		
  _customSchemaOptions		array[0]		
  _name				string		&quot;SDGDATE&quot;	
  _quoted			boolean		0	
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;You see that there are different types. But it would be nice if the comparison would say: &quot;Theay are equal - no diff&quot;&lt;/p&gt;</comment>
                    <comment id="18251" author="beberlei" created="Sun, 8 Jul 2012 20:16:14 +0000"  >&lt;p&gt;This issue can&apos;t be fixed. Doctrine has this type abstraction here which prevents a special case fix here. The solution in this case is obvious, set the type to &quot;datetime&quot; on Oracle.&lt;/p&gt;</comment>
                    <comment id="18531" author="naitsirch" created="Wed, 22 Aug 2012 10:34:21 +0000"  >&lt;p&gt;Sorry, this issue commes up again.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-javascript&quot;&gt;
Shipment:
  type: entity
  fields:
    id:
      type: integer
      id: &lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;
      generator:
        strategy: AUTO
    pickupDate:
      type: date
      column: pickup_date
    pickupTimeFrom:
      type: time
      column: pickup_time_from
  lifecycleCallbacks: {  }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When I update my schema with the above YAML mapping, I always get the following error although I haven&apos;t changed anything at the mapping.&lt;/p&gt;

&lt;blockquote&gt;&lt;p&gt;&lt;font color=&quot;red&quot;&gt;&lt;br/&gt;
C:\projects\xyz\trunk&amp;gt;php app\console doctrine:schema:update --force&lt;br/&gt;
Updating database schema...&lt;br/&gt;
Der Befehl &quot;stty&quot; ist entweder falsch geschrieben oder&lt;br/&gt;
konnte nicht gefunden werden.&lt;br/&gt;
&lt;br/&gt;
  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\Driver\OCI8\OCI8Exception&amp;#93;&lt;/span&gt;&lt;br/&gt;
  ORA-01442: column to be modified to NOT NULL is already NOT NULL&lt;br/&gt;
&lt;br/&gt;
C:\projects\osl\trunk&amp;gt;php app\console doctrine:schema:update --dump-sql&lt;br/&gt;
ALTER TABLE SHIPMENT MODIFY (pickup_date  DATE NOT NULL, pickup_time_from  DATE NOT NULL)&lt;/font&gt;&lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;Okay, I could change the types to &apos;datetime&apos;, but what if I have to move to MySQL? I just want to store &apos;date&apos; and &apos;time&apos;, not &apos;datetime&apos;.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-284] [GH-152] add ComparatorInterface to allow custom Comparator implementation</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-284</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of catacgc:&lt;/p&gt;

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

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

</description>
                <environment></environment>
            <key id="13715">DBAL-284</key>
            <summary>[GH-152] add ComparatorInterface to allow custom Comparator implementation</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 21 May 2012 11:30:42 +0000</created>
                <updated>Tue, 22 May 2012 17:12:30 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-249] Enable caching for fetch type FETCH_COLUMN</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-249</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If results are requested using fetch method FETCH_COLUMN, and the cache is used, the exception is raised:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Invalid fetch-style given &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; caching result&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</description>
                <environment></environment>
            <key id="13613">DBAL-249</key>
            <summary>Enable caching for fetch type FETCH_COLUMN</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Apr 2012 08:45:51 +0000</created>
                <updated>Thu, 5 Apr 2012 08:45:51 +0000</updated>
                                    <version>2.2.1</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

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

<item>
            <title>[DBAL-390] Wrap SQL for Selects in an Object for Metadata?</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-390</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="14264">DBAL-390</key>
            <summary>Wrap SQL for Selects in an Object for Metadata?</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 23 Nov 2012 12:48:05 +0000</created>
                <updated>Fri, 23 Nov 2012 12:48:05 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-100] Add Drizzle Support</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-100</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Drizzle is out, we should add support for the Dialect.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://docs.drizzle.org/mysql_differences.html&quot; class=&quot;external-link&quot;&gt;http://docs.drizzle.org/mysql_differences.html&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12472">DBAL-100</key>
            <summary>Add Drizzle Support</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 Mar 2011 11:31:09 +0000</created>
                <updated>Thu, 22 Dec 2011 21:10:27 +0000</updated>
                                                                            <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17091" author="mop" created="Thu, 22 Dec 2011 21:03:02 +0000"  >&lt;p&gt;i have created some hackish fork and the whole testsuite is working already:&lt;/p&gt;

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

&lt;p&gt;Still WIP but may be a start. I think the C extension is not really ready yet either. When i find time i will most likely have a look at it.&lt;/p&gt;</comment>
                    <comment id="17092" author="beberlei" created="Thu, 22 Dec 2011 21:10:27 +0000"  >&lt;p&gt;Can you branch it into something, like git checkout -bDrizzle then push it to your repo and open a Pull Request? Thats way easier to review and discuss.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-234] Index names are not synchronized by Comparator</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-234</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Index and foreign key name change is not synced by Comparator.&lt;/p&gt;

&lt;p&gt;This is important since in some complex queries one might use FORCE INDEX (some_index_name), and they will fail if an index name is incorrect.&lt;/p&gt;</description>
                <environment>MySQL</environment>
            <key id="13511">DBAL-234</key>
            <summary>Index names are not synchronized by Comparator</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="artem">Artem Goutsoul</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Mar 2012 15:33:25 +0000</created>
                <updated>Thu, 8 Mar 2012 15:33:25 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-235] Column order is not synchronized by Comparator</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-235</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Comparator does not synchronize column order. It would be great if it did.&lt;/p&gt;</description>
                <environment>MySQL</environment>
            <key id="13512">DBAL-235</key>
            <summary>Column order is not synchronized by Comparator</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="artem">Artem Goutsoul</reporter>
                        <labels>
                    </labels>
                <created>Thu, 8 Mar 2012 15:39:24 +0000</created>
                <updated>Tue, 3 Apr 2012 06:22:35 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17729" author="chriswoodford" created="Mon, 2 Apr 2012 18:29:03 +0000"  >&lt;p&gt;I assume that this means adding AFTER to any ALTER ADD statements? if so, this is something that i would really appreciate as well&lt;/p&gt;</comment>
                    <comment id="17736" author="artem" created="Tue, 3 Apr 2012 06:22:35 +0000"  >&lt;p&gt;Yup, that&apos;s exactly what I meant!&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-232] Custom commented column type removal causes unknown column type exception</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-232</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Problem happens when initially, as example, there was commented type &quot;foo&quot; registered and used:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;Doctrine\DBAL\Types\Type::addType(&apos;foo&apos;, &apos;FooType&apos;);
$em-&amp;gt;getConnection()
    -&amp;gt;getDatabasePlatform()
    -&amp;gt;markDoctrineTypeCommented(Doctrine\DBAL\Types\Type::getType(&apos;foo&apos;));
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;When the type usage and declaration is removed, the database schema upgrade fails.&lt;br/&gt;
This is because DBAL reads the comment from the database and tries to find the type &apos;foo&apos;.&lt;/p&gt;

&lt;p&gt;I suggest ignoring the database column comment and stick to the standard type recognition in case the type is not declared.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13499">DBAL-232</key>
            <summary>Custom commented column type removal causes unknown column type exception</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="gedrox">Aigars Gedroics</reporter>
                        <labels>
                    </labels>
                <created>Tue, 6 Mar 2012 11:16:21 +0000</created>
                <updated>Fri, 9 Mar 2012 10:22:09 +0000</updated>
                                    <version>2.2.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17541" author="gedrox" created="Fri, 9 Mar 2012 10:22:09 +0000"  >&lt;p&gt;Trivial solution would be:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;--- a/Doctrine/DBAL/Schema/AbstractSchemaManager.php
+++ b/Doctrine/DBAL/Schema/AbstractSchemaManager.php
@@ -878,7 +878,9 @@ &lt;span class=&quot;code-keyword&quot;&gt;abstract&lt;/span&gt; class AbstractSchemaManager
     &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function extractDoctrineTypeFromComment($comment, $currentType)
     {
         &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (preg_match(&lt;span class=&quot;code-quote&quot;&gt;&quot;(\(DC2Type:([a-zA-Z0-9]+)\))&quot;&lt;/span&gt;, $comment, $match)) {
-            $currentType = $match[1];
+                       &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (Types\Type::hasType($match[1])) {
+                               $currentType = $match[1];
+                       }
         }
         &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; $currentType;
     }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-58] Schema tool does not see difference between onDelete=&quot;NO ACTION&quot; and onDelete=&quot;RESTRICT&quot;</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-58</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;If database has ON DELETE CASCADE, schema tool detects change to NO ACTION and RESCRICT.&lt;br/&gt;
If database has ON DELETE RESCRICT, schema tool detects change only in case of CASCADE.&lt;br/&gt;
If database has ON DELETE NO ACTION, schema tool detect change only in case of CASCADE.&lt;/p&gt;

&lt;p&gt;Detecting of changes is done by:&lt;br/&gt;
doctrine orm:schema-tool update --dump-sql&lt;br/&gt;
and&lt;br/&gt;
doctrine orm:validate-schema&lt;/p&gt;</description>
                <environment></environment>
            <key id="11754">DBAL-58</key>
            <summary>Schema tool does not see difference between onDelete=&quot;NO ACTION&quot; and onDelete=&quot;RESTRICT&quot;</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="obrys">Jan Obr&#225;til</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Aug 2010 08:24:37 +0000</created>
                <updated>Sun, 31 Oct 2010 07:33:20 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="13908" author="beberlei" created="Wed, 11 Aug 2010 09:28:03 +0000"  >&lt;p&gt;which database version do yo uuse? can you paste an example schema?&lt;/p&gt;</comment>
                    <comment id="13909" author="obrys" created="Wed, 11 Aug 2010 10:06:16 +0000"  >&lt;p&gt;This is example script with 2 testing entities.&lt;/p&gt;</comment>
                    <comment id="13910" author="obrys" created="Wed, 11 Aug 2010 10:16:16 +0000"  >&lt;p&gt;I have attached script with two entities.&lt;/p&gt;

&lt;p&gt;I have this database version:&lt;br/&gt;
$ mysql --version&lt;br/&gt;
mysql  Ver 14.14 Distrib 5.1.41, for debian-linux-gnu (i486) using readline 6.1&lt;/p&gt;

&lt;p&gt;Check line 44. There is CASCADE.&lt;br/&gt;
Updating schema by: $ doctrine orm:schema-tool:update&lt;/p&gt;

&lt;p&gt;Change CASCADE to NO ACTION&lt;br/&gt;
$ doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
ALTER TABLE ArticleItem DROP FOREIGN KEY ArticleItem_ibfk_1;&lt;br/&gt;
ALTER TABLE ArticleItem ADD FOREIGN KEY (articleGroupId) REFERENCES ArticleGroup(id) ON DELETE NO ACTION&lt;/p&gt;

&lt;p&gt;everything ok, so: $ doctrine orm:schema-tool:update&lt;/p&gt;

&lt;p&gt;Change NO ACTION to RESTRICT&lt;br/&gt;
$ doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
// no output!!&lt;/p&gt;

&lt;p&gt;Change RESTRICT to CASCADE&lt;br/&gt;
$ doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
ALTER TABLE ArticleItem DROP FOREIGN KEY ArticleItem_ibfk_1;&lt;br/&gt;
ALTER TABLE ArticleItem ADD FOREIGN KEY (articleGroupId) REFERENCES ArticleGroup(id) ON DELETE CASCADE&lt;/p&gt;

&lt;p&gt;everything ok, so: $ doctrine orm:schema-tool:update&lt;/p&gt;

&lt;p&gt;Change CASCADE to RESTRICT&lt;br/&gt;
$ doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
ALTER TABLE ArticleItem DROP FOREIGN KEY ArticleItem_ibfk_1;&lt;br/&gt;
ALTER TABLE ArticleItem ADD FOREIGN KEY (articleGroupId) REFERENCES ArticleGroup(id) ON DELETE RESTRICT&lt;/p&gt;

&lt;p&gt;everything ok, do: $ doctrine orm:schema-tool:update&lt;/p&gt;

&lt;p&gt;Change RESTRICT to NO ACTION&lt;br/&gt;
$ doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
// no output!!&lt;/p&gt;


&lt;p&gt;So there is no way to update database schema from RESTRICT to NO ACTION and reverse!&lt;/p&gt;
</comment>
                    <comment id="14647" author="beberlei" created="Sun, 31 Oct 2010 07:33:00 +0000"  >&lt;p&gt;Hm you are right, however for MySQL NO ACTION is the same as RESTRICT as stated by &lt;a href=&quot;http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html&quot; class=&quot;external-link&quot;&gt;http://dev.mysql.com/doc/refman/5.1/en/innodb-foreign-key-constraints.html&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10736" name="Example.php" size="3950" author="obrys" created="Wed, 11 Aug 2010 10:06:16 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-40] Transparent table&amp;column names escaping</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-40</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hello, I would like to re-open the discussion about automatic transparent escaping of all table/column names sent from DBAL to database. It was already discussed in &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-88&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-88&lt;/a&gt; without any satisfactory result.&lt;/p&gt;

&lt;p&gt;Why do I have to quote any reserved word used in table or column name? Why Doctrine doesn&apos;t do this automatically for all table and column &lt;br/&gt;
names used in generated SQL queries? &lt;/p&gt;

&lt;p&gt;Before you start to explain how complicated it is and what problems you will be faced with, try to look at excellent DIBI database layer -  how it acts in this way - it&apos;s behaviour is very cool. Unfortunally at the moment the full documentation is in czech only, but here is a brief automatic google-translation to english - &lt;a href=&quot;http://dibiphp.com/en/quick-start&quot; class=&quot;external-link&quot;&gt;http://dibiphp.com/en/quick-start&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;My suggestion to Doctrine 2 ORM/DBAL solution is:&lt;/p&gt;

&lt;p&gt;1. Developer should never care about any escaping or avoiding any reserved words - it is not his business, the DBAL shoult solve it transparently and safely.&lt;/p&gt;

&lt;p&gt;2. So there should be no need and even no possibility to add any quotation chars in @column or @table annotations as well as in DQL queries. ORM layer has nothing to do with escaping, it is all a business of the DBAL layer. Current possibility for manual escaping the names in mentioned annotations is totally wrong and should be discontinued.&lt;/p&gt;

&lt;p&gt;3. DBAL should escape ALL table and column names transparently and automatically. There should be ne option to enable or disable the escaping, there is no reason for disabling it.&lt;/p&gt;

&lt;p&gt;4. The escaping should be performed just in the final translation of DBAL queries to native SQL query, not earlier. This is the right place to do that.&lt;/p&gt;

&lt;p&gt;So what do you think about that?&lt;/p&gt;</description>
                <environment></environment>
            <key id="11724">DBAL-40</key>
            <summary>Transparent table&amp;column names escaping</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jantichy">Jan Tich&#253;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Aug 2010 03:15:20 +0000</created>
                <updated>Sat, 2 Feb 2013 08:45:10 +0000</updated>
                                                                            <due></due>
                    <votes>9</votes>
                        <watches>9</watches>
                        <comments>
                    <comment id="13781" author="romanb" created="Thu, 5 Aug 2010 05:46:20 +0000"  >&lt;p&gt;My point of view (and the reason for the current implementation) is as follows:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Using reserved words is bad practice.&lt;/li&gt;
	&lt;li&gt;Quoting everything is like hitting all the SQL with a huge big hammer just to hit the 1% of reserved words (which are again, bad practice), thus overkill.&lt;/li&gt;
	&lt;li&gt;Quoting everything bloats the generated SQL (just to hit the 1% of reserved words which are bad practice to begin with)&lt;/li&gt;
	&lt;li&gt;Quoting everything automatically is like hiding the fact from developers that they use reserved words, thus hiding a bad practice and silently encouraging usage of reserved words in new database schemas. This is not desirable.&lt;/li&gt;
	&lt;li&gt;Quoting reserved words has more effects than simply making the database &quot;accept&quot; that identifier. It affects the case-sensitivity and that in a very inconsistent way across databases and operating systems (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; , especially the conclusion). You say there is no reason for disabling it but in fact there are a lot of reasons to do so, so many that it is &lt;b&gt;disabled&lt;/b&gt; by default in MDB2 and &lt;b&gt;discouraged to enable it&lt;/b&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;So, supporting selective quoting in the name of a (slightly) better interoperability with &lt;b&gt;legacy schemas&lt;/b&gt; looked (and still looks) like the best solution for us. The support is limited, explicit, does not require much implementation or overhead and does not unnecessarily bloat the SQL.&lt;/p&gt;

&lt;p&gt;There is only one solution for reserved words: not using them. Quoting is a workaround, not a solution and especially not a good one.&lt;/p&gt;

&lt;p&gt;ps: I really wish quoting reserved words would not be available in SQL &lt;img class=&quot;emoticon&quot; src=&quot;http://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&apos;s not available in most programming languages and noone cares, people just don&apos;t use reserved words, because they simply can&apos;t.&lt;/p&gt;</comment>
                    <comment id="13782" author="jantichy" created="Thu, 5 Aug 2010 07:11:08 +0000"  >&lt;p&gt;Hi Roman, thank you very much for your response! I storngly disagree with most of your points &lt;img class=&quot;emoticon&quot; src=&quot;http://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;There is no doubt that using reserved words is bad practice - FROM THE VIEW OF DATABASE SYSTEM.&lt;/p&gt;

&lt;p&gt;But we are discussing about ORM and DBAL. One of the biggest goals of ORM/DBAL is to provide transparent usage of the storage behind the scene. No matter if it is MySQL or PostgreSQL or even maybe something completely diferent.&lt;/p&gt;

&lt;p&gt;The ORM/DBAL layer should prevent me from any specifics of particular storage as much as possible. I don&apos;t want to remember (and I never should to) that I cannot create entity Order because &quot;order&quot; is reserved word in some weird technology far away from me as ORM programmer.&lt;/p&gt;

&lt;p&gt;It is strictly consistent with what you have written above in your PS - &quot;It&apos;s not available in most programming languages and noone cares, people just don&apos;t use reserved words, because they simply can&apos;t&quot; - just consider Doctrine 2 to be another programming language - and there is no real systematic reason in Doctrine 2 itself to prevent developers create entities named &quot;Order&quot;. &lt;/p&gt;

&lt;p&gt;Here is an analogy - It is the same as if you would say that you cannot use associative arrays in PHP because C-language or Assembler behind PHP doesn&apos;t support associative arrays. Yes, they don&apos;t support them but it is the responsibility of PHP to provide them. In the same way I don&apos;t want to respect this weird limitations of particular RDBMS behind Doctrine 2. This is Doctrine&apos;s responsibility to transparently cover the limitation.&lt;/p&gt;

&lt;p&gt;Moreover, when list of registered keywords is different from one to the other RDBMS, so the naming of entities is strongly dependent on current database server.&lt;/p&gt;

&lt;p&gt;Moreover, when I realize that I have used a registered keyword as lately as an error returns from database engine, not earlier. &lt;/p&gt;

&lt;p&gt;I suppose here is probably no risk of SQL injection, but I feel the current Doctrine 2 acting to be &quot;vulnerable&quot; in very similar way, on principle. Simply - you are sending an unescaped piece of SQL query to the database without any warranty what it is. And sometimes it fails, sometimes not. From this view I don&apos;t consider overall escaping to be overkill at all, I consider it to be a necessity.&lt;/p&gt;

&lt;p&gt;I am strongly convinced that developer working upon DBAL or even ORM layer should never think about such naming limitations and he even shouldn&apos;t know anything about reserved words in his particular DBMS.&lt;/p&gt;

&lt;p&gt;Now to mentioned problems with case sensitivity. Resulting from the fact that Doctrine 2 entity names are case insensitive I belive that all table definitions and SQL queries comming from Doctrine 2 to database should act as case insensitive too. And that the only practicable way is to normalize (lowercase) all table and column names just on DBAL side before it is passed as SQL query to database.&lt;/p&gt;

&lt;p&gt;Jan&lt;/p&gt;</comment>
                    <comment id="13783" author="beberlei" created="Thu, 5 Aug 2010 08:13:20 +0000"  >&lt;p&gt;There is actually a very good reason for not quoting. Oracle columns behave differently in their internal structure when escaped.&lt;/p&gt;

&lt;p&gt;for example:&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
  * @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; $foo;
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;With quoting it would lead to a column &quot;foo&quot; being lower-cased IN the database and even returned so from resultsets. Without casing it would be a column &quot;FOO&quot;. We would essentially need to implement lots of glue code just to get this annoying Oracle feature to work and i think Postgres has the same with lower-cased columns.&lt;/p&gt;</comment>
                    <comment id="13785" author="romanb" created="Thu, 5 Aug 2010 09:09:09 +0000"  >&lt;p&gt;@&quot;Hi Roman, thank you very much for your response! I storngly disagree with most of your points&quot;&lt;/p&gt;

&lt;p&gt;I guess we can agree to disagree then &lt;img class=&quot;emoticon&quot; src=&quot;http://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;

&lt;p&gt;@&quot;But we are discussing about ORM and DBAL. One of the biggest goals of ORM/DBAL is to provide transparent usage of the storage behind the scene. No matter if it is MySQL or PostgreSQL or even maybe something completely diferent.&quot;&lt;/p&gt;

&lt;p&gt;Actually, no, &quot;hiding&quot; the storage completely from the developer is not the goal just as it is not the goal to &quot;hide&quot; SQL. There is an object model on one side and a relational database on the other side. The goal is to provide a mapping between them which is not the same as &quot;hiding&quot; one from the other. In order to create good applications that use ORM technology you need to know both very well, OOP and relational databases. The goal is not to make relational database knowledge &quot;unnecessary&quot;. This only results in inefficient use of the databases. The goal is to give people who know both sides equally well a tool to map between the two. Not even &quot;portability&quot; between different relational database vendors is a main goal of an ORM technology, it is just obvious to provide assistance with that as part of the mapping.&lt;/p&gt;

&lt;p&gt;@&quot;and there is no real systematic reason in Doctrine 2 itself to prevent developers create entities named &quot;Order&quot;.&lt;/p&gt;

&lt;p&gt;Noone prevents you from naming domain classes anything you want. Class naming is different from table naming. That the table name defaults to the class name is just that, a default, that can and should be changed if necessary.&lt;/p&gt;

&lt;p&gt;@&quot;Moreover, when list of registered keywords is different from one to the other RDBMS, so the naming of entities is strongly dependent on current database server.&quot;&lt;/p&gt;

&lt;p&gt;Correct, and if you want to create a portable application that works, and will be deployed on, a different set of vendors, you need to have some knowledge of these databases and consider their characteristics. An ORM/DBAL technology does not give you any guarantee for complete and transparent portability between vendors and especially not that it will perform equally well on all of them. The ORM/DBAL technology helps you for the most part in a lot of cases with portability issues but it is no free ticket.&lt;/p&gt;

&lt;p&gt;@&quot;I suppose here is probably no risk of SQL injection, but I feel the current Doctrine 2 acting to be &quot;vulnerable&quot; in very similar way, on principle. Simply - you are sending an unescaped piece of SQL query to the database without any warranty what it is. And sometimes it fails, sometimes not. From this view I don&apos;t consider overall escaping to be overkill at all, I consider it to be a necessity.&quot;&lt;/p&gt;

&lt;p&gt;Do not confuse identifier quoting with quoting/escaping of special characters as it is used for security reasons on input. Identifier quoting is absolutely not a necessity, it is &lt;b&gt;a workaround for using otherwise reserved words as schema element names&lt;/b&gt;. Speaking of goals, it is neither a &quot;goal&quot; of ORM/DBAL technology to completely remove the possibilities of SQL injections. You can&apos;t. It&apos;ll always be possible with wrong usage.&lt;/p&gt;

&lt;p&gt;@&quot;I am strongly convinced that developer working upon DBAL or even ORM layer should never think about such naming limitations and he even shouldn&apos;t know anything about reserved words in his particular DBMS.&quot;&lt;/p&gt;

&lt;p&gt;And I am strongly convinced that a developer working with a DBAL/ORM should know the underlying databases pretty well.&lt;/p&gt;

&lt;p&gt;I think you&apos;re really not aware of all the consequences it has across different database vendors to quote every identifier. If not for developers using Doctrine, you cause at least any developer or application pain that does not access the database through Doctrine and is thus feels the full pain of case-sensitivity and mandatory quoting you enforced on the whole schema. Ubiquitious access to the data is actually a strong point of a relational database and it is far from uncommon that the same database is accessed by many parties.&lt;/p&gt;

&lt;p&gt;I think the approach taken by DIBI is a bad idea and even worse if there is no way to turn this behavior off. Do they have Oracle or DB2 users? I&apos;m wondering what the sysadmins behind these databases might think if they see this quoting nightmare since to my knowledge this is considered bad practice among them as well.&lt;/p&gt;

&lt;p&gt;Yes, we&apos;re disagreeing on many points but if you really think identifier quoting is a good idea then you&apos;re ignoring a whole lot of prior experience (not only mine).&lt;/p&gt;</comment>
                    <comment id="13786" author="lsmith" created="Thu, 5 Aug 2010 10:03:22 +0000"  >&lt;p&gt;I was one of the lead developers of MDB2 and we just ran into tons of issues when we overly aggressively did identifier quoting by default. even the option caused lots of headaches. furthermore I agree that the ORM is not about turning an RDBMS into an Object Database, but instead to make a mapping possible. In this vain using reserved words or making all identifiers case sensitive will be a big pain for the people that do work one level lower aka the DBA&apos;s. heck even as a developer I frequently work on the DB&apos;s command line.&lt;/p&gt;

&lt;p&gt;Now as for helping people prevent issues with reserved words. Back then I added some reserved word checking into MDB2_Schema. Obviously its hard to really keep track of all of the different reserved words for all RDBMS. Maybe its possible to work with this guy for this: &lt;a href=&quot;http://www.petefreitag.com/item/290.cfm&quot; class=&quot;external-link&quot;&gt;http://www.petefreitag.com/item/290.cfm&lt;/a&gt; This way it could be possible to validate if the names chosen in the models will not cause issues with a certain list of RDBMS.&lt;/p&gt;</comment>
                    <comment id="13809" author="beberlei" created="Sat, 7 Aug 2010 02:48:52 +0000"  >&lt;p&gt;Reserved words checking sounds to be a fair compromise!&lt;/p&gt;</comment>
                    <comment id="14160" author="jantichy" created="Mon, 30 Aug 2010 08:08:12 +0000"  >&lt;p&gt;Hello, thank you all for your responses. &lt;/p&gt;

&lt;p&gt;This helped me understand much about Doctrine 2 basic objectives - especially that it is designed mainly to &quot;make a mapping possible&quot; only, not to be as much as possible transparent layer between database and application. And even if I don&apos;t like this conception (because I personally think ORM should provide all such features - like automatic reserved keywords escaping - to make the particular database as transparent as possible), at the same time I fully understand all metioned arguments for doing things in such way. Thank you again.&lt;/p&gt;</comment>
                    <comment id="15148" author="dboune" created="Mon, 17 Jan 2011 17:22:46 +0000"  >&lt;p&gt;I would like to state an agreement with the OP.&lt;/p&gt;

&lt;p&gt;I understand where there are difficulties in handling reserved words and backtick/quoting, and certainly one should always avoid the use of reserved words in their own schema designs. This is a given when one is able to exert control.&lt;/p&gt;

&lt;p&gt;At present I am working on a project in which I am dealing with an outside database where I have no control over the schema, nor am I able to push the remote into making the most sensible changes to their schema. I must live with what they provide.&lt;/p&gt;

&lt;p&gt;DBAL presents me with a set of invaluable tools that can not be used as-is, because it lacks the ability to handle quoting when generating schema sql. I&apos;m sure there are some other places where I will find this lacking as well. This is disappointing.&lt;/p&gt;

&lt;p&gt;Regardless of what we as developers should do when designing our own schema, we still need to be able to work and play with others who may not follow the same common sense conventions.&lt;/p&gt;

&lt;p&gt;Edit:&lt;br/&gt;
  My temporary quick solution to just &quot;make it work&quot;, was to modify AbstractAsset::getQuotedName and force the use of $platform-&amp;gt;quoteIdentifier. It did the trick for now until a more suitable solution presents itself.&lt;/p&gt;</comment>
                    <comment id="15220" author="osvi" created="Thu, 3 Feb 2011 07:32:51 +0000"  >&lt;p&gt;&quot;its hard to really keep track of all of the different reserved words for all RDBMS&quot;&lt;/p&gt;

&lt;p&gt;That&apos;s the main point for me.&lt;/p&gt;</comment>
                    <comment id="15747" author="kreischweide" created="Tue, 26 Apr 2011 16:57:31 +0000"  >&lt;p&gt;@Damian thanks for the hint. I just ran into a similar situation.&lt;/p&gt;

&lt;p&gt;Not every project is a startup. I tried to use doctrine2 on a customers database for a small web ui. Well I told them to rename their `iso3166-1` table and `alpha-2` field, then we had a good laugh. We made the mapping possible but i&apos;ll remember the one thing i learned: doctrine did not help, guide, prevent or cared at all. It did not even hesitate to spew invalid sql snippets when asked to dump. Its okay for me, but i&apos;ve expected something more resilient from a DBAL.&lt;/p&gt;</comment>
                    <comment id="19446" author="rjmunro" created="Sat, 2 Feb 2013 00:37:35 +0000"  >&lt;p&gt;What do you mean by &quot;Quoting everything is like hitting all the SQL with a huge big hammer&quot;? Is there a performance hit?&lt;/p&gt;

&lt;p&gt;I have always quoted all names when working with PostGres. Not quoting them has always felt like not quoting strings in PHP (e.g. $foo&lt;span class=&quot;error&quot;&gt;&amp;#91;bar&amp;#93;&lt;/span&gt; instead of $foo&lt;span class=&quot;error&quot;&gt;&amp;#91;&amp;#39;bar&amp;#39;&amp;#93;&lt;/span&gt; because unless the string is keyword or defined as a constant somewhere, you don&apos;t need to (although you will get a &quot;Use of undefined constant&quot; warning). In the early days of PHP, not quoting array keys was common example practise.&lt;/p&gt;</comment>
                    <comment id="19447" author="ocramius" created="Sat, 2 Feb 2013 08:45:10 +0000"  >&lt;p&gt;If you want quoting by default on everything we have a quoting strategy (in ORM) that you can use. I don&apos;t think quoting everything by default is a viable solution. Back in `Zend_Db` times this was eating up a lot of performance for no real reason. Users having a clean schema without horrors like columns called `order` or `group` should not be penalized because of users not using valid naming schemes.&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10001">
                <name>Reference</name>
                                <outwardlinks description="relates to">
                            <issuelink>
            <issuekey id="12431">DBAL-96</issuekey>
        </issuelink>
                    </outwardlinks>
                                            </issuelinktype>
                    </issuelinks>
                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-31] Move Schema related Creation code from AbstractPlatform to AbstractSchemaManager</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-31</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Move Schema related Creation code from AbstractPlatform to AbstractSchemaManager&lt;/p&gt;</description>
                <environment></environment>
            <key id="11584">DBAL-31</key>
            <summary>Move Schema related Creation code from AbstractPlatform to AbstractSchemaManager</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 4 Jul 2010 12:28:14 +0000</created>
                <updated>Fri, 24 Dec 2010 05:23:51 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="13833" author="beberlei" created="Sun, 8 Aug 2010 04:43:19 +0000"  >&lt;p&gt;Scheduled for Beta4&lt;/p&gt;</comment>
                    <comment id="13964" author="romanb" created="Mon, 16 Aug 2010 13:00:07 +0000"  >&lt;p&gt;If this task is more complex and requires larger refactorings we can re-evaluate it in a post-2.0 release.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

&lt;p&gt;This query lead to error, because for index on text field absented key length.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14339">DBAL-404</key>
            <summary>Support of index length for text fields</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="maxlun86">Maksim Lunochkin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 29 Dec 2012 20:31:53 +0000</created>
                <updated>Sat, 29 Dec 2012 20:31:53 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

<item>
            <title>[DBAL-275] Automatically attempt to reconnect a dropped persistent MySQL-connection (MySQL server has gone away)</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-275</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For php-scripts that run for a long time (a.o. daemons) persistent connections will almost always be dropped by the MySQL-server after a set timeout (depending on wait_timeout). This will have Doctrine throw an exception and have the php-script terminate if not catched. It is not practical to catch the same Exception with a try-catch around every query. &lt;/p&gt;

&lt;p&gt;I have fixed this for DBAL 2.1.6 by adding a custom layer of Statement-, Connection- and Driver classes.&lt;br/&gt;
Key functionalities:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;The custom layer will transparently catch dropped connections and attempt a number of times (configurable) to reconnect.&lt;/li&gt;
	&lt;li&gt;The behaviour will not be triggered in a transaction (in that case it will revert to throwing an exception just like before).&lt;/li&gt;
	&lt;li&gt;The reconnect behaviour is not MySQL specific per se. It can be triggered by any Exception for any Driver-type if a Driver provides a method &apos;getReconnectExceptions&apos;.&lt;/li&gt;
	&lt;li&gt;Minimal performance-impact. Only when an Exception is thrown will it be searched for a matching Exception to possibly trigger the behaviour. (also the reason a single stringmatch is used)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Why this functionality?&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It is often not possible to change settings of a database-server.&lt;/li&gt;
	&lt;li&gt;In a production environment the MySQL wait_timeout is often set to mere seconds&lt;/li&gt;
	&lt;li&gt;Doctrine&apos;s use of persistent connections will become a little more persistent &lt;img class=&quot;emoticon&quot; src=&quot;http://doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/li&gt;
	&lt;li&gt;More reliable and robust php-scripts built on top of the DBAL&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;See files in attached archive to get an idea of the code. Enabling the layer is currently done like this (Symfony2 yml):&lt;br/&gt;
doctrine:&lt;br/&gt;
    dbal:&lt;br/&gt;
        wrapper_class: DoP\DoPBundle\Doctrine\DBAL\Connection&lt;br/&gt;
        driver_class: DoP\DoPBundle\Doctrine\DBAL\Driver\PDOMySql\Driver&lt;br/&gt;
        options:&lt;br/&gt;
            x_reconnect_attempts: 2&lt;/p&gt;

&lt;p&gt;Maybe I overlook something, but I only see pro&apos;s, no cons, to this improvement. I have created this issue to poll if you think this is a welcome feature and are interested to have me rework the code into DBAL itself? Reworking it into DBAL itself would certainly greatly reduce my code.&lt;/p&gt;

&lt;p&gt;If agreed I&apos;ll create a github pull request when finished with the code and take comments/improvements from there.&lt;/p&gt;

&lt;p&gt;(Also, I have glanced over &lt;a href=&quot;http://www.doctrine-project.org/contribute.html&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/contribute.html&lt;/a&gt; but did not find any coding/testing-guidelines. Can you point me in the right direction?)&lt;/p&gt;

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

&lt;p&gt;Dieter&lt;/p&gt;</description>
                <environment>doctrine-dbal/2.1.6, driver PDOMySql</environment>
            <key id="13698">DBAL-275</key>
            <summary>Automatically attempt to reconnect a dropped persistent MySQL-connection (MySQL server has gone away)</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="peetersdiet">Dieter Peeters</reporter>
                        <labels>
                    </labels>
                <created>Mon, 14 May 2012 16:26:49 +0000</created>
                <updated>Wed, 21 Nov 2012 11:39:50 +0000</updated>
                                    <version>2.1.6</version>
                                                        <due></due>
                    <votes>4</votes>
                        <watches>8</watches>
                        <comments>
                    <comment id="18540" author="naderman" created="Fri, 24 Aug 2012 18:42:17 +0000"  >&lt;p&gt;Sounds like a rather useful addition to me, would be cool to see this as a default feature.&lt;/p&gt;</comment>
                    <comment id="18974" author="jpauli" created="Tue, 13 Nov 2012 10:06:15 +0000"  >&lt;p&gt;We used this at work, it&apos;s simple, it could need more reflection&lt;/p&gt;</comment>
                    <comment id="18975" author="beberlei" created="Tue, 13 Nov 2012 10:12:17 +0000"  >&lt;p&gt;The problem with a generic solution here are the risks involved, we need to answer questions:&lt;/p&gt;

&lt;p&gt;1. did a transaction get aborted beccause of this&lt;br/&gt;
2. is it safe to continue at this point with a second, new connection&lt;/p&gt;

&lt;p&gt;I am not sure we can guarantee the 100% working.&lt;/p&gt;</comment>
                    <comment id="18977" author="peetersdiet" created="Tue, 13 Nov 2012 12:34:29 +0000"  >&lt;p&gt;@Julien:&lt;br/&gt;
I assume you are referring to the elaborated switch-statement? Well, since this is a DBAL I think data-integrity and performance are the more important things. In my experience when performance is important, you avoid reflection in PHP as much as possible. In the light of performance the switch-statement was a very deliberate substitution of a call to call_user_func_array. The number of arguments was finite and I am fairly sure all possible cases where covered.&lt;/p&gt;

&lt;p&gt;@Benjamin:&lt;br/&gt;
It seems I forgot to mention this in my statement above. Transactions are indeed an issue I deliberately avoided in this early version. As far as I know, transactions in MySQL are connection-based so the transaction will be rolled back when the server disconnects. A solution would be to incorporate a cache of all statements in a transaction. I was waiting on feedback of the Doctrine-developers on incorporating this code into the DBAL itself, before extending it with more functionality... and I now notice that it got assigned &lt;img class=&quot;emoticon&quot; src=&quot;http://doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I&apos;ll try to answer your two questions:&lt;br/&gt;
1. If the connection is dropped when inside a transaction, the behaviour will revert to the normal Doctrine-behaviour, i.e. no reconnection-attempt will be made and the exception &apos;MySQL server has gone away&apos; will be thrown.&lt;br/&gt;
2. To be clear, I always try to write bug-free code, but I do not guarantee anything about this code. To answer your question: yes, it is safe to continue if you try-catch your transaction in your application-code. Upon the exception you reconnect to MySQL and repeat the lost transaction.&lt;/p&gt;

&lt;p&gt;And as a last note, this code is just to have a workable solution. I tend to agree with anyone who thinks that the correct place to fix this problem is in the MySQL-client itself.&lt;/p&gt;

&lt;p&gt;Dieter&lt;/p&gt;</comment>
                    <comment id="18978" author="beberlei" created="Tue, 13 Nov 2012 12:43:13 +0000"  >&lt;p&gt;My idea would be to throw an exception on reconnect like it is done atm, when transactionNestingLevel &amp;gt; 0, and otherwise proceed with doing the reconnect. I am not sure i am missing something here though.&lt;/p&gt;</comment>
                    <comment id="18979" author="peetersdiet" created="Tue, 13 Nov 2012 12:44:06 +0000"  >&lt;p&gt;@Benjamin: I noticed after commenting that you&apos;re the assignee ... and corrected my comment a bit.&lt;/p&gt;

&lt;p&gt;Now, if you want I can extend the functionality to support transactions. But I prefer to do this directly into the DBAL, not as a layer on top. The resulting code should be a bit cleaner than this layer now.&lt;/p&gt;

&lt;p&gt;What do you think?&lt;/p&gt;

&lt;p&gt;*&lt;b&gt;edit&lt;/b&gt;*&lt;br/&gt;
A bit of crossposting here &lt;img class=&quot;emoticon&quot; src=&quot;http://doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;The way you suggest is the way this layer is implemented&lt;br/&gt;
*&lt;b&gt;edit&lt;/b&gt;*&lt;/p&gt;

&lt;p&gt;Dieter&lt;/p&gt;</comment>
                    <comment id="18980" author="peetersdiet" created="Tue, 13 Nov 2012 12:50:12 +0000"  >&lt;p&gt;@Benjamin&lt;br/&gt;
It&apos;s been a while since I wrote the code. Above answers are from memory. I will revise the code this evening and give you exact answers. Also, related to transactions, I think the way I handle the savepoints should be revised.&lt;/p&gt;</comment>
                    <comment id="18981" author="peetersdiet" created="Tue, 13 Nov 2012 13:11:59 +0000"  >&lt;p&gt;@Benjamin:&lt;br/&gt;
Sorry for the spam... &lt;img class=&quot;emoticon&quot; src=&quot;http://doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;I couldn&apos;t help myself doing a quick verification. The answer to your question lies in the file Connection.php. The method DoP\DoPBundle\Doctrine\DBAL\Connection::validateReconnectAttempt also checks that the transactionNestingLevel &amp;lt; 1, so the method will always return false when in a transaction. I.o.w. when in a transaction no attempt to reconnect will be made and the exception is simply rethrown, as per the default Doctrine behaviour.&lt;/p&gt;</comment>
                    <comment id="19016" author="pkruithof" created="Wed, 21 Nov 2012 11:11:16 +0000"  >&lt;p&gt;I could really use this for kong running cronjobs and daemonized scripts. Is this being worked on right now?&lt;/p&gt;</comment>
                    <comment id="19017" author="peetersdiet" created="Wed, 21 Nov 2012 11:39:50 +0000"  >&lt;p&gt;Peter, you can use the above code, but it only works for statements outside of transactions. Also, the calls for savepoints in transactions need correction. Will do that when I find the time.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11348" name="doctrine-connection.php" size="4948" author="jpauli" created="Tue, 13 Nov 2012 10:06:15 +0000" />
                    <attachment id="11189" name="reconnect_layer.tar.gz" size="2003" author="peetersdiet" created="Mon, 14 May 2012 16:30:01 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-95] Interbase/Firebird support</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-95</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Implemented support for Interbase/Firebird dialects&lt;/p&gt;</description>
                <environment></environment>
            <key id="12430">DBAL-95</key>
            <summary>Interbase/Firebird support</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 26 Feb 2011 15:57:29 +0000</created>
                <updated>Tue, 12 Mar 2013 05:33:10 +0000</updated>
                                                                            <due></due>
                    <votes>3</votes>
                        <watches>3</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

&lt;p&gt;e.g   `security`.`users` or `tblusers` (No support for schemas since I last checked some time ago)&lt;/p&gt;</description>
                <environment>Any PostgreSQL environment</environment>
            <key id="14740">DBAL-477</key>
            <summary>Just doublequote all schema names and field names in PostgreSQL sql command generation, and the same for MySQL</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="josdewitte">jos de witte</reporter>
                        <labels>
                        <label>mysql</label>
                        <label>postgresql</label>
                    </labels>
                <created>Thu, 28 Mar 2013 22:11:56 +0000</created>
                <updated>Thu, 28 Mar 2013 22:11:56 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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


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

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

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

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

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

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

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


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


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


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


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


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


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

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

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

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

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

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

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

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

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

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

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

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


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

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

<item>
            <title>[DBAL-264] Support for UIDs in PostgreSQL</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-264</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Please add support for uuid datatype in PostgreSQL&lt;/p&gt;</description>
                <environment></environment>
            <key id="13671">DBAL-264</key>
            <summary>Support for UIDs in PostgreSQL</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="10000" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rivaros">ross neacoders</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Apr 2012 16:09:09 +0000</created>
                <updated>Mon, 29 Apr 2013 02:05:11 +0000</updated>
                                    <version>2.3</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18828" author="zeroem" created="Fri, 12 Oct 2012 06:00:59 +0000"  >&lt;p&gt;It seems the only missing piece is the implementation of the getGuidExpression method in the PostgreSqlPlatform class.&lt;/p&gt;

&lt;p&gt;Details on generating UUIDs from postgres can be found here:&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.postgresql.org/docs/current/static/uuid-ossp.html&quot; class=&quot;external-link&quot;&gt;http://www.postgresql.org/docs/current/static/uuid-ossp.html&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Things that would need to be addressed:&lt;/p&gt;

&lt;p&gt;1) It requires the uuid-ossp module to be installed in the database.  Solve with documentation or ...?&lt;/p&gt;

&lt;p&gt;2) There isn&apos;t just one function.  Just pick one or make it configurable with a sane default?&lt;/p&gt;</comment>
                    <comment id="19113" author="scribblet" created="Mon, 10 Dec 2012 05:20:26 +0000"  >&lt;p&gt;I have implemented this for my own project, using what I think is a sane default:&lt;/p&gt;

&lt;p&gt;    public function getGuidExpression()&lt;/p&gt;
    {
        return &apos;uuid_generate_v4()&apos;;
    }

&lt;p&gt;The other issue I think that needs addressing is that the extension must be loaded into the current database upon creation. Either this is a deal-breaker right here (relying on a PGSQL plugin that&apos;s not available by default)&lt;/p&gt;

&lt;p&gt;OR&lt;/p&gt;

&lt;p&gt;If not, maybe schema:update/create needs to check for whether postgresql is being used, whether there is a guid type/generator being used in an entity, and then either execute CREATE EXTENSION uuid-ossp;, and failing that return an exception that informs the user that uuid-ossp must be available as an extension before GUID generation can be used in entities.&lt;/p&gt;

&lt;p&gt;Can someone explain to me please the position on this currently? Is it not ok to rely on non-core/standard functionality?&lt;/p&gt;</comment>
                    <comment id="20101" author="mbadolato" created="Thu, 25 Apr 2013 00:23:23 +0000"  >&lt;p&gt;Is there any sort of decision on this item? I was trying to use UUID with Postgres and finally got it to work by adding&lt;/p&gt;

&lt;p&gt;public function getGuidExpression()&lt;/p&gt;
{
    return &apos;UUID_GENERATE_V4()&apos;;
}

&lt;p&gt;and went to submit a patch, then found this ticket and see that it&apos;s the exact same solution that Ross Cousens submitted above. I&apos;d really like to not maintain my own fork of the repository just to have this change in place, and it seems like a reasonable fix (barring the uuid-ossp extension not being a Postgres default extension). Can we get this in there so it&apos;s available, and worry about the issue of informing the user about the extension at a later point?  &lt;/p&gt;

&lt;p&gt;Or is there an easy way that anyone knows that I can add the function to my own class (in a Symfony2 project) that would extend PostgreSqlPlatform.php and add the function, without the need for me to fork Doctrine and add it on my own?&lt;/p&gt;

&lt;p&gt;Thanks,&lt;br/&gt;
--mark&lt;/p&gt;</comment>
                    <comment id="20106" author="mbadolato" created="Thu, 25 Apr 2013 18:24:26 +0000"  >&lt;p&gt;Pull request submitted&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/pull/312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/312&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20107" author="scribblet" created="Fri, 26 Apr 2013 01:50:37 +0000"  >&lt;p&gt;I hope this gets accepted but I fear it won&apos;t.&lt;/p&gt;

&lt;p&gt;The original complaint against implementing GUID for the PostgreSQL platform driver was because a) it required a separate extension to be enabled on the server itself b) and there were a number of GUID generation functions available.&lt;/p&gt;

&lt;p&gt;To use anything but v4 would be asinine unless some external constraint was forcing you to use the older generation algorithms, so I think argument b is mostly moot. Argument a can easily be solved with documentation, programmatically as well (would require more work) or just left as is because the error back from postgresql is very verbose. Cannot find function uuid_generate_v4. Google it, see that extension is required, see that it&apos;s available in PostgreSQL contrib packages, enable it, and voila it works.&lt;/p&gt;</comment>
                    <comment id="20108" author="mbadolato" created="Fri, 26 Apr 2013 02:30:09 +0000"  >&lt;p&gt;Agreed, and I think that having SOMETHING that is usable (and has a very clear message that you need to install an extension) is better than nothing. The implementation can be expanded later to cover the extension not existing, or using something other than v4, etc.  But this should be good enough for most people and it seems silly not to have, or at least not have a way to override and provide it. &lt;/p&gt;

&lt;p&gt;I was looking at the Symfony configs to see if there was a way to define my own platform class that could then just extend the current PostgreSqlPlatform class and add a the function, but that doesn&apos;t seem to be doable (or I just missed it)&lt;/p&gt;</comment>
                    <comment id="20118" author="mbadolato" created="Sat, 27 Apr 2013 08:40:08 +0000"  >&lt;p&gt;I just saw that this got merged into master. As soon as this hits 2.3* I can do away with the manual UUID generation for id&apos;s that we&apos;re currently doing &lt;img class=&quot;emoticon&quot; src=&quot;http://doctrine-project.org/jira/images/icons/emoticons/smile.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Thanks much Benjamin!&lt;/p&gt;</comment>
                    <comment id="20124" author="scribblet" created="Mon, 29 Apr 2013 02:04:36 +0000"  >&lt;p&gt;Yay, I am happy that this has been accepted and will make it through to next release. Thank you Mark/Benjamin!&lt;/p&gt;

</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

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

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

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

&lt;p&gt;If this were to be done, on which branch should this be applied?&lt;/p&gt;</description>
                <environment></environment>
            <key id="14355">DBAL-407</key>
            <summary>Refactor exceptions</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="burgov">Bart van den Burg</reporter>
                        <labels>
                    </labels>
                <created>Mon, 7 Jan 2013 18:09:34 +0000</created>
                <updated>Mon, 6 May 2013 06:10:18 +0000</updated>
                                                                    <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>4</watches>
                        <comments>
                    <comment id="19251" author="stof" created="Mon, 7 Jan 2013 19:32:17 +0000"  >&lt;p&gt;This should be done in the master branch.&lt;/p&gt;

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

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

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

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

&lt;p&gt;Besides we can get the SQL state code now:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;    try {
        // ...
    } catch (\Doctrine\DBAL\DBALException $e) {
        $code = $e-&amp;gt;getPrevious()-&amp;gt;getCode();
        // do stuff with $code
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

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

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

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

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

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

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

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

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

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


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

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

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

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

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

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


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

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

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

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

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

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

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

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

&lt;p&gt;I assume we need to check keepSlave when forcing slaves to master&lt;/p&gt;</description>
                <environment></environment>
            <key id="14954">DBAL-519</key>
            <summary>MasterSlave connection does not keep Slave connections when there is a transaction</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="anandagra">Ananda Agrawal</reporter>
                        <labels>
                    </labels>
                <created>Wed, 15 May 2013 18:01:26 +0000</created>
                <updated>Wed, 15 May 2013 18:01:26 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-324] SchemaManager should first look into comment instead of infer the type first.</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-324</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using schema tool, Doctrine tries to infer the Doctrine type via the mapped types in Platform.&lt;br/&gt;
It should first try to read from the comment; if found, ignore the Database type inference.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13972">DBAL-324</key>
            <summary>SchemaManager should first look into comment instead of infer the type first.</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="guilhermeblanco">Guilherme Blanco</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2012 17:11:19 +0000</created>
                <updated>Tue, 14 May 2013 20:50:07 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18561" author="beberlei" created="Wed, 29 Aug 2012 09:39:11 +0000"  >&lt;p&gt;Why is this a bug? Can you say some more about why we need to do this and what error occurs?&lt;/p&gt;</comment>
                    <comment id="18580" author="guilhermeblanco" created="Wed, 29 Aug 2012 20:05:05 +0000"  >&lt;p&gt;This issue is strictly correlated to the commit I&apos;ve done here: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/e25c774dde971dc4afd40648e9ccd0af53b34ce9&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/e25c774dde971dc4afd40648e9ccd0af53b34ce9&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mainly, we may have legacy database that we do know how Doctrine should operate. Under this circumstance, we may want to add a comment to the field defining the Doctrine DBAL type.&lt;br/&gt;
Even though after doing this, Doctrine still complains (in my situation, a SET column type) that it&apos;s unable to handle this column type.&lt;/p&gt;

&lt;p&gt;That happens because MySQL Schema Manager (and others) first looks for the column type:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php#L112&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/MySqlSchemaManager.php#L112&lt;/a&gt;&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L312&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Platforms/AbstractPlatform.php#L312&lt;/a&gt;&lt;br/&gt;
which automatically fails.&lt;/p&gt;

&lt;p&gt;But if we first try to look for the commented data type:&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php#L884&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Schema/AbstractSchemaManager.php#L884&lt;/a&gt;&lt;br/&gt;
And forget about the rest if it finds one definition there, it would allow even unknown data types to be managed instead of forcing to define the DBAL Type compatible.&lt;/p&gt;</comment>
                    <comment id="20383" author="steve@onzra.com" created="Tue, 14 May 2013 20:50:07 +0000"  >&lt;p&gt;This also applies for a type of yaml. &lt;br/&gt;
Example:&lt;/p&gt;

&lt;p&gt;    /** @Column(type=&quot;yaml&quot;) */&lt;br/&gt;
    protected $data = array();&lt;/p&gt;

&lt;p&gt;./scripts/doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
ALTER TABLE meta CHANGE data data LONGTEXT NOT NULL;&lt;/p&gt;

&lt;p&gt;Very frustrating.... Might be related to &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-42&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

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

<item>
            <title>[DBAL-59] Add support for PDO_CUBRID driver when stable</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-59</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;CUBRID is a relational database focused on high performance web-apps. If the PDO_CUBRID &lt;a href=&quot;http://pecl.php.net/package/PDO_CUBRID&quot; class=&quot;external-link&quot;&gt;http://pecl.php.net/package/PDO_CUBRID&lt;/a&gt; gets stable or betaish anytime we should think about support it.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12081">DBAL-59</key>
            <summary>Add support for PDO_CUBRID driver when stable</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Tue, 9 Nov 2010 01:44:30 +0000</created>
                <updated>Mon, 22 Aug 2011 02:50:07 +0000</updated>
                                                                            <due></due>
                    <votes>3</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="16367" author="kadishmal" created="Mon, 22 Aug 2011 02:50:07 +0000"  >&lt;p&gt;Hello, I was recently looking if Doctrene supports CUBRID and found this issue. CUBRID PDO Driver is production-ready now, being used in Yii PHP Framework, for instance.&lt;/p&gt;

&lt;p&gt;I am CUBRID Project Manager and would like to know if you plan to elevate this issue up so that we could use Doctrene, too. We also plan to include Doctrene into &lt;a href=&quot;http://www.cubrid.org/projects&quot; class=&quot;external-link&quot;&gt;CUBRID Projects&lt;/a&gt; site after it gets official support.&lt;/p&gt;

&lt;p&gt;If you need any assistance, let me know. I will be glad to assist you.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-179] SQLLogger API improvement: log rows affected</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-179</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;A small suggestion.  It is useful in our application to log the affected rows in queries in order to make it easier to trace what queries did what.  I think a simple way to enable this in the SQLLogger is to modify the stopQuery() interface to receive an option rowcount parameter.&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13170">DBAL-179</key>
            <summary>SQLLogger API improvement: log rows affected</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="redemption">Howard Ha</reporter>
                        <labels>
                    </labels>
                <created>Thu, 10 Nov 2011 11:20:25 +0000</created>
                <updated>Thu, 10 Nov 2011 11:20:25 +0000</updated>
                                    <version>2.1.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-175] Table comments in Doctrine\DBAL\Schema\Table Object</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-175</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Should be useful discover the table comments from database schema.&lt;/p&gt;

&lt;p&gt;This feature is already available for column comments, but not for table comments&lt;/p&gt;</description>
                <environment></environment>
            <key id="13059">DBAL-175</key>
            <summary>Table comments in Doctrine\DBAL\Schema\Table Object</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="goetas">Asmir Mustafic</reporter>
                        <labels>
                    </labels>
                <created>Thu, 6 Oct 2011 10:16:13 +0000</created>
                <updated>Mon, 17 Oct 2011 07:03:10 +0000</updated>
                                                                    <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-167] Schema comparator doesn&apos;t work properly with columnDefinition&apos;s</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-167</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Schema comparator will mostly always return changed properties on columns for entities defined with &lt;em&gt;columnDefinition&lt;/em&gt; even they are identical in the DB. This is due to weak low-lever compatibility of &lt;em&gt;SchemaTool#getCreateSchemaSql()&lt;/em&gt; and &lt;em&gt;SchemaTool#getSchemaFromMetadata()&lt;/em&gt; &amp;#8211; the first one doesn&apos;t reconstruct &lt;em&gt;columnDefinition&lt;/em&gt;, and the other one never supports &lt;em&gt;&apos;fixed&apos;&lt;/em&gt;, &lt;em&gt;&apos;default&apos;&lt;/em&gt;, cannot determine, whether it is &lt;em&gt;boolean&lt;/em&gt; or &lt;em&gt;integer&lt;/em&gt; (ex. TINYINT in the DB), etc...&lt;/p&gt;

&lt;p&gt;All this results in extremely annoying unnecessary alter-table-change-columns surrounded by dropping and after that re-enabling constrains dependent on those columns.&lt;/p&gt;

&lt;p&gt;I mean stuff like this:&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 es_hotels DROP FOREIGN KEY FK_527F88EE584598A3F92F3E70;
ALTER TABLE es_hotels DROP FOREIGN KEY FK_527F88EE584598A37A3ABE5D;
ALTER TABLE es_hotels DROP FOREIGN KEY FK_527F88EE584598A3EE551564;
ALTER TABLE es_hotels CHANGE is_active is_active TINYINT(1) NOT NULL DEFAULT &apos;1&apos;, CHANGE checksum checksum CHAR(32) DEFAULT NULL;
ALTER TABLE es_hotels ADD CONSTRAINT FK_527F88EE584598A3F92F3E70 FOREIGN KEY (operator_id, country_id) REFERENCES es_countries(operator_id, id) ON DELETE CASCADE;
ALTER TABLE es_hotels ADD CONSTRAINT FK_527F88EE584598A37A3ABE5D FOREIGN KEY (operator_id, resort_id) REFERENCES es_resorts(operator_id, id) ON DELETE CASCADE;
ALTER TABLE es_hotels ADD CONSTRAINT FK_527F88EE584598A3EE551564 FOREIGN KEY (operator_id, subresort_id) REFERENCES es_subresorts(operator_id, id) ON DELETE CASCADE;
...
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;The simple solution would be to fix schema comparator not to signal any changes on columns with &lt;em&gt;columnDefinition&lt;/em&gt; properties. &lt;br/&gt;
But would be much and much better to add some code to all &lt;em&gt;*SchemaManager#getPortableTableColumnDefinition&lt;/em&gt; so they would reconstuct &lt;em&gt;columnDefinition&lt;/em&gt; and they would be matched in the schema comparator. &lt;/p&gt;

&lt;p&gt;I can do this &lt;img class=&quot;emoticon&quot; src=&quot;http://doctrine-project.org/jira/images/icons/emoticons/wink.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13023">DBAL-167</key>
            <summary>Schema comparator doesn&apos;t work properly with columnDefinition&apos;s</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="strygin">Dmitry Strygin</reporter>
                        <labels>
                    </labels>
                <created>Sat, 17 Sep 2011 23:38:42 +0000</created>
                <updated>Mon, 16 Jul 2012 06:57:07 +0000</updated>
                                    <version>2.0.8</version>
                <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                                                <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>2</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="16636" author="roderick" created="Sun, 16 Oct 2011 13:58:19 +0000"  >&lt;p&gt;I&apos;m having the same issue on my production webserver, but not on the development webserver. I find that odd. It tries to drop all foreign keys and create them again, although without the CHANGE statement you are referring to, Dmitry.&lt;/p&gt;</comment>
                    <comment id="17206" author="beberlei" created="Mon, 9 Jan 2012 14:33:26 +0000"  >&lt;p&gt;This maybe fixable by making a hash out of the column definition and saving it into a database comment.&lt;/p&gt;

&lt;p&gt;The Foreign Key problem maybe because of an old MySQL version 5.0.x&lt;/p&gt;</comment>
                    <comment id="18310" author="joec4i" created="Mon, 16 Jul 2012 06:57:07 +0000"  >&lt;p&gt;@beberlei, sounds good to me. any plan of implementing this? &lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-150] noSQL Shema Management</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-150</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a few ideas to improve DBAL and ORM management for php:&lt;br/&gt;
1. Reading if needed ORM schemas definitions from YAML(existing plugin)&lt;br/&gt;
2. Then migration it into the one of NoSQL databases(such as MongoDB or Memcache/MemcacheDB)&lt;br/&gt;
3. Creating transactional temporary-changes data layer in NoSQL for a current-changes due the webapp launch and running for each run&lt;br/&gt;
4. Periodically migrations of a current changes with migration script into RDB(for example by cron)&lt;/p&gt;

&lt;p&gt;So we get:&lt;br/&gt;
Fast automatic shemas management(Symphony users - I say you &quot;haha&quot; because you have to do some unuseful things like &quot;doctrine:build-schema&quot; etc)&lt;br/&gt;
All advantages of RDB (like JOINS) in a data extraction&lt;br/&gt;
Full-independence in data changing due to webapp launch(and no transactions are needed) in the current NoSQL data-layer&lt;br/&gt;
Low load to the server because after extration we have a lazy return data into the RDB&lt;br/&gt;
In feature a simple caching any fast-changed data into NoSQL&lt;/p&gt;

&lt;p&gt;What do you thinking about it?&lt;/p&gt;</description>
                <environment>all</environment>
            <key id="12940">DBAL-150</key>
            <summary>noSQL Shema Management</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="arks">Alexey Shatunov</reporter>
                        <labels>
                    </labels>
                <created>Sun, 21 Aug 2011 10:03:45 +0000</created>
                <updated>Sun, 21 Aug 2011 10:03:45 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-372] Add SQL parser</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-372</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It is useful for create sql highlighter. See &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/pull/117&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/pull/117&lt;/a&gt; or &lt;a href=&quot;https://github.com/doctrine/DoctrineBundle/issues/107&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/DoctrineBundle/issues/107&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14168">DBAL-372</key>
            <summary>Add SQL parser</summary>
                <type id="2" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hason">Martin Haso&#328;</reporter>
                        <labels>
                    </labels>
                <created>Thu, 25 Oct 2012 12:52:32 +0000</created>
                <updated>Thu, 25 Oct 2012 12:52:51 +0000</updated>
                                                                            <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-319] Doctrine\DBAL\Types\Type</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-319</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The API could be improved in the next major release:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Type::add() instead of addType()&lt;/li&gt;
	&lt;li&gt;Type::isRegistered() instead of hasType() (has sounds weird)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Etc.. I think the &apos;type&apos; in the methods is redundant since Type is already the object I am dealing with.&lt;/p&gt;

&lt;p&gt;I&apos;d also like a remove() method to unregister a type at runtime. Would make testing a little easier and I don&apos;t have to check with hasType() etc..&lt;/p&gt;</description>
                <environment></environment>
            <key id="13960">DBAL-319</key>
            <summary>Doctrine\DBAL\Types\Type</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 18:03:54 +0000</created>
                <updated>Sun, 12 Aug 2012 18:34:28 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18485" author="ocramius" created="Sun, 12 Aug 2012 18:11:07 +0000"  >&lt;p&gt;I don&apos;t think those namings are really important.&lt;br/&gt;
There&apos;s one major change to do, which is to somehow get rid of the staticness of the `Doctrine\DBAL\Types\Type` class, and it is not a simple task.&lt;br/&gt;
It would also be interesting to set the type objects manually, such as a database `password` type that does encryption/decryption based on a given service. That cannot be done without staticness right now, which renders two different connections requiring the same functionality but with different parameters very difficult.&lt;/p&gt;</comment>
                    <comment id="18486" author="till" created="Sun, 12 Aug 2012 18:34:28 +0000"  >&lt;p&gt;I agree on the static. But I&apos;d also like the API to be cleaned up and the remove method.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-318] getSQLDeclaration</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-318</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/Type.php#L119-L125&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/master/lib/Doctrine/DBAL/Types/Type.php#L119-L125&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Should define a @return type. Otherwise you have to step through other types to figure this out.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13959">DBAL-318</key>
            <summary>getSQLDeclaration</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="3" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="till">Till</reporter>
                        <labels>
                    </labels>
                <created>Sun, 12 Aug 2012 18:01:26 +0000</created>
                <updated>Sun, 19 Aug 2012 22:36:37 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18529" author="stof" created="Sun, 19 Aug 2012 22:19:48 +0000"  >&lt;p&gt;Already fixed in master&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-209] fetchAll should include $types array for executeQuery</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-209</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;The fetchAll function should include a $types parameter since it is utilizing executeQuery.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13385">DBAL-209</key>
            <summary>fetchAll should include $types array for executeQuery</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="tekmosis">Jamie Taniguchi</reporter>
                        <labels>
                    </labels>
                <created>Wed, 25 Jan 2012 01:06:41 +0000</created>
                <updated>Sat, 29 Dec 2012 17:31:21 +0000</updated>
                                    <version>2.2.0-RC3</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19193" author="nemek_zg" created="Sat, 29 Dec 2012 17:31:21 +0000"  >&lt;p&gt;A proposed fix is available with the following pull request: &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-180] Documentation states that Doctrine &apos;decimal&apos; (DecimalType) is mapped to PHP &apos;double&apos;, however, string is returned</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-180</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;At &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.1/en/reference/basic-mapping.html#doctrine-mapping-types&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/docs/orm/2.1/en/reference/basic-mapping.html#doctrine-mapping-types&lt;/a&gt;, it is stated that:&lt;/p&gt;

&lt;p&gt;&quot;decimal: Type that maps an SQL DECIMAL to a PHP double.&quot;&lt;/p&gt;

&lt;p&gt;However, in the commit history, we can see that the casting to a float is removed: &lt;a href=&quot;https://github.com/doctrine/dbal/commits/master/lib/Doctrine/DBAL/Types/DecimalType.php&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commits/master/lib/Doctrine/DBAL/Types/DecimalType.php&lt;/a&gt;. Casting to a double is not possible in PHP?This seems to result in a float as well, that is probably why it was removed.&lt;/p&gt;

&lt;p&gt;I found this out when using PHP&apos;s &apos;is_double()&apos; function (alias of is_float()) to check whether a decimal property was set or not. &lt;/p&gt;

&lt;p&gt;Suggestion is to either:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;cast to a double (which seems not possible)&lt;/li&gt;
	&lt;li&gt;cast to a float (why was this removed?)&lt;/li&gt;
	&lt;li&gt;do nothing to the code, update documentation that string is returned.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;In my check function I guess I will use the is_numeric() function. &lt;/p&gt;</description>
                <environment></environment>
            <key id="13171">DBAL-180</key>
            <summary>Documentation states that Doctrine &apos;decimal&apos; (DecimalType) is mapped to PHP &apos;double&apos;, however, string is returned</summary>
                <type id="6" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="holtkamp">Menno Holtkamp</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Nov 2011 15:01:32 +0000</created>
                <updated>Thu, 20 Dec 2012 00:31:46 +0000</updated>
                                    <version>2.1.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17623" author="roelharbers" created="Mon, 19 Mar 2012 16:10:01 +0000"  >&lt;p&gt;I would strongly suggest to leave the behaviour as-is, and fix the documentation, because of all the trouble associated with floating point and rounding. People use the DECIMAL type to prevent those issues, so having the ORM convert it to floating point again would be pretty bad.&lt;/p&gt;</comment>
                    <comment id="17887" author="pmcdougl" created="Thu, 26 Apr 2012 19:31:35 +0000"  >&lt;p&gt;I have submitted a pull request on this issue on github. Hopefully the doc will be updated soon so other people don&apos;t expect the wrong behavior!&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/orm-documentation/pull/93&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/orm-documentation/pull/93&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Mods, this issue can probably be closed.&lt;/p&gt;</comment>
                    <comment id="17981" author="deatheriam" created="Thu, 24 May 2012 19:18:16 +0000"  >&lt;p&gt;Leaving decimal values as strings creates another issue with unnecessary entity updates because old and new same values have different types: old value is always the string type, the new one - decimal. If an old value is &apos;10.00&apos; as a string and the new value is 10 decimal than Doctrine will issue the UPDATE statement for that entity. This is plainly wrong IMHO.&lt;/p&gt;</comment>
                    <comment id="19158" author="verkestk" created="Thu, 20 Dec 2012 00:31:46 +0000"  >&lt;p&gt;There may be other issues around comparison.  I&apos;d rather be comparing numeric types than strings when comparing &quot;decimal&quot; values.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-297] PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-297</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;In OCI8Statement, using PDO::FETCH_NUM does not work because the fetch style mapping is overwritten by PDO::PARAM_LOB since the two has the same value (3);&lt;/p&gt;

&lt;p&gt;protected static $fetchModeMap = array(&lt;br/&gt;
        PDO::FETCH_BOTH =&amp;gt; OCI_BOTH,&lt;br/&gt;
        PDO::FETCH_ASSOC =&amp;gt; OCI_ASSOC,&lt;br/&gt;
        PDO::FETCH_NUM =&amp;gt; OCI_NUM,&lt;br/&gt;
        PDO::PARAM_LOB =&amp;gt; OCI_B_BLOB,&lt;br/&gt;
        PDO::FETCH_COLUMN =&amp;gt; OCI_NUM,&lt;br/&gt;
);&lt;/p&gt;

&lt;p&gt;so PDO::FETCH_NUM is mapped to OCI_B_BLOB&lt;/p&gt;</description>
                <environment>N/A</environment>
            <key id="13820">DBAL-297</key>
            <summary>PDO::PARAM_LOB (value=3) overlaps with PDO::FETCH_NUM (value=3) in OCI8Statement::$fetchModeMap</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="char101">Charles Gunawan</reporter>
                        <labels>
                    </labels>
                <created>Thu, 5 Jul 2012 08:13:31 +0000</created>
                <updated>Thu, 5 Jul 2012 08:13:31 +0000</updated>
                                                                    <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-293] mysql platform can not choose text type column</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-293</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;getVarcharMaxLength() in DBAL/Platforms/MySqlPlatform.php returns 65535;&lt;br/&gt;
So, it never choose &quot;text&quot;, choose &quot;mediumtext&quot;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13790">DBAL-293</key>
            <summary>mysql platform can not choose text type column</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="3" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/inprogress.png">In Progress</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="shirokappa">Kiichi Kajiura</reporter>
                        <labels>
                    </labels>
                <created>Wed, 20 Jun 2012 14:40:48 +0000</created>
                <updated>Sat, 8 Sep 2012 19:51:48 +0000</updated>
                                    <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18211" author="beberlei" created="Thu, 5 Jul 2012 21:12:32 +0000"  >&lt;p&gt;How do you call the schema/platform code?&lt;/p&gt;

&lt;p&gt;The code is correct, i think you are using it wrong.&lt;/p&gt;</comment>
                    <comment id="18336" author="shirokappa" created="Thu, 19 Jul 2012 03:54:18 +0000"  >&lt;p&gt;I don&apos;t use it directly.&lt;br/&gt;
I use it in my entity class file with annotations.&lt;br/&gt;
e.g. &lt;br/&gt;
    @Mapping\Column(type=&quot;text&quot;)&lt;br/&gt;
    @Mapping\Column(type=&quot;text&quot;, length=65535)&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-292] Multiple use of named parameter doesn&apos;t work</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-292</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In the example in the documentation &lt;a href=&quot;http://doctrine-dbal.readthedocs.org/en/2.0.x/reference/data-retrieval-and-manipulation.html#dynamic-parameters-and-prepared-statements&quot; class=&quot;external-link&quot;&gt;http://doctrine-dbal.readthedocs.org/en/2.0.x/reference/data-retrieval-and-manipulation.html#dynamic-parameters-and-prepared-statements&lt;/a&gt;  there is the following example:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;$sql = &quot;SELECT * FROM users WHERE name = :name OR username = :name&quot;;&lt;br/&gt;
$stmt = $conn-&amp;gt;prepare($sql);&lt;br/&gt;
$stmt-&amp;gt;bindValue(&quot;name&quot;, $name);&lt;br/&gt;
$stmt-&amp;gt;execute();&lt;/p&gt;&lt;/blockquote&gt;
&lt;p&gt;When I try this example using pdo_sqlsrv I get the following error: &lt;br/&gt;
PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;07002&amp;#93;&lt;/span&gt;: &lt;span class=&quot;error&quot;&gt;&amp;#91;Microsoft&amp;#93;&lt;/span&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;SQL Server Native Client 11.0&amp;#93;&lt;/span&gt;COUNT field incorrect or syntax error&lt;/p&gt;

&lt;p&gt;When I use instead the parameters name1 and name2 the query works as expected.&lt;/p&gt;</description>
                <environment>IIS 7.5, MS-SQL-Server 2005, PHP 5.4.0</environment>
            <key id="13778">DBAL-292</key>
            <summary>Multiple use of named parameter doesn&apos;t work</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="10000" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/needinfo.png">Awaiting Feedback</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jue">J&#252;rgen</reporter>
                        <labels>
                    </labels>
                <created>Tue, 12 Jun 2012 18:31:19 +0000</created>
                <updated>Wed, 23 Jan 2013 22:56:54 +0000</updated>
                                    <version>2.2.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18223" author="asm89" created="Sat, 7 Jul 2012 14:44:39 +0000"  >&lt;p&gt;Are you sure you were using the 2.2.2 version of the ORM? Can you try to reproduce this with the latest master?&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

&lt;p&gt;This error was introduced in commit cb3ec49cb4401bd1c8be6ba9671f651802586eaf&lt;/p&gt;</description>
                <environment>Debian Linux 6.0, PHP 5.3.3, MySQL 5.1.63</environment>
            <key id="14359">DBAL-411</key>
            <summary>Schema updater breaks when using backticks in tablenames.</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="endaco">Endaco</reporter>
                        <labels>
                        <label>schematool</label>
                    </labels>
                <created>Tue, 8 Jan 2013 11:24:46 +0000</created>
                <updated>Tue, 8 Jan 2013 11:24:46 +0000</updated>
                                    <version>2.3.2</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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

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

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

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

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

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

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

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

&lt;p&gt;I&apos;m happy to provide a PR on GitHub if you want.&lt;/p&gt;</description>
                <environment>Postgresql 9.1</environment>
            <key id="14352">DBAL-406</key>
            <summary>PostgreSqlSchemaManager::tablesExist() misses schema-qualified table names if they exist in the first schema on the search path</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rhunwicks">Roger Hunwicks</reporter>
                        <labels>
                        <label>postgresql</label>
                    </labels>
                <created>Mon, 7 Jan 2013 08:33:41 +0000</created>
                <updated>Mon, 7 Jan 2013 08:33:41 +0000</updated>
                                    <version>2.3.1</version>
                                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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


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


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

&lt;p&gt;and says this:&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;  An exception occurred while executing &apos;ALTER TABLE whos_online DROP INDEX idx_session_id_zen, ADD UNIQUE INDEX primary (session_id  );                                                     &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to  &lt;br/&gt;
   your MySQL server version for the right syntax to use near &apos;primary (session_id)&apos; at line 1  &lt;/p&gt;&lt;/blockquote&gt; </description>
                <environment></environment>
            <key id="14327">DBAL-400</key>
            <summary>can&apos;t add primary key to mysql table after the table is created</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="jrobeson">John Robeson</reporter>
                        <labels>
                    </labels>
                <created>Thu, 20 Dec 2012 06:59:04 +0000</created>
                <updated>Thu, 20 Dec 2012 07:08:06 +0000</updated>
                                                                    <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-7] Add support for char fields in the ORM layer</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-7</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;It&apos;s not possible to use char fields in the ORM layer.&lt;/p&gt;

&lt;p&gt;It should be possible to use something like:&lt;/p&gt;

&lt;p&gt;@Column(type=&quot;char&quot;) or ...&lt;br/&gt;
@Column(type=&quot;string&quot;, fixed=true) or ...&lt;br/&gt;
@Column(type=&quot;fixedstring&quot;)&lt;/p&gt;</description>
                <environment></environment>
            <key id="10767">DBAL-7</key>
            <summary>Add support for char fields in the ORM layer</summary>
                <type id="4" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="romanb">Roman S. Borschel</assignee>
                                <reporter username="darkangel">Glen Ainscow</reporter>
                        <labels>
                    </labels>
                <created>Sun, 24 Jan 2010 10:45:06 +0000</created>
                <updated>Sat, 17 Sep 2011 21:57:10 +0000</updated>
                                    <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                                                <component>Drivers</component>
                <component>Platforms</component>
                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="11454" author="romanb" created="Sun, 24 Jan 2010 11:04:25 +0000"  >&lt;p&gt;I dont think this is worth including in the main distribution. A char does not save much compared to a varchar (1 Byte?) and you already have 2 options to make a char:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;create your own custom type (i.e. FixedString)&lt;/li&gt;
	&lt;li&gt;Use @Column(..., columnDefinition=&quot;CHAR(2)&quot;)&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;IMHO, just use a string type with the length you want: @Column(type=&quot;string&quot;, length=2). That becomes a varchar with length 2.&lt;/p&gt;</comment>
                    <comment id="11455" author="darkangel" created="Sun, 24 Jan 2010 12:59:24 +0000"  >&lt;p&gt;Ya, it is only 1 extra byte. I&apos;m not sure what to do, I like things as optimized as possible, but I guess I could just use columnDefinition if necessary.&lt;/p&gt;</comment>
                    <comment id="11456" author="darkangel" created="Sun, 24 Jan 2010 13:06:21 +0000"  >&lt;p&gt;Actually, I don&apos;t really see any reason &lt;b&gt;not&lt;/b&gt; to include the char type.&lt;/p&gt;</comment>
                    <comment id="11457" author="romanb" created="Sun, 24 Jan 2010 13:40:46 +0000"  >&lt;p&gt;How about code bloat? &lt;img class=&quot;emoticon&quot; src=&quot;http://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="11460" author="darkangel" created="Sun, 24 Jan 2010 16:07:46 +0000"  >&lt;p&gt;How many LoC?&lt;/p&gt;</comment>
                    <comment id="11463" author="guilhermeblanco" created="Mon, 25 Jan 2010 13:43:31 +0000"  >&lt;p&gt;@darkangel Around 40. And lots of conditionals, which decreases efficiency of algorithm.&lt;/p&gt;

&lt;p&gt;I vote for FixedString DBAL DataType.&lt;/p&gt;</comment>
                    <comment id="11466" author="romanb" created="Mon, 25 Jan 2010 13:54:45 +0000"  >&lt;p&gt;We will not put every special data type someone comes up with in the core library. If we go this route, at the end we have 100+ data types (100+ classes plus a bloated type map) in the core library.&lt;/p&gt;

&lt;p&gt;There are at least 2 decent options of making a char already if you care about byte counting (see above).&lt;/p&gt;

&lt;p&gt;&quot;Why not?&quot; is not the question to ask for when it comes to new features. If it were, we would include a whole lot of stuff that is useless for 99% of the users. There must be strong arguments for &quot;Why?&quot; and there are none.&lt;/p&gt;

&lt;p&gt;If we get 50+ votes on this issue we can talk again.&lt;/p&gt;
</comment>
                    <comment id="11470" author="darkangel" created="Mon, 25 Jan 2010 14:27:18 +0000"  >&lt;p&gt;Of course not. I didn&apos;t know that char was a special data type (especially since it&apos;s supported in DC1.2).&lt;/p&gt;

&lt;p&gt;I will use @columnDefinition.&lt;/p&gt;

&lt;p&gt;You may close this issue.&lt;/p&gt;</comment>
                    <comment id="11474" author="romanb" created="Mon, 25 Jan 2010 14:37:30 +0000"  >&lt;p&gt;No need to become defensive. There is still the chance that demand for this particular type gets very high and that can change things.&lt;/p&gt;

&lt;p&gt;Thats why this stays open. Otherwise the next guy would probably just create a duplicate ticket (not sure whether non-owners can reopen other tickets).&lt;/p&gt;</comment>
                    <comment id="11476" author="beberlei" created="Mon, 25 Jan 2010 15:21:24 +0000"  >&lt;p&gt;@Glen&lt;/p&gt;

&lt;p&gt;The problem with Doctrine 1 and having lots of different data-types is that of maintainability. You have to ensure that all the types work on all supported platforms with each and every version. The more datatypes we support by default the more complex will it be for the Doctrine 2 Core to ensure compability and maintainability in this regard.&lt;/p&gt;

&lt;p&gt;For each new platform that we will support all datatypes have to be supported for example, something that might even become impossible for some databases.&lt;/p&gt;

&lt;p&gt;Adding a datatype from the user perspective is rather simple though, it has to be tested once and is only about 20-40 LOC. I bet you 100 bucks that soon there will be code-snippets out there on all the different database specific types as a doctrine 2 implemention.&lt;/p&gt;</comment>
                    <comment id="11479" author="darkangel" created="Mon, 25 Jan 2010 16:37:57 +0000"  >&lt;p&gt;@Roman&lt;br/&gt;
Not being defensive, I have accepted/respected your decision. &lt;img class=&quot;emoticon&quot; src=&quot;http://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;@Benamin&lt;br/&gt;
I did think about cross-database compatibility. As far as I know, char is supported by the vast majority (or at least easily simulated). But I understand.&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;</comment>
                    <comment id="16490" author="strygin" created="Sat, 17 Sep 2011 21:56:28 +0000"  >&lt;p&gt;Sorry for party rocking but i think that &lt;em&gt;&apos;fixed&apos;&lt;/em&gt; annotation should be enabled in ORM column definitions. &lt;br/&gt;
In this case @Column(type=&quot;string&quot;, length=4, fixed=true) would result in &quot;CHAR(4)&quot; for MySQL, Oracle and Postgres, Sqlite, and DB2, &quot;NCHAR(4)&quot; for MQSQL. etc... It is much more elegant than that &lt;em&gt;columnDefinition&lt;/em&gt;.&lt;br/&gt;
It is already supported by DBAL as well as &lt;em&gt;&apos;default&apos;&lt;/em&gt; heartlessly removed (&lt;a href=&quot;http://doctrine-project.org/jira/browse/DDC-100&quot; title=&quot;Default values are not escaped&quot;&gt;&lt;del&gt;DDC-100&lt;/del&gt;&lt;/a&gt;) from annotation driver due to bizzare reluctance to deal with proper escaping of values.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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


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

&lt;p&gt;The answer is to remove &quot;auto increment&quot; attribut of primary key column juste before try to drop the primary key itself.&lt;/p&gt;</description>
                <environment>Linux (ubuntu), PHP 5.3.10, MySQL 5.5.29, Symfony2 </environment>
            <key id="14693">DBAL-464</key>
            <summary>MySQL fails when try to drop a primary index with Auto Increment</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="darkelfe">Julien Rosset</reporter>
                        <labels>
                    </labels>
                <created>Thu, 14 Mar 2013 14:52:14 +0000</created>
                <updated>Thu, 14 Mar 2013 14:52:14 +0000</updated>
                                    <version>2.3.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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

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

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

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

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

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

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


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

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

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

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

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

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

&lt;p&gt;I also get a migration that has SQL with an auto-generated index name.&lt;/p&gt;</comment>
                    <comment id="19449" author="diegoholiveira" created="Sat, 2 Feb 2013 16:28:56 +0000"  >&lt;p&gt;Yes I did specify a name, as you can see:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;uniqueConstraints:
    UNIQUE_STATE_SLUG:
        columns: slug
indexes:
    IDX_USER_ADDRESS:
        columns: address_id
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


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

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

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

<item>
            <title>[DBAL-352] Running doctrine:schema:update throws an exception the first time, succeeds the second time.</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-352</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Shell output from my symfony project:&lt;br/&gt;
 $ app/console doctrine:schema:update --force&lt;br/&gt;
 Updating database schema...&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id)&apos;:&lt;/p&gt;

&lt;p&gt;  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;&lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt; doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;

&lt;p&gt; $ app/console doctrine:schema:update --force&lt;br/&gt;
 Updating database schema...&lt;br/&gt;
 Database schema updated successfully! &quot;7&quot; queries were executed&lt;br/&gt;
 $&lt;/p&gt;</description>
                <environment></environment>
            <key id="14065">DBAL-352</key>
            <summary>Running doctrine:schema:update throws an exception the first time, succeeds the second time.</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="hexmode">Mark A. Hershberger</reporter>
                        <labels>
                    </labels>
                <created>Tue, 25 Sep 2012 13:27:26 +0000</created>
                <updated>Tue, 25 Sep 2012 14:35:32 +0000</updated>
                                                                    <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>3</watches>
                        <comments>
                    <comment id="18724" author="stof" created="Tue, 25 Sep 2012 13:52:11 +0000"  >&lt;p&gt;Please run the command with the &lt;tt&gt;&amp;#45;&amp;#45;dump&amp;#45;sql&lt;/tt&gt; option instead of &lt;tt&gt;&amp;#45;&amp;#45;force&lt;/tt&gt; each time before launching it for real, to be able to see which SQL queries are executed in both cases&lt;/p&gt;</comment>
                    <comment id="18725" author="hexmode" created="Tue, 25 Sep 2012 14:07:52 +0000"  >&lt;p&gt;I&apos;m not sure how to roll back the changes so that I can reproduce this.&lt;/p&gt;</comment>
                    <comment id="18726" author="hexmode" created="Tue, 25 Sep 2012 14:18:47 +0000"  >&lt;p&gt;Got it after a little poking around with git.  Rolling back to a commit in my code before the one given here didn&apos;t didn&apos;t show this reproduce this.&lt;/p&gt;


&lt;p&gt;$ php app/console doctrine:schema:create        &lt;br/&gt;
ATTENTION: This operation should not be executed in a production environment.&lt;/p&gt;

&lt;p&gt;Creating database schema...&lt;br/&gt;
Database schema created successfully!&lt;/p&gt;

&lt;p&gt;$ git checkout d686a39fb664dca540167e1b3e96ea0ffd67bc00&lt;br/&gt;
Previous HEAD position was 0510a59... * First round of Customer-to-Accounts (1:n) mapping done * Start of Customer-to-Tn and Tn-to-Account mapping&lt;br/&gt;
HEAD is now at d686a39... * A little debugging for Entity::Customer::hasEntitlement * Add FK for Customer to Tn&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql    &lt;br/&gt;
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE Tn DROP FOREIGN KEY FK_3504C6F09B6B5FBA;&lt;br/&gt;
DROP INDEX IDX_3504C6F09B6B5FBA ON Tn;&lt;br/&gt;
ALTER TABLE Tn ADD tnType VARCHAR(10) NOT NULL, CHANGE account_id customer INT DEFAULT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id);&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F081398E09 FOREIGN KEY (customer) REFERENCES Customer (id);&lt;br/&gt;
CREATE INDEX IDX_3504C6F07D3656A4 ON Tn (account);&lt;br/&gt;
CREATE INDEX IDX_3504C6F081398E09 ON Tn (customer);&lt;br/&gt;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL&lt;br/&gt;
mah@debian:~/comcast$ php app/console doctrine:schema:update --force       &lt;br/&gt;
Updating database schema...&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;Doctrine\DBAL\DBALException&amp;#93;&lt;/span&gt;          &lt;br/&gt;
  An exception occurred while executing &apos;ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account)&lt;br/&gt;
  REFERENCES Account (id)&apos;:&lt;/p&gt;

&lt;p&gt;  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table&lt;/p&gt;

&lt;p&gt;  &lt;span class=&quot;error&quot;&gt;&amp;#91;PDOException&amp;#93;&lt;/span&gt;                                                                                       &lt;br/&gt;
  SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42000&amp;#93;&lt;/span&gt;: Syntax error or access violation: 1072 Key column &apos;account&apos; doesn&apos;t exist in table  &lt;/p&gt;

&lt;p&gt;doctrine:schema:update &lt;span class=&quot;error&quot;&gt;&amp;#91;--complete&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--dump-sql&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--force&amp;#93;&lt;/span&gt; [--em&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;]&lt;/p&gt;


&lt;p&gt;$ php app/console doctrine:schema:update --dump-sql&lt;br/&gt;
ALTER TABLE Account CHANGE guid guid VARCHAR(255) NOT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD account INT DEFAULT NULL;&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F07D3656A4 FOREIGN KEY (account) REFERENCES Account (id);&lt;br/&gt;
ALTER TABLE Tn ADD CONSTRAINT FK_3504C6F081398E09 FOREIGN KEY (customer) REFERENCES Customer (id);&lt;br/&gt;
CREATE INDEX IDX_3504C6F07D3656A4 ON Tn (account);&lt;br/&gt;
CREATE INDEX IDX_3504C6F081398E09 ON Tn (customer);&lt;br/&gt;
ALTER TABLE Customer CHANGE guid guid VARCHAR(255) NOT NULL, CHANGE authGuid authGuid VARCHAR(255) NOT NULL&lt;/p&gt;

&lt;p&gt;$ php app/console doctrine:schema:update --force   &lt;br/&gt;
Updating database schema...&lt;br/&gt;
Database schema updated successfully! &quot;7&quot; queries were executed&lt;/p&gt;

&lt;p&gt;$ &lt;/p&gt;</comment>
                    <comment id="18728" author="stof" created="Tue, 25 Sep 2012 14:35:32 +0000"  >&lt;p&gt;hmm, the first update seems to miss the addition of the account field, which is done the second time through &lt;tt&gt;ALTER TABLE Tn ADD account INT DEFAULT NULL;&lt;/tt&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-200] Connection::update()</title>
                <link>http://doctrine-project.org/jira/browse/DBAL-200</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;missing @param array $data in docblock&lt;/p&gt;</description>
                <environment></environment>
            <key id="13348">DBAL-200</key>
            <summary>Connection::update()</summary>
                <type id="6" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="5" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/trivial.png">Trivial</priority>
                    <status id="1" iconUrl="http://doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="snifferoxs">Jonas Liljestrand</reporter>
                        <labels>
                        <label>documentation</label>
                    </labels>
                <created>Tue, 10 Jan 2012 14:56:30 +0000</created>
                <updated>Tue, 11 Dec 2012 16:46:40 +0000</updated>
                                    <version>2.3.2</version>
                                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19122" author="posulliv" created="Tue, 11 Dec 2012 16:46:40 +0000"  >&lt;p&gt;Resolved by pull request 236:&lt;/p&gt;

&lt;p&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>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>