mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-17 20:50:44 +00:00
Fix to escapeIdentifiers in doDeleteList
This commit is contained in:
@ -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(","))
|
||||
+ ")";
|
||||
|
Reference in New Issue
Block a user