<!--
RSS generated by JIRA (5.2.7#850-sha1:b2af0c8dc8537b36121c6a579fabbdf79fc919e5) at Fri May 24 14:52:23 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.2.3%22+AND+project+%3D+DBAL&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.2.3%22+AND+project+%3D+DBAL</link>
        <description>An XML representation of a search request</description>
                <language>en-us</language>
                        <issue start="0" end="16" total="16"/>
                <build-info>
            <version>5.2.7</version>
            <build-number>850</build-number>
            <build-date>21-02-2013</build-date>
        </build-info>
<item>
            <title>[DBAL-387] [GH-230] Fixed SQL Server Platform NULL declaration</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-387</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of Lusitanian:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/230&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/230&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Per previous pull request but based on master. SQL server does not use &apos;DEFAULT NULL&apos; for marking columns as nullable, only &apos;NULL&apos;.&lt;/p&gt;</description>
                <environment></environment>
            <key id="14253">DBAL-387</key>
            <summary>[GH-230] Fixed SQL Server Platform NULL declaration</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Wed, 21 Nov 2012 17:35:46 +0000</created>
                <updated>Sun, 25 Nov 2012 18:07:30 +0000</updated>
                    <resolved>Sun, 25 Nov 2012 18:07:30 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="19059" author="beberlei" created="Sun, 25 Nov 2012 17:58:46 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-230&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/230&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/230&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-329] [GH-190] Fix DDC-1978</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-329</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of FabioBatSilva:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/190&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/190&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Fix &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1978&quot; title=&quot;SQLParserUtils array_fill tries to create array with zero elements when empty parameter is bound&quot;&gt;&lt;del&gt;DDC-1978&lt;/del&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DDC-1978&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DDC-1978&lt;/a&gt;&lt;/p&gt;</description>
                <environment></environment>
            <key id="13987">DBAL-329</key>
            <summary>[GH-190] Fix DDC-1978</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 26 Aug 2012 00:00:53 +0000</created>
                <updated>Wed, 29 Aug 2012 09:36:59 +0000</updated>
                    <resolved>Wed, 29 Aug 2012 09:36:59 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="18560" author="beberlei" created="Wed, 29 Aug 2012 09:05:26 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-190&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/190&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/190&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-323] [GH-185] Add schema changes for length for postgres</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-323</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of mvrhov:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/185&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/185&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13969">DBAL-323</key>
            <summary>[GH-185] Add schema changes for length for postgres</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Fri, 17 Aug 2012 05:15:24 +0000</created>
                <updated>Sat, 6 Oct 2012 10:23:13 +0000</updated>
                    <resolved>Sat, 6 Oct 2012 10:22:07 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3.1</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-299] Multiple different interspersed named parameters</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-299</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;For this code&lt;/p&gt;

&lt;p&gt;$sql = &amp;lt;&amp;lt;&amp;lt;SQL&lt;br/&gt;
SELECT 1 as id&lt;br/&gt;
WHERE (:foo = 2)&lt;br/&gt;
AND (:bar = 3)&lt;br/&gt;
AND (:foo = 2)&lt;br/&gt;
SQL;&lt;br/&gt;
$rsm = new \Doctrine\Orm\Query\ResultSetMapping();&lt;br/&gt;
$rsm-&amp;gt;addScalarResult(&apos;id&apos;, &apos;id&apos;);&lt;/p&gt;

&lt;p&gt;$query = $em-&amp;gt;createNativeQuery($sql, $rsm);&lt;br/&gt;
$query = $query-&amp;gt;setParameters(array(&apos;foo&apos;  =&amp;gt; 2, &apos;bar&apos; =&amp;gt; 3));&lt;br/&gt;
$result = $query-&amp;gt;getResult();&lt;/p&gt;

&lt;p&gt;Generates the SQL in DBAL\Connection\executeQuery&lt;/p&gt;

&lt;p&gt;SELECT 1 as id&lt;br/&gt;
WHERE (? = 2)&lt;br/&gt;
AN?bar = 3)&lt;br/&gt;
AND (? = 2)&lt;/p&gt;

&lt;p&gt;The problem appears to be in DBAL\SQLParserUtils\expandListParameters.  &lt;/p&gt;

&lt;p&gt;When replacing the named parameters with ?&apos;s an offset is kept to keep track of where to insert the next parameter.  This is done per named parameter (all of :foo is replaced then all :bar, etc).  This will calculate the incorrect offset if a named parameter(e.g. :bar) is in between instances of another named parameter (e.g. :foo) (i.e. :bar in the sql &quot;(:foo = 2) AND (:bar =3) AND (:foo = 2)&quot;) since the offset will be for the TOTAL number of instances of the named parameter (e.g. -6) not the number of instances that occur before the needed replacement (e.g. -3).&lt;/p&gt;

&lt;p&gt;This is where the SQL has &quot;AN?bar = 3)&quot; instead of &quot;AND(3 = 3)&quot; the offset is calculated at -6 instead of the proper -3&lt;/p&gt;</description>
                <environment>PHP 5.3.9-ZS5.6.0, Ubuntu 10.04.4 LTS on VirtualBox 4.1..18 r78361 on Mac OS X version 10.6.8</environment>
            <key id="13825">DBAL-299</key>
            <summary>Multiple different interspersed named parameters</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="asm89">Alexander</assignee>
                                <reporter username="spiinningtops">Spinning Top</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Jul 2012 14:01:30 +0000</created>
                <updated>Sat, 7 Jul 2012 13:12:53 +0000</updated>
                    <resolved>Sat, 7 Jul 2012 13:12:53 +0000</resolved>
                            <version>2.2.3</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18220" author="asm89" created="Sat, 7 Jul 2012 13:12:53 +0000"  >&lt;p&gt;Fixed here: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/78dbf28923059545b24ba753c112560ad59ca89e&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/78dbf28923059545b24ba753c112560ad59ca89e&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-285] Schema generation fails when primary key is quoted</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-285</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;All of our entities are generated with their name quoted with back-ticks, this is to allow RAD. &lt;br/&gt;
