You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2022/12/31 12:56:00 UTC

[shardingsphere] branch master updated: Reconstruct the JDBCRepository#delete function (#23228)

This is an automated email from the ASF dual-hosted git repository.

zhaojinchao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new eae509351d2 Reconstruct the JDBCRepository#delete function (#23228)
eae509351d2 is described below

commit eae509351d2b290e1078e4b3b56f78fe3984c8af
Author: Ling Hengqian <li...@outlook.com>
AuthorDate: Sat Dec 31 20:55:53 2022 +0800

    Reconstruct the JDBCRepository#delete function (#23228)
---
 .../shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/mode/type/standalone/repository/provider/jdbc/core/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java b/mode/type/standalone/repository/provider/jdbc/core/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java
index 9ec10f3c381..82a19ac8aac 100644
--- a/mode/type/standalone/repository/provider/jdbc/core/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java
+++ b/mode/type/standalone/repository/provider/jdbc/core/src/main/java/org/apache/shardingsphere/mode/repository/standalone/jdbc/JDBCRepository.java
@@ -184,7 +184,7 @@ public final class JDBCRepository implements StandalonePersistRepository {
             preparedStatement.setString(1, key);
             preparedStatement.executeUpdate();
         } catch (final SQLException ex) {
-            log.error(String.format("Delete %s data by key: {} failed", getType()), key, ex);
+            log.error("Delete {} data by key: {} failed", getType(), key, ex);
         }
     }