<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 10:18:59 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=fixVersion+%3D+%222.0.2%22+AND+project+%3D+DBAL&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=fixVersion+%3D+%222.0.2%22+AND+project+%3D+DBAL</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="6" total="6"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-91] orm:convert-mapping SchemaException on Postgres reserved words</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-91</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;While execuiting &lt;/p&gt;

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

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

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

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

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

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

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

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


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

&lt;p&gt;orm:convert-mapping &lt;span class=&quot;error&quot;&gt;&amp;#91;--filter=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;--from-database&amp;#93;&lt;/span&gt; [-&lt;del&gt;extend&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;] [&lt;/del&gt;-num-spaces&lt;span class=&quot;error&quot;&gt;&amp;#91;=&amp;quot;...&amp;quot;&amp;#93;&lt;/span&gt;] &lt;span class=&quot;error&quot;&gt;&amp;#91;-h|--help&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-q|--quiet&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-v|--verbose&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-V|--version&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-a|--ansi&amp;#93;&lt;/span&gt; &lt;span class=&quot;error&quot;&gt;&amp;#91;-n|--no-interaction&amp;#93;&lt;/span&gt; command to-type dest-path&lt;/p&gt;
</comment>
                    <comment id="15284" author="beberlei" created="Sat, 12 Feb 2011 12:54:42 +0000"  >&lt;p&gt;I can&apos;t reproduce it &lt;img class=&quot;emoticon&quot; src=&quot;http://www.doctrine-project.org/jira/images/icons/emoticons/sad.gif&quot; height=&quot;20&quot; width=&quot;20&quot; align=&quot;absmiddle&quot; alt=&quot;&quot; border=&quot;0&quot;/&gt;&lt;/p&gt;

&lt;p&gt;Can you run the command with --verbose ? Additionally in lib/Doctrine/ORM/Tools/Console/Command/ConvertMappingCommand.php can you var_dump() $metadata after line 119?&lt;/p&gt;</comment>
                    <comment id="15285" author="beberlei" created="Sat, 12 Feb 2011 13:01:28 +0000"  >&lt;p&gt;Ok i could reproduce it now. Input is not a keyword for me though, type also not. Coudl reproduce it with &quot;table&quot;&lt;/p&gt;</comment>
                    <comment id="15286" author="beberlei" created="Sat, 12 Feb 2011 13:06:54 +0000"  >&lt;p&gt;Ok, this is a DBAL issue.&lt;/p&gt;</comment>
                    <comment id="15287" author="beberlei" created="Sat, 12 Feb 2011 14:39:41 +0000"  >&lt;p&gt;This is fixed and will be included in 2.0.2&lt;/p&gt;</comment>
                </comments>
                <issuelinks>
                        <issuelinktype id="10000">
                <name>Duplicate</name>
                                                <inwardlinks description="is duplicated by">
                            <issuelink>
            <issuekey id="12373">DBAL-88</issuekey>
        </issuelink>
                    </inwardlinks>
                            </issuelinktype>
                    </issuelinks>
                <attachments>
                    <attachment id="10935" name="test-creation.sql" size="248" author="emilw" created="Thu, 10 Feb 2011 05:24:52 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

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


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

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


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

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

<item>
            <title>[DBAL-87] Undefined variable printer in DBAL Import Command</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-87</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When running dbal:import, I receive the following error : &lt;/p&gt;

&lt;p&gt;Undefined variable: printer in /frameworks/doctrine-orm/Doctrine/DBAL/Tools/Console/Command/ImportCommand.php on line 113&lt;/p&gt;

&lt;p&gt;113 : $printer-&amp;gt;writeln(&apos;OK!&apos;);&lt;/p&gt;

&lt;p&gt;Other output is implemented using $output-&amp;gt;write();&lt;/p&gt;

</description>
                <environment>PHP Version =&amp;gt; 5.3.3-1ubuntu9.3&lt;br/&gt;