When Doctrine comes to update the schema it fails to see the primary key is quoted and thus compared an index of PRIMARY(id) to PRIMARY(`id`). Which means it then tries to drop the primary index and recreate it, using a quoted field name.&lt;/p&gt;

&lt;p&gt;This fix is to when the primary index is created is to fetch the columns from the table and get their unquoted name, so now when the comparison takes place it looks like this PRIMARY(id) to PRIMARY(id), therefore doesn&apos;t register this as a change.&lt;/p&gt;</description>
                <environment>Linux (gentoo), PHP 5.3.13, MySQL 5.1.62, Symfony2</environment>
            <key id="13722">DBAL-285</key>
            <summary>Schema generation fails when primary key is quoted</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="easen">Marc Easen</reporter>
                        <labels>
                    </labels>
                <created>Wed, 23 May 2012 17:06:07 +0000</created>
                <updated>Wed, 4 Jul 2012 21:38:32 +0000</updated>
                    <resolved>Wed, 4 Jul 2012 21:38:32 +0000</resolved>
                            <version>2.1.6</version>
                <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                <version>2.2-RC1/RC2</version>
                <version>2.2.0-RC3</version>
                <version>2.2</version>
                <version>2.2.1</version>
                <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18176" author="beberlei" created="Wed, 4 Jul 2012 21:38:32 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11191" name="DBAL_Primary_key_fix.txt" size="803" author="easen" created="Wed, 23 May 2012 17:06:07 +0000" />
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-276] MySQL schema manager should not make assumptions about non-DBAL types</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-276</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;When using the DBAL MySQL schema manager to create migrations or update the schema directly, it can create conflicts with custom types due to the way it processes some non-DBAL types in _getPortableTableColumnDefinition.&lt;/p&gt;

&lt;p&gt;I recently implemented a binary-string type, using the MySQL BINARY/VARBINARY columns (as opposed to blob, which I see has been adopted in 2.2), due to the content for my application &lt;b&gt;always&lt;/b&gt; being a 60 byte binary string. Doctrine has been working fine with it, but upon generating my next migration, I discovered that the schema manager wanted to re-set the column&apos;s length.&lt;br/&gt;
Generated SQL: &quot;ALTER TABLE User CHANGE password password VARBINARY(60) NOT NULL&quot;&lt;/p&gt;

&lt;p&gt;It appears that this is caused by lines 138 &amp;amp; 139 of MySqlSchemaManager.php clearing the column&apos;s length. There doesn&apos;t seem to be any other code pertaining to MySQL and binary/varbinary, so removing these two lines should be safe and save trouble for future users, without causing issues for those who choose to implement it as a blob or similar.&lt;/p&gt;</description>
                <environment>Macintosh OS X 10.7.2&lt;br/&gt;
Homebrew PHP 5.3.6 (CLI SAPI)&lt;br/&gt;
Doctrine DBAL v2.1.6, installed via Symfony2&amp;#39;s vendor scripts</environment>
            <key id="13700">DBAL-276</key>
            <summary>MySQL schema manager should not make assumptions about non-DBAL types</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="predakanga">Lachlan Pease</reporter>
                        <labels>
                    </labels>
                <created>Wed, 16 May 2012 07:45:35 +0000</created>
                <updated>Sun, 27 May 2012 08:58:59 +0000</updated>
                    <resolved>Sun, 27 May 2012 08:58:59 +0000</resolved>
                            <version>2.1.6</version>
                                <fixVersion>2.1.7</fixVersion>
                <fixVersion>2.2.3</fixVersion>
                                <component>Schema Managers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17991" author="beberlei" created="Sun, 27 May 2012 08:58:59 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-273] Allow MasterSlave Connection to switch back to slave</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-273</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description></description>
                <environment></environment>
            <key id="13695">DBAL-273</key>
            <summary>Allow MasterSlave Connection to switch back to slave</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</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, 11 May 2012 19:23:04 +0000</created>
                <updated>Fri, 11 May 2012 19:23:04 +0000</updated>
                                    <version>2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-269] [GH-141] Fixed conditional expression</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-269</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of hason:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/141&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/141&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

</description>
                <environment></environment>
            <key id="13682">DBAL-269</key>
            <summary>[GH-141] Fixed conditional expression</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 5 May 2012 16:46:08 +0000</created>
                <updated>Sun, 27 May 2012 10:09:02 +0000</updated>
                    <resolved>Sun, 27 May 2012 10:09:02 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-263] [GH-137] Support OCI8 statements crossing transactions [DBAL-202]</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-263</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;This issue is created automatically through a Github pull request on behalf of dpb587:&lt;/p&gt;

&lt;p&gt;  Url: &lt;a href=&quot;https://github.com/doctrine/dbal/pull/137&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/137&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Message:&lt;/p&gt;

