<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 15:53:49 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-1016/DC-1016.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-1016] Set method in update query ignores &apos;false&apos; if passed as boolean</title>
                <link>http://www.doctrine-project.org/jira/browse/DC-1016</link>
                <project id="10031" key="DC">Doctrine 1</project>
                        <description>&lt;p&gt;I had to define this function:&lt;/p&gt;

&lt;p&gt;public function deactivate($segment_id)&lt;/p&gt;
    {
        $query = $this-&amp;gt;createQuery()
                -&amp;gt;update(&apos;Segment s&apos;)
                -&amp;gt;set(&apos;s.is_active &apos;, false) //not working
//              -&amp;gt;set(&apos;s.is_active &apos;, (int)false) //works ok
//              -&amp;gt;set(&apos;s.is_active &apos;, true) //works ok
                -&amp;gt;where(&apos;s.id = ?&apos;, $segment_id);
//        var_dump($query-&amp;gt;getSqlQuery());die;
        return $query-&amp;gt;execute();
    }

&lt;p&gt;Problem is that when setting a column using boolean false you get invalid SQL query like this:&lt;br/&gt;
UPDATE segment SET is_active  =  WHERE (id = ?)&lt;/p&gt;

&lt;p&gt;Workaround is to do it like this: set(&apos;s.is_active &apos;, (int)false) , but since setting the same column with boolean true works, false should work too.&lt;/p&gt;</description>
                <environment>Symfony 1.4.11 , Ubuntu 11, PHP 5.3</environment>
            <key id="12788">DC-1016</key>
            <summary>Set method in update query ignores &apos;false&apos; if passed as boolean</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="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                                <assignee username="guilhermeblanco">Guilherme Blanco</assignee>
                                <reporter username="pawelbaranski">Pawe&#322; Bara&#324;ski</reporter>
                        <labels>
                    </labels>
                <created>Tue, 5 Jul 2011 10:23:33 +0000</created>
                <updated>Tue, 5 Jul 2011 10:23:33 +0000</updated>
                                    <version>1.2.4</version>
                                                <component>Query</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>