Fix generation of reverse engineered SQL for partition table, partitions were shown as a child of indexes. Fixes #4414

pull/25/head
Akshay Joshi 2019-08-07 17:49:13 +05:30
parent d1530015ee
commit 7f53e13aa7
2 changed files with 3 additions and 2 deletions

View File

@ -30,6 +30,7 @@ Bug fixes
| `Issue #4179 <https://redmine.postgresql.org/issues/4179>`_ - Fix generation of reverse engineered SQL for tables with Greenplum 5.x.
| `Issue #4229 <https://redmine.postgresql.org/issues/4229>`_ - Update wcDocker to allow the browser's context menu to be used except in tab strips and panel headers.
| `Issue #4401 <https://redmine.postgresql.org/issues/4401>`_ - Ensure type names are properly encoded in the results grid.
| `Issue #4414 <https://redmine.postgresql.org/issues/4414>`_ - Fix generation of reverse engineered SQL for partition table, partitions were shown as a child of indexes.
| `Issue #4489 <https://redmine.postgresql.org/issues/4489>`_ - Update wcDocker to prevent window state loading creating blank dialogues.
| `Issue #4490 <https://redmine.postgresql.org/issues/4490>`_ - Fix accessibility issue for checkbox in IE11.
| `Issue #4492 <https://redmine.postgresql.org/issues/4492>`_ - Ensure the Query Tool doesn't throw an error when viewing the contents of a table with no columns.

View File

@ -1134,8 +1134,8 @@ class BaseTableView(PGChildNodeView, BasePartitionTable):
partition_sql = ''
for row in rset['rows']:
part_data = dict()
part_data['partitioned_table_name'] = data['name']
part_data['parent_schema'] = data['schema']
part_data['partitioned_table_name'] = table
part_data['parent_schema'] = schema
part_data['schema'] = row['schema_name']
part_data['relispartition'] = True
part_data['name'] = row['name']