mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed error on displaying table properties of a table partitioned by list having a default partition. Fixes #4262
This commit is contained in:
parent
db4bb22cc6
commit
ab5f35da8d
@ -22,4 +22,5 @@ Bug fixes
|
|||||||
| `Bug #4244 <https://redmine.postgresql.org/issues/4244>`_ - Fix Tab key issue for Toggle switch controls and button on the dialog footer in Safari browser.
|
| `Bug #4244 <https://redmine.postgresql.org/issues/4244>`_ - Fix Tab key issue for Toggle switch controls and button on the dialog footer in Safari browser.
|
||||||
| `Bug #4245 <https://redmine.postgresql.org/issues/4245>`_ - Ensure that element should get highlighted when they get focus on using Tab key.
|
| `Bug #4245 <https://redmine.postgresql.org/issues/4245>`_ - Ensure that element should get highlighted when they get focus on using Tab key.
|
||||||
| `Bug #4246 <https://redmine.postgresql.org/issues/4246>`_ - Fixed console error when subnode control is used in panels.
|
| `Bug #4246 <https://redmine.postgresql.org/issues/4246>`_ - Fixed console error when subnode control is used in panels.
|
||||||
| `Bug #4261 <https://redmine.postgresql.org/issues/4261>`_ - Stop using application/x-javascript as a mime type and use the RFC-compliant application/javascript instead.
|
| `Bug #4261 <https://redmine.postgresql.org/issues/4261>`_ - Stop using application/x-javascript as a mime type and use the RFC-compliant application/javascript instead.
|
||||||
|
| `Bug #4262 <https://redmine.postgresql.org/issues/4262>`_ - Fixed error on displaying table properties of a table partitioned by list having a default partition.
|
@ -2203,14 +2203,20 @@ class BaseTableView(PGChildNodeView, BasePartitionTable):
|
|||||||
'is_default': is_default
|
'is_default': is_default
|
||||||
})
|
})
|
||||||
elif data['partition_type'] == 'list':
|
elif data['partition_type'] == 'list':
|
||||||
range_part = \
|
if row['partition_value'] == 'DEFAULT':
|
||||||
row['partition_value'].split('FOR VALUES IN (')[1]
|
is_default = True
|
||||||
|
range_in = None
|
||||||
|
else:
|
||||||
|
range_part = row['partition_value'].split(
|
||||||
|
'FOR VALUES IN (')[1]
|
||||||
|
range_in = range_part[:-1]
|
||||||
|
is_default = False
|
||||||
|
|
||||||
range_in = range_part[:-1]
|
|
||||||
partitions.append({
|
partitions.append({
|
||||||
'oid': row['oid'],
|
'oid': row['oid'],
|
||||||
'partition_name': partition_name,
|
'partition_name': partition_name,
|
||||||
'values_in': range_in
|
'values_in': range_in,
|
||||||
|
'is_default': is_default
|
||||||
})
|
})
|
||||||
else:
|
else:
|
||||||
range_part = row['partition_value'].split(
|
range_part = row['partition_value'].split(
|
||||||
|
Loading…
Reference in New Issue
Block a user