&lt;p&gt;Bug Fix: yes&lt;br/&gt;
Feature addition: no&lt;br/&gt;
Backwards compatibility break: no&lt;br/&gt;
[!&lt;span class=&quot;error&quot;&gt;&amp;#91;Build Status&amp;#93;&lt;/span&gt;(&lt;a href=&quot;https://secure.travis-ci.org/dpb587/dbal.png?branch=ticket-dbal-202)](http://travis-ci.org/dpb587/dbal&quot; class=&quot;external-link&quot;&gt;https://secure.travis-ci.org/dpb587/dbal.png?branch=ticket-dbal-202)](http://travis-ci.org/dpb587/dbal&lt;/a&gt;)&lt;/p&gt;

&lt;p&gt;Scenario is documented in JIRA &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-202&quot; title=&quot;Preparing Statements outside Transaction&quot;&gt;&lt;del&gt;DBAL-202&lt;/del&gt;&lt;/a&gt;(&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-202&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-202&lt;/a&gt;). Basically in oci8 if you prepare a statement outside of a transaction, start a transaction, execute the statement, rollback the transaction - the statement will still have been executed. Whether it&apos;s the correct behavior or not, it seems like it should match PDO&apos;s behavior.&lt;/p&gt;

&lt;p&gt;This implementation affects the API, so it should probably be carefully reviewed.&lt;/p&gt;

&lt;p&gt;A separate test script is available at &lt;a href=&quot;https://gist.github.com/2515100&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/2515100&lt;/a&gt;(gist.github.com/2515100).&lt;/p&gt;

&lt;p&gt;    $ php -v ; php --re oci8 | head -1&lt;br/&gt;
    PHP 5.3.3-7+squeeze3 with Suhosin-Patch (cli) (built: Jun 28 2011 08:24:40) &lt;br/&gt;
    Copyright (c) 1997-2009 The PHP Group&lt;br/&gt;
    Zend Engine v2.3.0, Copyright (c) 1998-2010 Zend Technologies&lt;br/&gt;
        with Xdebug v2.1.1, Copyright (c) 2002-2011, by Derick Rethans&lt;br/&gt;
        with Suhosin v0.9.32.1, Copyright (c) 2007-2010, by SektionEins GmbH&lt;br/&gt;
    Extension [ &amp;lt;persistent&amp;gt; extension #52 oci8 version 1.4.2 ] {&lt;br/&gt;
    $ phpunit -c oci8.phpunit.xml.dist tests/Doctrine/Tests/DBAL/Driver/OCI8/OCI8StatementTest.php&lt;br/&gt;
    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ..&lt;/p&gt;

&lt;p&gt;    Time: 0 seconds, Memory: 7.50Mb&lt;/p&gt;

&lt;p&gt;    OK (2 tests, 2 assertions)&lt;br/&gt;
    $ phpunit -c oci8.phpunit.xml.dist tests/Doctrine/Tests/DBAL/Functional/Ticket/DBAL202Test.php&lt;br/&gt;
    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ..&lt;/p&gt;

&lt;p&gt;    Time: 7 seconds, Memory: 9.50Mb&lt;br/&gt;
    OK (2 tests, 6 assertions)&lt;/p&gt;

&lt;p&gt;I had to drop the the following tests to run through the oracle test suite (seemed like my test user didn&apos;t have enough permissions for the temp db tests), but all other tests pass.&lt;/p&gt;

&lt;p&gt;    $ rm tests/Doctrine/Tests/DBAL/Functional/TemporaryTableTest.php&lt;br/&gt;
    $ rm tests/Doctrine/Tests/DBAL/Functional/TableGeneratorTest.php # see pull 136&lt;br/&gt;
    $ rm tests/Doctrine/Tests/DBAL/Functional/Schema/OracleSchemaManagerTest.php&lt;br/&gt;
    $ phpunit -c oci8.phpunit.xml.dist&lt;br/&gt;
    PHPUnit 3.5.13 by Sebastian Bergmann.&lt;/p&gt;

&lt;p&gt;    ...............................................................  63 / 747 (  8%)&lt;br/&gt;
    .......SSSS.....S........S......................S...........S.. 126 / 747 ( 16%)&lt;br/&gt;
    .............................SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 189 / 747 ( 25%)&lt;br/&gt;
    SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS 252 / 747 ( 33%)&lt;br/&gt;
    SSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSSS.............S........ 315 / 747 ( 42%)&lt;br/&gt;
    ...S...S...SSS................................................. 378 / 747 ( 50%)&lt;br/&gt;
    ............................................................... 441 / 747 ( 59%)&lt;br/&gt;
    .....SSS....................................................... 504 / 747 ( 67%)&lt;br/&gt;
    ............................................................... 567 / 747 ( 75%)&lt;br/&gt;
    ..............S................................................ 630 / 747 ( 84%)&lt;br/&gt;
    ............................................................... 693 / 747 ( 92%)&lt;br/&gt;
    ......................................................&lt;/p&gt;

&lt;p&gt;    Time: 33 seconds, Memory: 46.00Mb&lt;/p&gt;

&lt;p&gt;    OK, but incomplete or skipped tests!&lt;br/&gt;
    Tests: 747, Assertions: 1145, Skipped: 156.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13666">DBAL-263</key>
            <summary>[GH-137] Support OCI8 statements crossing transactions [DBAL-202]</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sat, 28 Apr 2012 03:11:08 +0000</created>
                <updated>Sat, 5 May 2012 07:37:34 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:37:34 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17916" author="beberlei" created="Sat, 5 May 2012 07:34:39 +0000"  >&lt;p&gt;A related Github Pull-Request &lt;span class=&quot;error&quot;&gt;&amp;#91;GH-137&amp;#93;&lt;/span&gt; was closed&lt;br/&gt;
&lt;a href=&quot;https://github.com/doctrine/dbal/pull/137&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/137&lt;/a&gt;&lt;/p&gt;</comment>
                    <comment id="17917" author="beberlei" created="Sat, 5 May 2012 07:37:34 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-261] MasterSlaveConnection fails to load ConnectionEventArgs</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-261</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Incorrect class referenced at line 164 of Doctrine\DBAL\Connection\MasterSlaveConnection.php: &lt;/p&gt;

&lt;p&gt;$eventArgs = new Event\ConnectionEventArgs($this);&lt;/p&gt;

&lt;p&gt;Current namespace is Doctrine\DBAL\Connection so class loader fails when looking for Doctrine\DBAL\Connection\Event\ConnectionEventArgs&lt;/p&gt;

&lt;p&gt;Work around is to add Doctrine\DBAL\Event\ConnectionEventArgs to use directive and change line to:&lt;/p&gt;

&lt;p&gt;$eventArgs = new ConnectionEventArgs($this);&lt;/p&gt;</description>
                <environment></environment>
            <key id="13656">DBAL-261</key>
            <summary>MasterSlaveConnection fails to load ConnectionEventArgs</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>
                    <security id="10000">All</security>
                        <assignee username="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="rburgess">Raymond Burgess</reporter>
                        <labels>
                    </labels>
                <created>Tue, 24 Apr 2012 02:31:43 +0000</created>
                <updated>Sat, 5 May 2012 07:18:09 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:18:09 +0000</resolved>
                            <version>2.2.1</version>
                <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                                <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-257] OCI8Statement::fetchColumn() returns null instead of false</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-257</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;In &lt;br/&gt;
public function fetchColumn($columnIndex = 0)&lt;br/&gt;
{&lt;br/&gt;
        $row = oci_fetch_array($this-&amp;gt;_sth, OCI_NUM | OCI_RETURN_NULLS | OCI_RETURN_LOBS);&lt;br/&gt;
        return $row&lt;span class=&quot;error&quot;&gt;&amp;#91;$columnIndex&amp;#93;&lt;/span&gt;;&lt;br/&gt;
}&lt;/p&gt;

&lt;p&gt;there is no control on oci_fetch_array_() returned value.&lt;br/&gt;
When it returns false fetchColumn() returns null instead of false.&lt;/p&gt;

&lt;p&gt;Solution:&lt;br/&gt;
public function fetchColumn($columnIndex = 0)&lt;br/&gt;
{&lt;br/&gt;
        $row = oci_fetch_array($this-&amp;gt;_sth, OCI_NUM | OCI_RETURN_NULLS | OCI_RETURN_LOBS);&lt;br/&gt;
        return isset($row&lt;span class=&quot;error&quot;&gt;&amp;#91;$columnIndex&amp;#93;&lt;/span&gt;) ? $row&lt;span class=&quot;error&quot;&gt;&amp;#91;$columnIndex&amp;#93;&lt;/span&gt; : false;&lt;br/&gt;
}&lt;/p&gt;</description>
                <environment></environment>
            <key id="13635">DBAL-257</key>
            <summary>OCI8Statement::fetchColumn() returns null instead of false</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="zoff">lorenzo zoffoli</reporter>
                        <labels>
                    </labels>
                <created>Mon, 16 Apr 2012 15:18:15 +0000</created>
                <updated>Sat, 5 May 2012 09:28:22 +0000</updated>
                    <resolved>Sat, 5 May 2012 09:28:22 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17924" author="beberlei" created="Sat, 5 May 2012 09:28:22 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-255] On SQL SERVER Trying to drop a column throws error because of auto generated Constraints</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-255</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Whenever Doctrine tries to drop a column that has some implicit constraints the system the SQL Native Client throws the message:&lt;/p&gt;

&lt;p&gt;The Object &apos;Name_Of_The_Object&apos; is dependent on column &apos;Column_To_Drop&apos;;&lt;/p&gt;

&lt;p&gt;This is probably because columns such as Decimal Numbers have an automatice generated constraint that need to be dropped in order to drop a column.&lt;/p&gt;

&lt;p&gt;A possible Solution is to add  a platform specific getConstratintForTableSQL that queries the database to get all the constraint for the given column, than override the &apos;alterTable&apos; method in the SQLServer Schema Manager to first drop the constraint than the columns in question by going and checking all the Columns that needs to be dropped in the TableDiff passed.&lt;/p&gt;

&lt;p&gt;Something similar to this but better refactored I guess:&lt;/p&gt;

&lt;p&gt;Changes in SQLServerPlatform.php&lt;/p&gt;

&lt;p&gt;Add a method similar to this:&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;    /**
     * This function retrieves the constraints &lt;span class=&quot;code-keyword&quot;&gt;for&lt;/span&gt; a given column that is going to be droppped 
     */
    &lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function getColumnConstraintSQL($table, $column)
    {
        &lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; &quot;SELECT SysObjects.[Name]
                From SysObjects Inner Join (Select [Name],[ID] From SysObjects Where XType = &apos;U&apos;) As Tab
                On Tab.[ID] = Sysobjects.[Parent_Obj] 
                Inner Join sysconstraints On sysconstraints.Constid = Sysobjects.[ID] 
                Inner Join SysColumns Col On Col.[ColID] = sysconstraints.[ColID] And Col.[ID] = Tab.[ID]
                Where Col.[Name] = &apos;$column&apos; and Tab.[Name] = &apos;$table&apos;
                order by Col.[Name]&quot;;
    }
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Changes on SqlServerChemaManager.php&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;       /**
	* Override
	*/
	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function alterTable(TableDiff $tableDiff)
	{
		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(count($tableDiff-&amp;gt;removedColumns) &amp;gt; 0){
			$constraintsSql = array();
			foreach($tableDiff-&amp;gt;removedColumns as $col){
				$constraintsSql[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform-&amp;gt;getColumnConstraintSQL($tableDiff-&amp;gt;name, $col-&amp;gt;oldColumnName);
			}
			$constraintsToDrop = array();
			foreach($constraintsSql as $sql){
				 $constraintsToDrop[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;execute($sql);
			}
			foreach($constraintsToDrop as $constraint){
				$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;execute(&lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE $tableDiff-&amp;gt;name DROP CONSTRAINT $constraint&quot;&lt;/span&gt;);
			}
		}
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::alterTable($tableDiff);
	}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;

&lt;p&gt;Thx&lt;/p&gt;</description>
                <environment>MS SQL Server + Windows Server 2008</environment>
            <key id="13628">DBAL-255</key>
            <summary>On SQL SERVER Trying to drop a column throws error because of auto generated Constraints</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="fredcallagan">Fryderyk Benigni</reporter>
                        <labels>
                    </labels>
                <created>Fri, 13 Apr 2012 13:14:08 +0000</created>
                <updated>Sat, 5 May 2012 11:08:06 +0000</updated>
                    <resolved>Sat, 5 May 2012 11:08:06 +0000</resolved>
                            <version>2.2.2</version>
                                <fixVersion>2.2.3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="17844" author="fredcallagan" created="Fri, 13 Apr 2012 13:36:23 +0000"  >&lt;p&gt;This version of the getColumnConstraintSQL seems better:&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;       /**
	* Override
	*/
	&lt;span class=&quot;code-keyword&quot;&gt;public&lt;/span&gt; function alterTable(TableDiff $tableDiff)
	{
		&lt;span class=&quot;code-keyword&quot;&gt;if&lt;/span&gt;(isset($tableDiff-&amp;gt;removedColumns) &amp;amp;&amp;amp; count($tableDiff-&amp;gt;removedColumns) &amp;gt; 0){
			$constraintsSql = array();
			foreach($tableDiff-&amp;gt;removedColumns as $col){
				$constraintsSql[] = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_platform-&amp;gt;getColumnConstraintSQL($tableDiff-&amp;gt;name, $col-&amp;gt;getName());
			}
			$constraintsToDrop = array();
			foreach($constraintsSql as $sql){
				 $constraintData = $&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;fetchAll($sql);
				 foreach($constraintData as $keyCostr =&amp;gt; $costraint){
					$constraintsToDrop[] = $costraint[&apos;Name&apos;];
				 }
			}
			
			foreach($constraintsToDrop as $key =&amp;gt; $constraint){
				$&lt;span class=&quot;code-keyword&quot;&gt;this&lt;/span&gt;-&amp;gt;_conn-&amp;gt;exec(&lt;span class=&quot;code-quote&quot;&gt;&quot;ALTER TABLE $tableDiff-&amp;gt;name DROP CONSTRAINT &quot;&lt;/span&gt;.$constraint);
			}
		}
		&lt;span class=&quot;code-keyword&quot;&gt;return&lt;/span&gt; parent::alterTable($tableDiff);
	}
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;</comment>
                    <comment id="17925" author="beberlei" created="Sat, 5 May 2012 09:44:50 +0000"  >&lt;p&gt;Fixed formatting&lt;/p&gt;</comment>
                    <comment id="17926" author="beberlei" created="Sat, 5 May 2012 11:08:06 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;

&lt;p&gt;I had to adjust your SQL a little since &quot;sysconstraints&quot; is deprecated and not exists anymore on SQL Azure for example.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-254] SQL Server rename table should use sp_RENAME</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-254</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;Whenever DBAL Schema Manager tries to rename a table in sql server 2008 it should use also the sp_RENAME procedure. Otherwise error is thrown.&lt;/p&gt;

&lt;p&gt;Apparently a similar issue was fixed for column ALTER Commands as described in the link below, but also the ALTER TABLE command should use sp_RENAME to avoid crash.&lt;/p&gt;

&lt;p&gt;&lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-199?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel&quot; class=&quot;external-link&quot;&gt;http://www.doctrine-project.org/jira/browse/DBAL-199?page=com.atlassian.jira.plugin.system.issuetabpanels%3Achangehistory-tabpanel&lt;/a&gt;&lt;/p&gt;


&lt;p&gt;Suggested fix for Latest DBAL 2.2&lt;/p&gt;

&lt;p&gt;From Line 283: &lt;/p&gt;

&lt;p&gt;$queryParts[] = &apos;RENAME TO &apos; . $diff-&amp;gt;newName;&lt;/p&gt;

&lt;p&gt;To Line 283:&lt;/p&gt;

&lt;p&gt;$sql[] = &apos;sp_RENAME \&apos;&apos; . $diff-&amp;gt;name . &apos;\&apos;,\&apos;&apos; . $diff-&amp;gt;newName.&apos;\&apos;&apos;;&lt;/p&gt;

&lt;p&gt;This seems to fix the problem.&lt;/p&gt;

&lt;p&gt;Hope this helps&lt;/p&gt;

&lt;p&gt;Sorry for my bad english.&lt;/p&gt;

&lt;p&gt;Fredcallagan&lt;/p&gt;</description>
                <environment>SQL Server 2008 R2 on windows Server</environment>
            <key id="13627">DBAL-254</key>
            <summary>SQL Server rename table should use sp_RENAME</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="fredcallagan">Fryderyk Benigni</reporter>
                        <labels>
                    </labels>
                <created>Wed, 11 Apr 2012 17:11:55 +0000</created>
                <updated>Sun, 8 Jul 2012 20:31:44 +0000</updated>
                    <resolved>Sun, 8 Jul 2012 20:31:44 +0000</resolved>
                            <version>2.2.1</version>
                                <fixVersion>2.2.3</fixVersion>
                                <component>Platforms</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="18252" author="beberlei" created="Sun, 8 Jul 2012 20:31:44 +0000"  >&lt;p&gt;Fixed.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-244] Shema Tool is not working after DBAL-177 for postgresql (mysql working like before)</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-244</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;After trying to upgrade 2.2.0 i found that schema tool wasn&apos;t working, so I switched back to 2.1.6, same thing with 2.2.1 and no bug report, so this is wats going on.&lt;/p&gt;

&lt;p&gt;./doctrine orm:schema-tool:update --dump-sql # this will show full create table for schema even if tables are all ready there.&lt;/p&gt;

&lt;p&gt;After git bisectin Doctrine ORM project i found that commit ea5108ea0f35fc0f7ed3a740995a590926045c6e wast to blame, but that was only submodule update so made bisect for Doctrine DBAL:&lt;/p&gt;

&lt;p&gt;537de7ea6a34edbcc40bc6ca92e0a3f816b59330 .. 4410e4cec20b0f1f209578320e5b7d111e90c2a0 founding that 1ae87bf3e3ba93cb579a2a092b06b5a09b316542 was the problem.&lt;/p&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((4410e4c...))&amp;#93;&lt;/span&gt;$ git reset --hard 1ae87bf3e3ba93cb579a2a092b06b5a09b316542&lt;br/&gt;
HEAD is now at 1ae87bf &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-177&quot; title=&quot;Have Schema Assets handle &amp;quot;foo.bar&amp;quot; syntax correctly.&quot;&gt;&lt;del&gt;DBAL-177&lt;/del&gt;&lt;/a&gt; - Make sure schema.table syntax is supported in Assets for quoted assets&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((1ae87bf...))&amp;#93;&lt;/span&gt;$ git submodule update --recursive&lt;br/&gt;
Submodule path &apos;lib/vendor/doctrine-common&apos;: checked out &apos;d6e4c8b22af9800db4fd9d679ce98538da028168&apos;&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;shema tool printing full schema&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((1ae87bf...))&amp;#93;&lt;/span&gt;$ git reset --hard HEAD^1&lt;br/&gt;
HEAD is now at bb84496 &lt;a href=&quot;http://www.doctrine-project.org/jira/browse/DBAL-144&quot; title=&quot;Oracle tables without indices are not handled during convert - this behavior should be tolerant since Oracle does not require indicies.&quot;&gt;&lt;del&gt;DBAL-144&lt;/del&gt;&lt;/a&gt; - Dont throw exception when no primary key exists&lt;br/&gt;
&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop doctrine-dbal ((bb84496...))&amp;#93;&lt;/span&gt;$ git submodule update --recursive&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;
	&lt;ol&gt;
		&lt;li&gt;works fine&lt;/li&gt;
	&lt;/ol&gt;
	&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;span class=&quot;error&quot;&gt;&amp;#91;margus@laptop build (master)&amp;#93;&lt;/span&gt;$ ./doctrine orm:schema-tool:update --dump-sql&lt;br/&gt;
Nothing to update - your database is already in sync with the current entity metadata.&lt;/p&gt;


&lt;p&gt;with commit 1ae87bf3e3ba93cb579a2a092b06b5a09b316542 schema starts with 3 NULL lines, and then schema, with 2.2.0, extra &quot;NULL&quot; lines aren&apos;t there anymore.&lt;/p&gt;

&lt;p&gt;Using MySQL there isn&apos;t any problem, but with PostgreSQL (i have 8.4.11) this issue appears. &lt;/p&gt;</description>
                <environment>Ubuntu 10.10, Zend Server 5.5.0 with PHP 5.3.8</environment>
            <key id="13560">DBAL-244</key>
            <summary>Shema Tool is not working after DBAL-177 for postgresql (mysql working like before)</summary>
                <type id="1" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/bug.png">Bug</type>
                                <priority id="2" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/critical.png">Critical</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="margus">Margus Sipria</reporter>
                        <labels>
                    </labels>
                <created>Sun, 25 Mar 2012 22:19:29 +0000</created>
                <updated>Sat, 5 May 2012 08:01:06 +0000</updated>
                    <resolved>Sat, 5 May 2012 08:01:06 +0000</resolved>
                            <version>2.2</version>
                <version>2.2.1</version>
                                <fixVersion>2.2.3</fixVersion>
                                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17688" author="beberlei" created="Fri, 30 Mar 2012 20:13:39 +0000"  >&lt;p&gt;Increase priority, will be fixed this weekend and in the next bugifx release&lt;/p&gt;</comment>
                    <comment id="17692" author="beberlei" created="Fri, 30 Mar 2012 21:32:26 +0000"  >&lt;p&gt;Are you using Postgresql Schema? Can you provide some information about your database tables? I need some more information to try reproducing this.&lt;/p&gt;</comment>
                    <comment id="17904" author="codingrobot" created="Thu, 3 May 2012 17:57:26 +0000"  >&lt;p&gt;I&apos;m experiencing the same issue.&lt;br/&gt;
I looked at the mentioned commit and found out that the SQL query in getSchemaNames() does not return any namespaces.&lt;br/&gt;
After some research I came with the following query to list all non-system namespaces in Postgres:&lt;/p&gt;

&lt;p&gt;SELECT nspname as schema_name FROM pg_namespace WHERE nspname !~ &apos;^pg_.*&apos; and nspname != &apos;information_schema&apos;&lt;/p&gt;

&lt;p&gt;This fixed the issue for me and the schema-tool works again.&lt;/p&gt;</comment>
                    <comment id="17920" author="beberlei" created="Sat, 5 May 2012 08:01:06 +0000"  >&lt;p&gt;Fixed, but couldn&apos;t verify as the previous statement worked for me.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-214] Unable to use PDO::FETCH_CLASS with a call to fetch()</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-214</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;EDITED: 2nd attempt to describe this - first one was confusing.&lt;/p&gt;

