diff --git a/pom.xml b/pom.xml
index 98b46104..d90e3fd7 100644
--- a/pom.xml
+++ b/pom.xml
@@ -335,7 +335,7 @@
false
https://sonarcloud.io
spannm
-
+
true
true
diff --git a/src/main/java/net/ucanaccess/commands/AutoNumberAction.java b/src/main/java/net/ucanaccess/commands/AutoNumberAction.java
index b809b0bb..656e925a 100644
--- a/src/main/java/net/ucanaccess/commands/AutoNumberAction.java
+++ b/src/main/java/net/ucanaccess/commands/AutoNumberAction.java
@@ -33,9 +33,9 @@ public AutoNumberAction(Table _table, Object[] memento, Object[] byAccess) throw
oldAutoValues.put(col.getName(), cnOld);
newAutoValues.put(col.getName(), cnNew);
conn.setFeedbackState(true);
- String stmt = "UPDATE " + SQLConverter.escapeIdentifier(_table.getName(), connHsqldb) + " SET " + cn
- + "=? WHERE " + cn + "=?";
- try (PreparedStatement ps = connHsqldb.prepareStatement(stmt)) {
+ String sql = String.format("UPDATE %s SET %s=? WHERE %s=?",
+ SQLConverter.escapeIdentifier(_table.getName(), connHsqldb), cn, cn);
+ try (PreparedStatement ps = connHsqldb.prepareStatement(sql)) {
ps.setObject(1, cnNew);
ps.setObject(2, cnOld);
ps.executeUpdate();
diff --git a/src/main/java/net/ucanaccess/commands/BlobAction.java b/src/main/java/net/ucanaccess/commands/BlobAction.java
index bd628990..119507df 100644
--- a/src/main/java/net/ucanaccess/commands/BlobAction.java
+++ b/src/main/java/net/ucanaccess/commands/BlobAction.java
@@ -12,6 +12,7 @@
import java.sql.PreparedStatement;
import java.sql.SQLException;
import java.util.*;
+import java.util.stream.Collectors;
public class BlobAction implements IFeedbackAction {
private final Table table;
@@ -55,26 +56,23 @@ public void doAction(ICommand toChange) throws SQLException {
Connection connHsqldb = conn.getHSQLDBConnection();
for (BlobKey bkey : keys) {
- String sql = "UPDATE " + SQLConverter.escapeIdentifier(table.getName(), connHsqldb) + " SET "
- + SQLConverter.escapeIdentifier(bkey.getColumnName(), connHsqldb) + "=? WHERE ";
- StringBuilder sb = new StringBuilder();
- String and = "";
- List