Fixed an error-'amname' when generating ERD for database containing parition tables. #7064

This commit is contained in:
Aditya Toshniwal 2023-12-28 15:27:30 +05:30
parent ec12dc5288
commit 01a118d495
2 changed files with 6 additions and 3 deletions

View File

@ -35,5 +35,8 @@ Bug fixes
| `Issue #6781 <https://github.com/pgadmin-org/pgadmin4/issues/6781>`_ - Fixed an issue where export servers was not adding extension if not specified.
| `Issue #6815 <https://github.com/pgadmin-org/pgadmin4/issues/6815>`_ - Fixed an issue where pgAdmin imports servers to the wrong accounts for the external authentication.
| `Issue #7002 <https://github.com/pgadmin-org/pgadmin4/issues/7002>`_ - Fixed an issue where an error occurred in the SQL tab when using an extended index(pgroonga).
| `Issue #7041 <https://github.com/pgadmin-org/pgadmin4/issues/7041>`_ - Fixed an issue where changes done to a node using edit dialog are not reflecting on the properties tab if the properties tab is active.
| `Issue #7061 <https://github.com/pgadmin-org/pgadmin4/issues/7061>`_ - Ensure that the 'Dbo' schema is displayed as a regular schema rather than a system catalog schema.
| `Issue #7064 <https://github.com/pgadmin-org/pgadmin4/issues/7064>`_ - Fixed an error-'amname' when generating ERD for database containing parition tables.
| `Issue #7066 <https://github.com/pgadmin-org/pgadmin4/issues/7066>`_ - Fixed an issue where object explorer last tree state was not saving.
| `Issue #7070 <https://github.com/pgadmin-org/pgadmin4/issues/7070>`_ - Fixed an issue where pgAgent job schedule dialog is not opening for edit.

View File

@ -1832,7 +1832,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
'is_default': is_default,
'is_sub_partitioned': row['is_sub_partitioned'],
'sub_partition_scheme': row['sub_partition_scheme'],
'amname': row['amname']
'amname': row.get('amname', '')
})
elif data['partition_type'] == 'list':
if row['partition_value'] == 'DEFAULT':
@ -1851,7 +1851,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
'is_default': is_default,
'is_sub_partitioned': row['is_sub_partitioned'],
'sub_partition_scheme': row['sub_partition_scheme'],
'amname': row['amname']
'amname': row.get('amname', '')
})
else:
range_part = row['partition_value'].split(
@ -1868,7 +1868,7 @@ class BaseTableView(PGChildNodeView, BasePartitionTable, VacuumSettings):
'values_remainder': range_remainder,
'is_sub_partitioned': row['is_sub_partitioned'],
'sub_partition_scheme': row['sub_partition_scheme'],
'amname': row['amname']
'amname': row.get('amname', '')
})
def get_partitions_sql(self, partitions, schema_diff=False):