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);
}
}