&lt;p&gt;I don&apos;t understand why the setFetchMode() method of Doctrine\DBAL\Driver\PDOStatement drops any arguments passed to it. It means that PDO::FETCH_CLASS cannot be used with calls to fetch() and no warning is given until the point when the underlying \PDOStatement complains that no class has been specified.&lt;/p&gt;</description>
                <environment></environment>
            <key id="13401">DBAL-214</key>
            <summary>Unable to use PDO::FETCH_CLASS with a call to fetch()</summary>
                <type id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/issuetypes/improvement.png">Improvement</type>
                                <priority id="4" iconUrl="http://www.doctrine-project.org/jira/images/icons/priorities/minor.png">Minor</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="acleon">Andy Leon</reporter>
                        <labels>
                    </labels>
                <created>Mon, 30 Jan 2012 18:05:33 +0000</created>
                <updated>Sat, 5 May 2012 08:52:55 +0000</updated>
                    <resolved>Sat, 5 May 2012 08:52:37 +0000</resolved>
                            <version>2.0.0-BETA2</version>
                <version>2.0.0-BETA3</version>
                <version>2.0.0-BETA4</version>
                <version>2.0.0-RC1-RC3</version>
                <version>2.0-RC4</version>
                <version>2.0-RC5</version>
                <version>2.0</version>
                <version>2.0.1</version>
                <version>2.0.2</version>
                <version>2.0.3</version>
                <version>2.0.4</version>
                <version>2.0.5</version>
                <version>2.0.6</version>
                <version>2.0.7</version>
                <version>2.0.8</version>
                <version>2.0.9</version>
                <version>2.1</version>
                <version>2.1.1</version>
                <version>2.1.2</version>
                <version>2.1.3</version>
                <version>2.1.5</version>
                <version>2.1.6</version>
                <version>2.2-BETA1</version>
                <version>2.2-BETA2</version>
                <version>2.2-RC1/RC2</version>
                <version>2.2.0-RC3</version>
                <version>2.2</version>
                <version>2.2.1</version>
                <version>2.2.2</version>
                <version>2.3</version>
                                <fixVersion>2.2.3</fixVersion>
                <fixVersion>2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>1</votes>
                        <watches>2</watches>
                        <comments>
                    <comment id="17366" author="noodha" created="Fri, 3 Feb 2012 22:21:18 +0000"  >&lt;p&gt;In Doctrine/DBAL/Statement.php the 2nd and 3rd arguments of setFetchMode are dropped too.&lt;/p&gt;

