From b6b4659b8b28516469895368a65f67e33e3c2b5b Mon Sep 17 00:00:00 2001 From: Keven0Liu <812982876@qq.com> Date: Mon, 27 Feb 2023 20:38:04 +0800 Subject: [PATCH] fix jdbc set value null bug; https://github.com/apache/linkis/issues/4276 --- .../engineplugin/jdbc/executor/JDBCEngineConnExecutor.scala | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/linkis-engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executor/JDBCEngineConnExecutor.scala b/linkis-engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executor/JDBCEngineConnExecutor.scala index 2e9378cf86..9aa87723cf 100644 --- a/linkis-engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executor/JDBCEngineConnExecutor.scala +++ b/linkis-engineconn-plugins/jdbc/src/main/scala/org/apache/linkis/manager/engineplugin/jdbc/executor/JDBCEngineConnExecutor.scala @@ -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)