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:
James Strachan 2006-02-16 15:34:13 +00:00
parent dba97b77c5
commit ba0ada4db7
1 changed files with 1 additions and 1 deletions

View File

@ -92,7 +92,7 @@ public class TransactionContext {
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);
}
}