<!-- 
RSS generated by JIRA (4.4#649-r158309) at Thu May 23 23:48:12 CDT 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://dev.clojure.org/jira/si/jira.issueviews:issue-xml/JDBC-47/JDBC-47.xml?field=key&field=summary
-->
<rss version="0.92" >
<channel>
    <title>Clojure JIRA</title>
    <link>http://dev.clojure.org/jira</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>4.4</version>
        <build-number>649</build-number>
        <build-date>25-07-2011</build-date>
    </build-info>

<item>
            <title>[JDBC-47] Transactions do not rollback on non-Exception Throwables</title>
                <link>http://dev.clojure.org/jira/browse/JDBC-47</link>
                <project id="10021" key="JDBC">java.jdbc</project>
                        <description>&lt;p&gt;&lt;tt&gt;transaction*&lt;/tt&gt; currently catches Exceptions for its rollback logic. This means Throwables subclassing &lt;tt&gt;java.lang.Error&lt;/tt&gt; are not caught, and indeed the transaction seems to be immediately committed in this case (at least if the connection has autocommit set to true).&lt;/p&gt;

&lt;p&gt;This happened to me in the case of an &lt;tt&gt;OutOfMemoryError&lt;/tt&gt;. Another example is that the following code commits:&lt;/p&gt;

&lt;div class=&quot;preformatted panel&quot; style=&quot;border-width: 1px;&quot;&gt;&lt;div class=&quot;preformattedContent panelContent&quot;&gt;
&lt;pre&gt;(transaction
  (insert-records &quot;table&quot; {:foo 12})
  (assert false))
&lt;/pre&gt;
&lt;/div&gt;&lt;/div&gt;

&lt;p&gt;Presumably this can be fixed by catching &lt;tt&gt;Throwable&lt;/tt&gt; instead of &lt;tt&gt;Exception&lt;/tt&gt;. I&apos;ll prepare a patch to that effect.&lt;/p&gt;</description>
                <environment>0.2.3</environment>
            <key id="16029">JDBC-47</key>
            <summary>Transactions do not rollback on non-Exception Throwables</summary>
                <type id="1" iconUrl="http://dev.clojure.org/jira/images/icons/bug.gif">Defect</type>
                                <priority id="3" iconUrl="http://dev.clojure.org/jira/images/icons/priority_major.gif">Major</priority>
                    <status id="5" iconUrl="http://dev.clojure.org/jira/images/icons/status_resolved.gif">Resolved</status>
                    <resolution id="1">Completed</resolution>
                                <assignee username="seancorfield">Sean Corfield</assignee>
                                <reporter username="gfredericks">Gary Fredericks</reporter>
                        <labels>
                    </labels>
                <created>Tue, 26 Feb 2013 16:31:31 -0600</created>
                <updated>Tue, 26 Feb 2013 20:08:45 -0600</updated>
                    <resolved>Tue, 26 Feb 2013 20:08:45 -0600</resolved>
                                                                    <due></due>
                    <votes>0</votes>
                        <watches>0</watches>
                        <comments>
                    <comment id="30664" author="seancorfield" created="Tue, 26 Feb 2013 16:48:46 -0600"  >&lt;p&gt;Thanx Gary. In the latest source there may be two pieces of transaction logic so please check for anywhere else that Exception is mentioned!&lt;/p&gt;</comment>
                    <comment id="30665" author="gfredericks" created="Tue, 26 Feb 2013 17:17:26 -0600"  >&lt;p&gt;This patch changes &lt;tt&gt;Exception&lt;/tt&gt; to &lt;tt&gt;Throwable&lt;/tt&gt; in two places &amp;#8211; &lt;tt&gt;transaction*&lt;/tt&gt; and &lt;tt&gt;db-transaction*&lt;/tt&gt;. The tests pass.&lt;/p&gt;</comment>
                    <comment id="30666" author="seancorfield" created="Tue, 26 Feb 2013 20:08:45 -0600"  >&lt;p&gt;Patch applied.&lt;/p&gt;</comment>
                </comments>
                    <attachments>
                    <attachment id="11876" name="JDBC-47-p1.patch" size="1488" author="gfredericks" created="Tue, 26 Feb 2013 17:17:26 -0600" />
                </attachments>
            <subtasks>
        </subtasks>
                <customfields>
                                                                                            <customfield id="customfield_10010" key="com.pyxis.greenhopper.jira:gh-global-rank">
                <customfieldname>Global Rank</customfieldname>
                <customfieldvalues>
                    
                </customfieldvalues>
            </customfield>
                                                                                                            </customfields>
    </item>
</channel>
</rss>