fix: simplified functional call to iterator (semgrep)

This commit is contained in:
Philipp Gruener 2024-07-04 23:25:46 +02:00
parent 2fce72bbad
commit 2e0ca7d3a7

View file

@ -425,7 +425,7 @@ class PostgresDatabase(PostgresExceptionUtil, Database):
schema=sql.Identifier(self.db_schema),
table=sql.Identifier("tab" + doctype),
constraint=sql.Identifier(constraint_name),
fields=sql.SQL(", ").join(map(sql.Identifier, fields)),
fields=sql.SQL(", ").join(sql.Identifier(field) for field in fields),
)
.as_string(self._conn)
)