<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 17:42: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://doctrine-project.org/jira/si/jira.issueviews:issue-xml/DDC-2123/DDC-2123.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Doctrine Project</title>
    <link>http://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>[DDC-2123] [GH-502]  Fix for invalid &apos;double-ON&apos; SQL generation with entity inheritance type JOINED.</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2123</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of gwis:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/502&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/502&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;In SqlWalker::walkJoin(), SqlWalker::walkRangeVariableDeclaration() can be&lt;br/&gt;
called which may produce an &apos;ON&apos; clause if the entity inheritance type is&lt;br/&gt;
JOINED. As walkJoin() may then produce another ON clause, this results in&lt;br/&gt;
invalid SQL (e.g. &apos;... ON foo = bar ON (baz = quux) ...&apos; when the inheritance&lt;br/&gt;
type is JOINED.&lt;/p&gt;

&lt;p&gt;This adds a test and a fix for the problem, by checking for an inheritance type&lt;br/&gt;
of JOINED in walkJoin() and using AND instead of ON in the appropriate place.&lt;/p&gt;

&lt;p&gt;It seems like this part of the code is begging to be refactored. This is my&lt;br/&gt;
first foray into Doctrine internals and can&apos;t see a way to do this without&lt;br/&gt;
stomping all over the rest of the code, but this section seems ripe for cleanup&lt;br/&gt;
by somebody who is familiar.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14194">DDC-2123</key>
            <summary>[GH-502]  Fix for invalid &apos;double-ON&apos; SQL generation with entity inheritance type JOINED.</summary>
                <type id="1" iconUrl="http://doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="3" iconUrl="http://doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="5" iconUrl="http://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="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Mon, 5 Nov 2012 09:41:16 +0000</created>
                <updated>Fri, 9 Nov 2012 21:25:07 +0000</updated>
                    <resolved>Tue, 6 Nov 2012 00:30:21 +0000</resolved>
                                            <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18929" author="beberlei" created="Tue, 6 Nov 2012 00:15:51 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-502&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/doctrine2/pull/502&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/pull/502&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="18937" author="fabio.bat.silva" created="Tue, 6 Nov 2012 00:30:21 +0000"  >&lt;p&gt;Merged : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/7a895209e3d9912bcc44fc8e8635dd48164a4749&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/7a895209e3d9912bcc44fc8e8635dd48164a4749&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>