&lt;p&gt;Error message example when PDO::FETCH_CLASS is used as the first argument of setFetchMode: &lt;br/&gt;
$stmt-&amp;gt;setFetchMode(PDO::FETCH_CLASS | PDO::FETCH_PROPS_LATE, &apos;ClassName&apos;);&lt;br/&gt;
display the error: PDOException: SQLSTATE&lt;span class=&quot;error&quot;&gt;&amp;#91;HY000&amp;#93;&lt;/span&gt;: General error: fetch mode requires the classname argument&lt;/p&gt;</comment>
                    <comment id="17918" author="fabpot" created="Sat, 5 May 2012 07:39:31 +0000"  >&lt;p&gt;This regression was introduced here: &lt;a href=&quot;https://github.com/doctrine/dbal/commit/f4acc79a3e91059a932d7a2d43309f6f8f65fa59&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/f4acc79a3e91059a932d7a2d43309f6f8f65fa59&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It breaks some of my websites when upgrading DBAL. So, this is not an improvement but a regression bug.&lt;/p&gt;</comment>
                    <comment id="17921" author="beberlei" created="Sat, 5 May 2012 08:51:26 +0000"  >&lt;p&gt;Yes, i have to change this again.&lt;/p&gt;

&lt;p&gt;The problem is its complex to support the 2nd/3rd arguments in the statement caching layer, i will just throw an exception for now and add an improvement ticket.&lt;/p&gt;</comment>
                    <comment id="17922" author="beberlei" created="Sat, 5 May 2012 08:52:37 +0000"  >&lt;p&gt;Fixed&lt;/p&gt;</comment>
                    <comment id="17923" author="beberlei" created="Sat, 5 May 2012 08:52:55 +0000"  >&lt;p&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/commit/d3930dcdb89cc818798c8f13e4126f76cf82ef8b&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/commit/d3930dcdb89cc818798c8f13e4126f76cf82ef8b&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>

