Skip to content

Commit

Permalink
fix jdbc set value null bug; apache#4276
Browse files Browse the repository at this point in the history
  • Loading branch information
Keven0Liu committed Feb 27, 2023
1 parent 60b9e66 commit b6b4659
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -177,9 +177,8 @@ class JDBCEngineConnExecutor(override val outputPrintLimit: Int, val id: Int)
if (connection != null) {
try {
if (!connection.getAutoCommit) connection.commit()
connection.close()
} catch {
case e: SQLException => logger.warn("close connection error.", e)
case e: SQLException => logger.warn("connection commit error.", e)
}
}
connectionManager.removeStatement(taskId)
Expand Down

0 comments on commit b6b4659

Please sign in to comment.