<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 23:47:40 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/si/jira.issueviews:issue-xml/DBAL-84/DBAL-84.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://www.doctrine-project.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>5.2.7</version>
        <build-number>850</build-number>
        <build-date>21-02-2013</build-date>
    </build-info>

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