<item>
            <title>[DBAL-202] Preparing Statements outside Transaction</title>
                <link>http://www.doctrine-project.org/jira/browse/DBAL-202</link>
                <project id="10040" key="DBAL">Doctrine DBAL</project>
                        <description>&lt;p&gt;From the mailing list:&lt;/p&gt;

&lt;p&gt;I&apos;m using DBAL 2.1 with Oracle and it appears that if I call prepare() for my SQL and cache the prepared statement for later, if I then start a new transaction and call execute() on the statement, it commits the transaction.  Is this behavior intentional?  If so, does that mean I have to prepare my statement anew for every transaction?&lt;/p&gt;

&lt;p&gt;Note that I&apos;m seeing the aforementioned behavior with code as basic as the following:&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;$stmt = $dbh-&amp;gt;prepare(&quot;INSERT INTO test_table (id, description) VALUES
(:my_id, :my_desc)&quot;);
$dbh-&amp;gt;beginTransaction();
$stmt-&amp;gt;execute(array(&lt;span class=&quot;code-quote&quot;&gt;&quot;:my_id&quot;&lt;/span&gt; =&amp;gt; 1, &lt;span class=&quot;code-quote&quot;&gt;&quot;:my_desc&quot;&lt;/span&gt; =&amp;gt; &lt;span class=&quot;code-quote&quot;&gt;&quot;test&quot;&lt;/span&gt;));
$dbh-&amp;gt;rollBack();
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;After executing the above, a record has been committed to the db.  If I had a more complex scenario involving a transaction with multiple statements where the entire transaction is inside a loop, this becomes problematic--I can&apos;t then prepare my statements outside the loop to improve performance.&lt;/p&gt;

