activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jstrac...@apache.org
Subject svn commit: r378280 - /incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
Date Thu, 16 Feb 2006 15:34:14 GMT
Author: jstrachan
Date: Thu Feb 16 07:34:13 2006
New Revision: 378280

URL: http://svn.apache.org/viewcvs?rev=378280&view=rev
Log:
fixed a typeo when trying to apply the patch for AMQ-575

Modified:
    incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java

Modified: incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
URL: http://svn.apache.org/viewcvs/incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java?rev=378280&r1=378279&r2=378280&view=diff
==============================================================================
--- incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
(original)
+++ incubator/activemq/trunk/activemq-core/src/main/java/org/apache/activemq/store/jdbc/TransactionContext.java
Thu Feb 16 07:34:13 2006
@@ -92,7 +92,7 @@
             int[] rc = p.executeBatch();
             for (int i = 0; i < rc.length; i++) {
                 int code = rc[i];
-                if ( code > 0 || code == Statement.SUCCESS_NO_INFO ) {
+                if ( code < 0 && code != Statement.SUCCESS_NO_INFO ) {
                     throw new SQLException(message + ". Response code: " + code);
                 }
             }



Mime
View raw message