mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-01-15 11:12:25 -06:00
Ensure the last placeholder is included when generating UPDATE scripts for tables. Fixes #2436
This commit is contained in:
parent
a45bb905f5
commit
45d423c0ce
@ -2870,9 +2870,9 @@ class TableView(PGChildNodeView, DataTypeReader, VacuumSettings):
|
||||
if len(columns) > 0:
|
||||
if len(columns) == 1:
|
||||
columns = columns[0]
|
||||
columns += "=?"
|
||||
else:
|
||||
columns = "=?, ".join(columns)
|
||||
columns += "=?"
|
||||
|
||||
sql = u"UPDATE {0}\n\tSET {1}\n\tWHERE <condition>;".format(
|
||||
self.qtIdent(self.conn, data['schema'], data['name']),
|
||||
|
Loading…
Reference in New Issue
Block a user