mirror of https://github.com/apache/activemq.git
fixed a typeo when trying to apply the patch for AMQ-575
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@378280 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dba97b77c5
commit
ba0ada4db7
|
@ -92,7 +92,7 @@ public class TransactionContext {
|
||||||
int[] rc = p.executeBatch();
|
int[] rc = p.executeBatch();
|
||||||
for (int i = 0; i < rc.length; i++) {
|
for (int i = 0; i < rc.length; i++) {
|
||||||
int code = rc[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);
|
throw new SQLException(message + ". Response code: " + code);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue