Fixed an issue while editing char[] or character varying[] column from View/Edit data throwing an error.Fixes #4410.

This commit is contained in:
Nick Barnes
2020-01-23 14:55:02 +05:30
committed by Akshay Joshi
parent fde8e4054a
commit f5d46bf9f1
2 changed files with 2 additions and 1 deletions

View File

@@ -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'])
)