Fixed an issue when a table has a column with an array type with length or

precision, the column type is not selected while editing the table. Fixes #7408
This commit is contained in:
Khushboo Vashi 2022-05-25 17:49:06 +05:30 committed by Akshay Joshi
parent 37b19e0be2
commit 955bb22cd1
3 changed files with 2 additions and 2 deletions

View File

@ -35,3 +35,4 @@ Bug fixes
| `Issue #7402 <https://redmine.postgresql.org/issues/7402>`_ - Ensure that Dashboard graphs should be refreshed on changing the node from the browser tree.
| `Issue #7403 <https://redmine.postgresql.org/issues/7403>`_ - Fixed an issue where comments on domain constraints were not visible when selecting a domain node.
| `Issue #7405 <https://redmine.postgresql.org/issues/7405>`_ - Ensure that null values are accepted for the numeric columns in react-data-grid.
| `Issue #7408 <https://redmine.postgresql.org/issues/7408>`_ - Fixed an issue when a table has a column with an array type with length or precision, the column type is not selected while editing the table.

View File

@ -184,7 +184,7 @@ def column_formatter(conn, tid, clid, data, edit_types_list=None,
edit_types_list = [row['typname'] for row in rset['rows']]
# We will need present type in edit mode
edit_types_list.append(data['cltype'])
edit_types_list.append(data['typname'])
data['edit_types'] = sorted(edit_types_list)
data['cltype'] = DataTypeReader.parse_type_name(data['cltype'])

View File

@ -1,5 +1,4 @@
/////////////////////////////////////////////////////////////
//234567890
// pgAdmin 4 - PostgreSQL Tools
//
// Copyright (C) 2013 - 2022, The pgAdmin Development Team