<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Mon May 20 17:51:58 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/DDC-2234/DDC-2234.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>[DDC-2234] WHERE &lt;&lt;custom function&gt;&gt; IS NULL ... doesn&apos;t work</title>
                <link>http://www.doctrine-project.org/jira/browse/DDC-2234</link>
                <project id="10032" key="DDC">Doctrine 2 - ORM</project>
                        <description>&lt;p&gt;I want to run this query :&lt;/p&gt;

&lt;p&gt;SELECT ifnull(a.field1, a.field1) as name FROM table a WHERE ifnull(a.field1, a.field1) IS NULL&lt;/p&gt;

&lt;p&gt;But I get an doctrine exception :&lt;/p&gt;

&lt;p&gt;Doctrine\ORM\Query\QueryException&apos; with message &apos;&lt;span class=&quot;error&quot;&gt;&amp;#91;Syntax Error&amp;#93;&lt;/span&gt; line 0, col 518: Error: Expected Doctrine\ORM\Query\Lexer::T_IS, got &apos;(&apos;&apos; in /library/Doctrine/ORM/Query/QueryException.php:52&lt;/p&gt;

&lt;p&gt;If I don&apos;t use the IS NULL in my where clause it is working perfectly. &lt;/p&gt;

&lt;p&gt;I think this issue is related to : &lt;br/&gt;
&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1472&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1472&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="14373">DDC-2234</key>
            <summary>WHERE &lt;&lt;custom function&gt;&gt; IS NULL ... doesn&apos;t work</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>
                    <security id="10000">All</security>
                        <assignee username="fabio.bat.silva">Fabio B. Silva</assignee>
                                <reporter username="david_mattei">David</reporter>
                        <labels>
                    </labels>
                <created>Fri, 11 Jan 2013 08:46:39 +0000</created>
                <updated>Sun, 20 Jan 2013 11:32:57 +0000</updated>
                    <resolved>Sun, 20 Jan 2013 11:32:57 +0000</resolved>
                            <version>Git Master</version>
                                <fixVersion>2.4</fixVersion>
                                <component>DQL</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>