&lt;p&gt;When I try the same thing using straight PDO, it works fine.  Can anyone else confirm this behavior?&lt;/p&gt;</description>
                <environment></environment>
            <key id="13359">DBAL-202</key>
            <summary>Preparing Statements outside Transaction</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="beberlei">Benjamin Eberlei</assignee>
                                <reporter username="beberlei">Benjamin Eberlei</reporter>
                        <labels>
                    </labels>
                <created>Sun, 15 Jan 2012 09:14:37 +0000</created>
                <updated>Sat, 5 May 2012 07:37:54 +0000</updated>
                    <resolved>Sat, 5 May 2012 07:37:54 +0000</resolved>
                                            <fixVersion>2.2.3</fixVersion>
                                <component>Drivers</component>
                        <due></due>
                    <votes>0</votes>
                        <watches>1</watches>
                        <comments>
                    <comment id="17257" author="beberlei" created="Sun, 15 Jan 2012 14:34:11 +0000"  >&lt;p&gt;Are you using PDO_OCI or oci8 with Doctrine?&lt;/p&gt;</comment>
                    <comment id="17261" author="dpb587" created="Sun, 15 Jan 2012 18:08:44 +0000"  >&lt;p&gt;I had responded to him on our intranet and intended to submit a patch, but haven&apos;t yet found the time to prepare and test one. As a temporary workaround I suggested he prepare the statement inside the transaction. We are using oci8 and the following was my response and analysis:&lt;/p&gt;

