<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Thu May 23 21:24:00 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-2113/DDC-2113.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-2113] SQLFilter incorrect results when WHERE clause contains OR expression</title>
                <link>http://doctrine-project.org/jira/browse/DDC-2113</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;When using an SQLFilter, if applied to a query that contains only OR expressions in the WHERE clause, the generated SQL is incorrect.&lt;/p&gt;


&lt;p&gt;Example:&lt;/p&gt;
&lt;ul&gt;
	&lt;li&gt;SQLFilter returns a constraint like &quot;{$tableAlias}.accountid={$accountId}&quot;&lt;/li&gt;
	&lt;li&gt;Query: &quot;SELECT u FROM User u WHERE u.fname=&apos;bob&apos; OR u.lname=&apos;bob&apos;&quot;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Resulting SQL:&lt;br/&gt;
&quot;SELECT u FROM User u WHERE u.fname=&apos;bob&apos; OR u.lname=&apos;bob&apos; AND u.accountid=2&quot;&lt;/p&gt;

&lt;p&gt;Expected:&lt;br/&gt;
&quot;SELECT u FROM User u WHERE (u.fname=&apos;bob&apos; OR u.lname=&apos;bob&apos;) AND u.accountid=2&quot;&lt;/p&gt;


&lt;p&gt;The problem is that the order of operations is wrong. I&apos;m getting users who aren&apos;t in account 2, making SQLFilter unreliable.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14183">DDC-2113</key>
            <summary>SQLFilter incorrect results when WHERE clause contains OR expression</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="vclayton">Vaughn Clayton</reporter>
                        <labels>
                    </labels>
                <created>Thu, 1 Nov 2012 21:25:52 +0000</created>
                <updated>Fri, 9 Nov 2012 20:57:58 +0000</updated>
                    <resolved>Mon, 5 Nov 2012 22:13:27 +0000</resolved>
                            <version>2.2.2</version>
                <version>2.3</version>
                <version>Git Master</version>
                                <fixVersion>2.3.1</fixVersion>
                                <component>ORM</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="18923" author="fabio.bat.silva" created="Mon, 5 Nov 2012 22:13:27 +0000"  >&lt;p&gt;Fixed : &lt;a href=&quot;https://github.com/doctrine/doctrine2/commit/129d6efd8585458fd4bde2a3eb9a5cac374f54fe&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/doctrine2/commit/129d6efd8585458fd4bde2a3eb9a5cac374f54fe&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>