<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Tue May 21 16:14:12 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/sr/jira.issueviews:searchrequest-xml/temp/SearchRequest.xml?jqlQuery=fixVersion+%3D+%222.4%22+AND+project+%3D+DBAL+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC&tempMax=1000&field=key&field=summary
-->
<!-- If you wish to do custom client-side styling of RSS, uncomment this:
<?xml-stylesheet href="http://www.doctrine-project.org/jira/styles/jiraxml2html.xsl" type="text/xsl"?>
-->
<rss version="0.92">
    <channel>
        <title>Doctrine Project</title>
        <link>http://www.doctrine-project.org/jira/secure/IssueNavigator.jspa?reset=true&amp;jqlQuery=fixVersion+%3D+%222.4%22+AND+project+%3D+DBAL+AND+updated%3E%3D-1w+ORDER+BY+updated+DESC</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="1" total="1"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-522] BC break : executeQuery with an array containing null value(s).</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-522</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Hello, i have got an error with doctrine 2.3.4 when i try to run the following code :&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; 
    $conn-&amp;gt;executeQuery(
        &apos;INSERT INTO FOO (foo, bar) values (:foo, :bar)&apos;, 
         array(&apos;foo&apos; =&amp;gt; 1, &apos;bar&apos; =&amp;gt; &lt;span class=&quot;code-keyword&quot;&gt;null&lt;/span&gt;)
     );
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;blockquote&gt;
&lt;p&gt;Error : Value for :bar not found in params array. Params array key should be &quot;bar&quot; &lt;/p&gt;&lt;/blockquote&gt;

&lt;p&gt;This code worked with doctrine 2.3.3.&lt;/p&gt;

&lt;p&gt;I think the error comes from the function &apos;extractParam&apos; in SQLParserUtils.php (DBAL)&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;
line 215 : &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; (isset($paramsOrTypes[$paramName]))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The key exists even if the value is null.&lt;br/&gt;
So it should be:&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;if&lt;/span&gt; (array_key_exists($paramName, $paramsOrTypes)) 
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;


&lt;p&gt;I am not enough confident to try a PR.&lt;br/&gt;
Thanks in advance!&lt;/p&gt;



</description>
                <environment>Mac OSX 10.8.3, Mysql 5.5.28, PHP5.4 </environment>
            <key id="14971">DBAL-522</key>
            <summary>BC break : executeQuery with an array containing null value(s).</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/blocker.png">Blocker</priority>
                    <status id="5" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/resolved.png">Resolved</status>
                    <resolution id="1">Fixed</resolution>
                                <assignee username="ocramius">Marco Pivetta</assignee>
                                <reporter username="remy">lemeunier</reporter>
                        <labels>
                        <label>dbal</label>
                    </labels>
                <created>Mon, 20 May 2013 10:02:55 +0000</created>
                <updated>Tue, 21 May 2013 05:58:01 +0000</updated>
                    <resolved>Tue, 21 May 2013 05:54:50 +0000</resolved>
                            <version>2.3.4</version>
                                <fixVersion>2.4</fixVersion>
                <fixVersion>2.3.5</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="20402" author="ocramius" created="Mon, 20 May 2013 16:15:54 +0000"  >&lt;p&gt;I suggested a hotfix at &lt;a href=&quot;https://github.com/doctrine/dbal/pull/322&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/322&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="20406" author="remy" created="Tue, 21 May 2013 05:58:01 +0000"  >&lt;p&gt;Thanks for the hotfix.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>