mirror of
https://github.com/Kingsrook/qqq.git
synced 2025-07-18 05:01:07 +00:00
Escape identifiers in column names
This commit is contained in:
@ -248,7 +248,7 @@ public class RDBMSUpdateAction extends AbstractRDBMSAction implements UpdateInte
|
||||
private String writeUpdateSQLPrefix(QTableMetaData table, List<String> fieldsBeingUpdated)
|
||||
{
|
||||
String columns = fieldsBeingUpdated.stream()
|
||||
.map(f -> this.getColumnName(table.getField(f)) + " = ?")
|
||||
.map(f -> escapeIdentifier(this.getColumnName(table.getField(f))) + " = ?")
|
||||
.collect(Collectors.joining(", "));
|
||||
|
||||
String tableName = escapeIdentifier(getTableName(table));
|
||||
|
Reference in New Issue
Block a user