</environment>
            <key id="12365">DBAL-87</key>
            <summary>Undefined variable printer in DBAL Import Command</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rob.squires">Rob Squires</reporter>
                        <labels>
                    </labels>
                <created>Wed, 9 Feb 2011 09:19:20 +0000</created>
                <updated>Fri, 11 Feb 2011 16:44:52 +0000</updated>
                    <resolved>Fri, 11 Feb 2011 16:44:52 +0000</resolved>
                            <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="15274" author="beberlei" created="Fri, 11 Feb 2011 16:44:52 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-86] Documentation tells about setCustomTypes() but the method doesn&apos;t actually exist</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-86</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In &lt;a href=&quot;http://www.doctrine-project.org/docs/orm/2.0/en/reference/basic-mapping.html&quot; class=&quot;external-link&quot;&gt;basic mapping section&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Quote: &lt;/p&gt;

&lt;p&gt;&lt;cite&gt;When you have implemented the type you still need to let Doctrine know about it. This can be achieved through the Doctrine\DBAL\Configuration#setCustomTypes(array $types) method. Doctrine\ORM\Configuration is a subclass of Doctrine\DBAL\Configuration, so the methods are available on your ORM Configuration instance as well.&lt;/cite&gt;&lt;/p&gt;

&lt;p&gt;The method seems to have been removed on this commit &lt;a href=&quot;https://github.com/doctrine/dbal/blob/354ede1e04a8d99bbc1a58d2206d29ebf9ddab4e/lib/Doctrine/DBAL/Configuration.php&quot; class=&quot;external-link&quot;&gt;354ede&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="12357">DBAL-86</key>
            <summary>Documentation tells about setCustomTypes() but the method doesn&apos;t actually exist</summary>
                <type id="6" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/documentation.png">Documentation</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="bguery">Boris Gu&#233;ry</reporter>
                        <labels>
                    </labels>
                <created>Fri, 4 Feb 2011 11:39:08 +0000</created>
                <updated>Sun, 27 Feb 2011 03:45:21 +0000</updated>
                    <resolved>Sun, 27 Feb 2011 03:45:21 +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>
                                <fixVersion>2.0.2</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15233" author="beberlei" created="Mon, 7 Feb 2011 03:48:48 +0000"  >&lt;p&gt;Ah yes, it works like the code snippet right next to this paragraph:&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
&lt;span class=&quot;code-comment&quot;&gt;// in bootstrapping code
&lt;/span&gt;
&lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;
use Doctrine\DBAL\Types\Type;

&lt;span class=&quot;code-comment&quot;&gt;// ...
&lt;/span&gt;
&lt;span class=&quot;code-comment&quot;&gt;// Register my type
&lt;/span&gt;Type::addType(&apos;mytype&apos;, &apos;My\Project\Types\MyType&apos;);
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="15401" author="beberlei" created="Sun, 27 Feb 2011 03:45:21 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-85] Illegal quotes in SHOW FULL TABLES WHERE Table_type = &quot;BASE TABLE&quot;</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-85</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When trying to generate update SQL on MySQL running in ANSI SQL mode you get the error:&lt;br/&gt;
 SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;42S22&amp;#93;&lt;/span&gt;: Column not found: 1054 Unknown column &apos;BASE TABLE&apos; in &apos;where clause&apos;&lt;/p&gt;

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

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

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

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

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

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

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

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

&lt;p&gt;I had to look into actual table definition using mysql browser to find this issue because doctrine doesn&apos;t even warn about it. This could lead to some pretty serious bugs!&lt;/p&gt;</description>
                <environment></environment>
            <key id="12339">DBAL-84</key>
            <summary>Long string fields are being silently changed to 255 characters in the schema</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="extesy">Oleg Anashkin</reporter>
                        <labels>
                    </labels>
                <created>Mon, 31 Jan 2011 17:19:37 +0000</created>
                <updated>Sun, 20 Feb 2011 17:13:00 +0000</updated>
                    <resolved>Sun, 20 Feb 2011 17:13:00 +0000</resolved>
                            <version>2.0</version>
                <version>2.0.1</version>
                                <fixVersion>2.0.2</fixVersion>
                <fixVersion>2.1</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="15354" author="beberlei" created="Sun, 20 Feb 2011 17:13:00 +0000"  >&lt;p&gt;Fixed in master and 2.0.x&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>