<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Wed May 22 01:31:02 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-313/DBAL-313.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-313] When creating foreign key constraints, the AbstractPlatform class does not quote the referenced table.</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-313</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;I have a table that is using a reserved MySQL keyword (right) and it&apos;s quoted in all the generated SQL but not in the foreign key constraint.&lt;/p&gt;

&lt;p&gt;When I use &lt;em&gt;doctrine.php orm:schema-tool:create&lt;/em&gt; I get this SQL line:&lt;br/&gt;
ALTER TABLE website ADD CONSTRAINT FK_476F5DE7B196EE6E FOREIGN KEY (right_id) REFERENCES right (id)&lt;/p&gt;
</description>
                <environment></environment>
            <key id="13943">DBAL-313</key>
            <summary>When creating foreign key constraints, the AbstractPlatform class does not quote the referenced table.</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="majoyal">Marc-Andr&#233; Joyal</reporter>
                        <labels>
                    </labels>
                <created>Mon, 6 Aug 2012 19:29:43 +0000</created>
                <updated>Wed, 1 May 2013 18:41:40 +0000</updated>
                    <resolved>Wed, 1 May 2013 18:41:40 +0000</resolved>
                            <version>2.2.2</version>
                                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>6</watches>
                        <comments>
                    <comment id="18542" author="fabio.bat.silva" created="Sun, 26 Aug 2012 00:13:54 +0000"  >&lt;p&gt;Hi,&lt;/p&gt;

&lt;p&gt;Could you try it with doctrine 2.3 ?&lt;br/&gt;
There are lot of changes about quotes.&lt;br/&gt;
if it fails even with 2.3 changes please attach your entities.&lt;/p&gt;


&lt;p&gt;Thanks..&lt;/p&gt;</comment>
                    <comment id="18583" author="posulliv" created="Thu, 30 Aug 2012 00:04:59 +0000"  >&lt;p&gt;I verified this is fixed in trunk by creating a test. Worth creating pull request to add test case?&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 testQuotedForeignKeySQL()
{   
    $tableOld = &lt;span class=&quot;code-keyword&quot;&gt;new&lt;/span&gt; Table(&lt;span class=&quot;code-quote&quot;&gt;&quot;website&quot;&lt;/span&gt;);
    $tableOld-&amp;gt;addColumn(&apos;right_id&apos;, &apos;integer&apos;);
    $tableOld-&amp;gt;addUnnamedForeignKeyConstraint(&apos;right&apos;, array(&apos;right_id&apos;), array(&apos;id&apos;));

    $sqls = array();
    foreach ($tableOld-&amp;gt;getForeignKeys() AS $fk) {
        $sqls[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;platform-&amp;gt;getCreateForeignKeySQL($fk, $tableOld);
    }   

    $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;assertEquals(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE website ADD CONSTRAINT FK_476F5DE754976835 FOREIGN KEY (right_id) REFERENCES `right` (id)&quot;&lt;/span&gt;), $sqls);
}  
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="18585" author="stof" created="Thu, 30 Aug 2012 08:58:28 +0000"  >&lt;p&gt;Can you paste your mapping for your right entity ?&lt;/p&gt;</comment>
                    <comment id="19503" author="asm89" created="Sat, 9 Feb 2013 21:35:11 +0000"  >&lt;p&gt;Can you provide us with more feedback?&lt;/p&gt;</comment>
                    <comment id="20177" author="beberlei" created="Wed, 1 May 2013 18:41:40 +0000"  >&lt;p&gt;Seems fixed as per comment of Patrick.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>