public inbox for [email protected]  
help / color / mirror / Atom feed
From: Rahul Shirsat <[email protected]>
To: pgadmin-hackers <[email protected]>
Subject: [Patch] RM6478 Duplicates on SQL tab for table with more than one partition
Date: Mon, 31 May 2021 12:14:17 +0530
Message-ID: <CAKtn9dNVWbgk2eQRjnSeTiNY5ECuBU6n=Hv0MBBFutvNaT6m9w@mail.gmail.com> (raw)

Hi Hackers,

Please find the patch which resolves the mentioned issue of duplicate on
sql tab for table.

-- 
*Rahul Shirsat*
Senior Software Engineer | EnterpriseDB Corporation.


Attachments:

  [application/octet-stream] RM6478.patch (863B, 3-RM6478.patch)
  download | inline diff:
diff --git a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py
index a19624311..1674f2d7d 100644
--- a/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py
+++ b/web/pgadmin/browser/server_groups/servers/databases/schemas/tables/utils.py
@@ -937,7 +937,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
                 # Get all the supported constraints for partition table
                 self._add_constrints_to_output(part_data, did, row['oid'])
 
-                partition_sql += render_template("/".join(
+                partition_sql = render_template("/".join(
                     [self.partition_template_path, self._CREATE_SQL]),
                     data=part_data, conn=self.conn) + '\n'
 


view thread (2+ messages)  latest in thread

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: [email protected]
  Cc: [email protected]
  Subject: Re: [Patch] RM6478 Duplicates on SQL tab for table with more than one partition
  In-Reply-To: <CAKtn9dNVWbgk2eQRjnSeTiNY5ECuBU6n=Hv0MBBFutvNaT6m9w@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox