Skip to content

Commit

Permalink
Added null check (#2032)
Browse files Browse the repository at this point in the history
  • Loading branch information
tkyc authored Dec 30, 2022
1 parent 1290f9c commit e4e783a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2972,8 +2972,9 @@ final void doExecutePreparedStatementBatch(PrepStmtBatchExecCmd batchCommand) th
if (null == batchCommand.batchException)
batchCommand.batchException = e;

if (batchCommand.batchException.getSQLState()
.equals(SQLState.STATEMENT_CANCELED.getSQLStateCode())) {
String sqlState = batchCommand.batchException.getSQLState();
if (null != sqlState
&& sqlState.equals(SQLState.STATEMENT_CANCELED.getSQLStateCode())) {
processBatch();
continue;
}
Expand Down

0 comments on commit e4e783a

Please sign in to comment.