&lt;p&gt;&amp;#8211;&lt;/p&gt;

&lt;p&gt;When the doctrine2 oci8 driver prepares a statement, the generated statement will forever use the active execute mode, regardless of the mode when it&apos;s actually executed. I disagree with the current behavior.&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php#L60&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Connection.php#L60&lt;/a&gt;&lt;/li&gt;
	&lt;li&gt;&lt;a href=&quot;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php#L182&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/blob/b066e54fa048952b4ca71e7e609707d66cd7448e/lib/Doctrine/DBAL/Driver/OCI8/OCI8Statement.php#L182&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;As you noted, this is not the behavior used by PDO OCI. Short-term, I think you should prepare the statement inside a transaction. Long-term, I think we should submit a patch to doctrine2, something like follows:&lt;/p&gt;

&lt;ul&gt;
	&lt;li&gt;add a `getExecuteMode` to `OCI8Connection`&lt;/li&gt;
	&lt;li&gt;add a `getDriverOptions` to `OCI8Connection`&lt;/li&gt;
	&lt;li&gt;remove the `$executeMode` parameter from `OCI8Statement::__construct`&lt;/li&gt;
	&lt;li&gt;remove the `$driverOptions` parameter from `OCI8Statement::__construct`&lt;/li&gt;
	&lt;li&gt;store a reference to `$dbh` to `$this-&amp;gt;&lt;em&gt;dbh` from `OCI8Statement::&lt;/em&gt;_construct`&lt;/li&gt;
	&lt;li&gt;replace `$this-&amp;gt;_executeMode` with `$this-&amp;gt;_dbh-&amp;gt;getExecuteMode()`&lt;/li&gt;
	&lt;li&gt;replace `$this-&amp;gt;_driverOptions` with `$this-&amp;gt;_dbh-&amp;gt;getDriverOptions()`&lt;/li&gt;
&lt;/ul&gt;
</comment>
                    <comment id="17892" author="dpb587" created="Sat, 28 Apr 2012 03:13:02 +0000"  >&lt;p&gt;Created an independent test - &lt;a href=&quot;https://gist.github.com/2515100&quot; class=&quot;external-link&quot;&gt;https://gist.github.com/2515100&lt;/a&gt;&lt;br/&gt;
Submitted a pull request - &lt;a href=&quot;https://github.com/doctrine/dbal/pull/137&quot; class=&quot;external-link&quot;&gt;https://github.com/doctrine/dbal/pull/137&lt;/a&gt;&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                </attachments>
            <subtasks>
        </subtasks>
        </item>
</channel>
</rss>