<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 23:59:28 UTC 2013

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary add field=key&field=summary to the URL of your request.
For example:
http://www.doctrine-project.org/jira/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=project+%3D+DBAL+AND+fixVersion+%3D+%222.0.4%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=project+%3D+DBAL+AND+fixVersion+%3D+%222.0.4%22+ORDER+BY+updated+DESC%2C+priority+DESC%2C+created+ASC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="5" total="5"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-120] MySql platform getAlterTableSQL does not quote existing column names</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-120</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When creating alter table SQL, the MySqlPlatform class does not quote names for columns of an existing table when building a CHANGE query.  This can cause SQL errors.&lt;/p&gt;

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

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


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

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

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

&lt;p&gt;Starting with 5.3.6, that was fixed.  So now if you pass the proper character set to PDO via driver options, sql injection is impossible while using the PDO::quote() api call.&lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeHeader panelHeader&quot; style=&quot;border-bottom-width: 1px;&quot;&gt;&lt;b&gt;PDO proof of concept&lt;/b&gt;&lt;/div&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;$dsn = &apos;mysql:dbname=INFORMATION_SCHEMA;host=127.0.0.1;charset=GBK;&apos;;
$pdo = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; PDO($dsn, $user, $pass);
$pdo-&amp;gt;exec(&apos;SET NAMES GBK&apos;);
$string = chr(0xbf) . chr(0x27) . &apos; OR 1 = 1; /*&apos;;
$sql = &quot;SELECT TABLE_NAME
            FROM INFORMATION_SCHEMA.TABLES
            WHERE TABLE_NAME LIKE &lt;span class=&quot;code-quote&quot;&gt;&quot;.$pdo-&amp;gt;quote($string).&quot;&lt;/span&gt; LIMIT 1;&quot;;
$stmt = $pdo-&amp;gt;query($sql);
var_dump($stmt-&amp;gt;rowCount());
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Expected Result: `int(0)`.&lt;br/&gt;
Actual Result: `int(1)`.&lt;/p&gt;

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

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

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

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

&lt;p&gt;The second issue is when I use the &apos;columnDefinition&apos; attribute with a custom type to declare an enum or set, for instance. Since this function does not actually check what the columnDefinition field is set to at all, it has no way to know if I have actually made a change to the list of values, or anything else about that columnDefinition. I have been reading that using the comments field might be another way to do this, but I am not yet clear on what the best practice really is here. I know that &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-42&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-42&lt;/a&gt; touches on this with regard to storing Array type metadata in the comments field. I need more direction on how this should work in custom field types.&lt;/p&gt;

&lt;p&gt;In addition, I am getting this strange set of diffs on the index for a ManyToMany association&apos;s join table:&lt;/p&gt;
&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;        $this-&amp;gt;addSql(&quot;CREATE INDEX IDX_44B8C6D89AF7860 ON firm_firm (firm_id)&quot;);
        $this-&amp;gt;addSql(&quot;DROP INDEX primary ON firm_firm&quot;);
        $this-&amp;gt;addSql(&quot;CREATE UNIQUE INDEX primary ON firm_firm (firm_id, firm_id)&quot;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

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

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

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

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

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

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

&lt;p&gt;Git patch attached.&lt;/p&gt;</description>
                <environment></environment>
            <key id="12473">DBAL-101</key>
            <summary>Undefined index &quot;length&quot; in SqliteSchemaManager</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="k-fish">Karsten Dambekalns</reporter>
                        <labels>
                    </labels>
                <created>Thu, 17 Mar 2011 05:01:55 +0000</created>
                <updated>Wed, 6 Apr 2011 15:19:05 +0000</updated>
                    <resolved>Wed, 6 Apr 2011 15:19:05 +0000</resolved>
                            <version>2.1</version>
                                <fixVersion>2.0.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15699" author="beberlei" created="Wed, 6 Apr 2011 15:19:05 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="10954" name="0002-BUGFIX-Fix-undefined-index-error-on-SqliteSchemaMana.patch" size="1310" author="k-fish" created="Thu, 17 Mar 2011 05:01:55 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-105] Schema Comparator produces invalid SQL</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-105</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Before: &lt;/p&gt;

&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @orm:Entity
 * @orm:Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;twitter_users&quot;&lt;/span&gt;)
 */
class TwitterUser &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; UserInterface
{
    &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ROLE_DEFAULT = &apos;ROLE_TWITTER_USER&apos;;

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

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

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

&lt;p&gt;After:&lt;/p&gt;
&lt;div class=&quot;code panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;codeContent panelContent&quot;&gt;
&lt;pre class=&quot;code-java&quot;&gt;/**
 * @orm:Entity
 * @orm:Table(name=&lt;span class=&quot;code-quote&quot;&gt;&quot;twitter_users&quot;&lt;/span&gt;)
 */
class TwitterUser &lt;span class=&quot;code-keyword&quot;&gt;implements&lt;/span&gt; UserInterface
{
    &lt;span class=&quot;code-keyword&quot;&gt;const&lt;/span&gt; ROLE_DEFAULT = &apos;ROLE_TWITTER_USER&apos;;

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

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

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

    /**
     * @orm:Column(type=&lt;span class=&quot;code-quote&quot;&gt;&quot;datetime&quot;&lt;/span&gt;, name=&lt;span class=&quot;code-quote&quot;&gt;&quot;last_logged_in_at&quot;&lt;/span&gt;, nullable=&lt;span class=&quot;code-keyword&quot;&gt;true&lt;/span&gt;)
     */
    &lt;span class=&quot;code-keyword&quot;&gt;private&lt;/span&gt; $lastLoggedInAt;
}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Bugs in the generated SQL:&lt;/p&gt;
&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;last_logged_in_at column is not added&lt;/li&gt;
	&lt;li&gt;displayName is dropped, and at the same time the column name &quot;displayName&quot; is changed to &quot;display_name&quot;&lt;/li&gt;
	&lt;li&gt;twitterId same as above&lt;/li&gt;
&lt;/ul&gt;
</description>
                <environment>Windows7, PHP 5.3.3</environment>
            <key id="12511">DBAL-105</key>
            <summary>Schema Comparator produces invalid SQL</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="johannes">Johannes Schmitt</reporter>
                        <labels>
                    </labels>
                <created>Tue, 29 Mar 2011 15:12:56 +0000</created>
                <updated>Wed, 6 Apr 2011 14:21:17 +0000</updated>
                    <resolved>Wed, 6 Apr 2011 14:21:17 +0000</resolved>
                            <version>2.0.2</version>
                                <fixVersion>2.0.4</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15695" author="beberlei" created="Wed, 6 Apr 2011 14:21:17 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>