mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed invalid literal issue when fetching dependencies for Materialized View. Fixed #5882
This commit is contained in:
@@ -638,7 +638,9 @@ class PGChildNodeView(NodeView):
|
||||
# if type is present in the types dictionary, but it's
|
||||
# value is None then it requires special handling.
|
||||
if type_str[0] == 'r':
|
||||
if int(type_str[1]) > 0:
|
||||
if (type_str[1].isdigit() and int(type_str[1]) > 0) or \
|
||||
(len(type_str) > 2 and type_str[2].isdigit() and
|
||||
int(type_str[2]) > 0):
|
||||
type_name = 'column'
|
||||
else:
|
||||
type_name = 'table'
|
||||
|
||||
Reference in New Issue
Block a user