<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 13:23:20 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/DC-1027/DC-1027.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>[DC-1027] CLONE -Foreign key creation fails with MySQL 5.1.54</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1027</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;Hi there,&lt;/p&gt;

&lt;p&gt;When executing symfony doctrine:build --all --and-load  on a machine using Mysql 5.0.44 I get the following error:&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: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near &apos;dimension(id)&apos; at line 1. Failing Query: &quot;ALTER TABLE kpi_dimension ADD CONSTRAINT kpi_dimension_dimension_id_dimension_id FOREIGN KEY (dimension_id) REFERENCES dimension(id)&quot;. &lt;/p&gt;

&lt;p&gt;The problem can be fixed by adding a space between the table name and the column name that is referenced. So instead of&lt;br/&gt;
&lt;tt&gt;REFERENCES dimension(id)&lt;/tt&gt;&lt;br/&gt;
it should be&lt;br/&gt;
&lt;tt&gt;REFERENCES dimension (id)&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Since it works fine on MySQL 5.1.37, I normally would file this under Mysql bug. But as the &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;syntax for a foreign key constraint in MySQL&lt;/a&gt; mentions this space it should be ok to simply add the space to the script creating the sql for the foreign key. I have not tried any other DBMS though.&lt;/p&gt;

&lt;p&gt;The patch for the file Export.php is attached.&lt;/p&gt;

&lt;p&gt;Best regards&lt;/p&gt;

&lt;p&gt;Claudia&lt;/p&gt;</description>
                <environment>gentoo, MySQL 5.0.44-log, Doctrine 1.2, symfony 1.4.4</environment>
            <key id="12924">DC-1027</key>
            <summary>CLONE -Foreign key creation fails with MySQL 5.1.54</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="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="6">Invalid</resolution>
                                <assignee username="jwage">Jonathan H. Wage</assignee>
                                <reporter username="frecon">Frej Connolly</reporter>
                        <labels>
                    </labels>
                <created>Tue, 16 Aug 2011 14:20:42 +0000</created>
                <updated>Tue, 16 Aug 2011 14:21:41 +0000</updated>
                    <resolved>Tue, 16 Aug 2011 14:21:41 +0000</resolved>
                            <version>1.2.0</version>
                                                <component>Import/Export</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>