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:
committed by
Akshay Joshi
parent
db4bb22cc6
commit
ab5f35da8d
@@ -2203,14 +2203,20 @@ class BaseTableView(PGChildNodeView, BasePartitionTable):
|
||||
'is_default': is_default
|
||||
})
|
||||
elif data['partition_type'] == 'list':
|
||||
range_part = \
|
||||
row['partition_value'].split('FOR VALUES IN (')[1]
|
||||
if row['partition_value'] == 'DEFAULT':
|
||||
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({
|
||||
'oid': row['oid'],
|
||||
'partition_name': partition_name,
|
||||
'values_in': range_in
|
||||
'values_in': range_in,
|
||||
'is_default': is_default
|
||||
})
|
||||
else:
|
||||
range_part = row['partition_value'].split(
|
||||
|
||||
Reference in New Issue
Block a user