camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1186053 - /camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
Date Wed, 19 Oct 2011 09:42:02 GMT
Author: davsclaus
Date: Wed Oct 19 09:42:02 2011
New Revision: 1186053

URL: http://svn.apache.org/viewvc?rev=1186053&view=rev
Log:
Fixed CS

Modified:
    camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java

Modified: camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
URL: http://svn.apache.org/viewvc/camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java?rev=1186053&r1=1186052&r2=1186053&view=diff
==============================================================================
--- camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
(original)
+++ camel/trunk/components/camel-jdbc/src/main/java/org/apache/camel/component/jdbc/JdbcProducer.java
Wed Oct 19 09:42:02 2011
@@ -98,8 +98,9 @@ public class JdbcProducer extends Defaul
             conn.commit();
         } catch (Exception e) {
             try {
-                if (conn != null)
+                if (conn != null) {
                     conn.rollback();
+                }
             } catch (SQLException sqle) {
                 LOG.warn("Error on jdbc component rollback: " + sqle, sqle);
             }



Mime
View raw message