Fixed duplicate SQL issue for tables with more than one partition. Fixes #6478

This commit is contained in:
Rahul Shirsat 2021-05-31 12:46:07 +05:30 committed by Akshay Joshi
parent 658a2de619
commit 9ac08c263b
2 changed files with 2 additions and 1 deletions

View File

@ -21,3 +21,4 @@ Bug fixes
*********
| `Issue #4203 <https://redmine.postgresql.org/issues/4203>`_ - Fixed the issue of renaming the database by another user.
| `Issue #6478 <https://redmine.postgresql.org/issues/6478>`_ - Fixed duplicate SQL issue for tables with more than one partition.

View File

@ -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'