mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fixed an issue while editing char[] or character varying[] column from View/Edit data throwing an error.Fixes #4410.
This commit is contained in:
committed by
Akshay Joshi
parent
fde8e4054a
commit
f5d46bf9f1
@@ -538,7 +538,7 @@ def compose_type_name(col_info, typname):
|
||||
if typname == 'character' or typname == 'character varying':
|
||||
typname = typname + '(' + str(col_info['internal_size']) + ')'
|
||||
elif typname == 'character[]' or typname == 'character varying[]':
|
||||
typname = '%s(%s)[]'.format(
|
||||
typname = '{}({})[]'.format(
|
||||
typname[:-2],
|
||||
str(col_info['internal_size'])
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user