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

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

No files matched your search

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