From 45d423c0ce2a209fa819a369f44ee8291819f02f Mon Sep 17 00:00:00 2001 From: Murtuza Zabuawala Date: Fri, 26 May 2017 10:59:09 -0400 Subject: [PATCH] Ensure the last placeholder is included when generating UPDATE scripts for tables. Fixes #2436 --- .../server_groups/servers/databases/schemas/tables/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py index 54bab0d92..99f0ddc81 100644 --- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py +++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/__init__.py @@ -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 ;".format( self.qtIdent(self.conn, data['schema'], data['name']),