<!-- 
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Sun May 26 07:24:08 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/DBAL-182/DBAL-182.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>[DBAL-182] Insert and Merge Query Objects</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-182</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;We are missing Insert and Merge Query Objects.&lt;/p&gt;

&lt;p&gt;See Drupal DBTNG:&lt;/p&gt;

&lt;p&gt;Merge: &lt;a href=&quot;http://drupal.org/node/310085&quot; class=&quot;external-link&quot;&gt;http://drupal.org/node/310085&lt;/a&gt;&lt;br/&gt;
Insert: &lt;a href=&quot;http://drupal.org/node/310079&quot; class=&quot;external-link&quot;&gt;http://drupal.org/node/310079&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13200">DBAL-182</key>
            <summary>Insert and Merge Query Objects</summary>
                <type id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/newfeature.png">New Feature</type>
                                <priority id="3" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/major.png">Major</priority>
                    <status id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/statuses/open.png">Open</status>
                    <resolution id="-1">Unresolved</resolution>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 18 Nov 2011 18:43:15 +0000</created>
                <updated>Thu, 20 Sep 2012 06:19:57 +0000</updated>
                                                    <fixVersion>2.4</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="16875" author="beberlei" created="Fri, 18 Nov 2011 19:33:00 +0000"  >&lt;p&gt;From the first glance: Drupal API has some problems in that it assumes literal values are the default, which makes working with them simple if no expression is necessary. But inconsistent otherwise.&lt;/p&gt;

&lt;p&gt;Implementation Details:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;Difference compared to QueryBuilder is that these objects are no builders, but actually executors.&lt;/li&gt;
	&lt;li&gt;Don&apos;t assume Literals&lt;/li&gt;
	&lt;li&gt;Creation is delegated to Platform (Runtime API of a Vendor)&lt;/li&gt;
&lt;/ul&gt;


{conn}&lt;br/&gt;
$conn-&amp;gt;createInsertQuery();&lt;br/&gt;
$conn-&amp;gt;createMergeQuery();{conn}

&lt;p&gt;Sample API:&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;createInsertQuery($tbl)-&amp;gt;fields(array(&apos;foo&apos;, &apos;bar&apos;))-&amp;gt;values(array(&apos;?&apos;, &apos;?&apos;))-&amp;gt;(array(1, 2))-&amp;gt;execute();
$conn-&amp;gt;createInsertQuery($tbl)-&amp;gt;fields(array(&apos;foo&apos;, &apos;bar&apos;))-&amp;gt;params(array(1, 2))-&amp;gt;execute(); &lt;span class=&quot;code-comment&quot;&gt;// values(?, ?) is implicit.
&lt;/span&gt;$conn-&amp;gt;createInsertQuery($tbl)-&amp;gt;fields(array(&apos;foo&apos;, &apos;bar&apos;))-&amp;gt;params(array(&apos;NOW()&apos;, &apos;1&apos;))-&amp;gt;execute(); &lt;span class=&quot;code-comment&quot;&gt;// &lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt; no &lt;span class=&quot;code-quote&quot;&gt;&quot;params&quot;&lt;/span&gt; set assume execute once.
&lt;/span&gt;$conn-&amp;gt;createInsertQuery($tbl)-&amp;gt;fields(array(&apos;foo&apos;, &apos;bar&apos;))-&amp;gt;value(&apos;foo&apos;, &apos;NOW())-&amp;gt;params(array(1))-&amp;gt;params(array(2))-&amp;gt;execute();
$conn-&amp;gt;createInsertQuery($tbl)-&amp;gt;fields(array(&apos;foo&apos;, &apos;bar&apos;))-&amp;gt;select($queryBuilder)-&amp;gt;execute();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Merge: I dont know yet:&lt;/p&gt;

&lt;p&gt;problem i see here is that people mistake values() for a &quot;safe&quot; method and pass values in there that should be quoted instead.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>