Fix to escapeIdentifiers in doDeleteList

This commit is contained in:
2024-06-17 11:00:17 -05:00
parent e1fd6d51c4
commit 37f89110e7

View File

@ -235,9 +235,9 @@ public class RDBMSDeleteAction extends AbstractRDBMSAction implements DeleteInte
String tableName = getTableName(table);
String primaryKeyName = getColumnName(table.getField(table.getPrimaryKeyField()));
String sql = "DELETE FROM "
+ tableName
+ escapeIdentifier(tableName)
+ " WHERE "
+ primaryKeyName
+ escapeIdentifier(primaryKeyName)
+ " IN ("
+ primaryKeys.stream().map(x -> "?").collect(Collectors.joining(","))
+ ")";