Fixed an issue where Columns with default value not showing when adding a new row. Fixes #7034

This commit is contained in:
Pradip Parkale 2021-12-17 10:48:24 +05:30 committed by Akshay Joshi
parent 92a997b16a
commit 9754b0fe14
3 changed files with 27 additions and 2 deletions

View File

@ -11,6 +11,7 @@ notes for it.
.. toctree::
:maxdepth: 1
release_notes_6_4
release_notes_6_3
release_notes_6_2
release_notes_6_1

View File

@ -0,0 +1,20 @@
************
Version 6.4
************
Release date: 2021-01-13
This release contains a number of bug fixes and new features since the release of pgAdmin4 6.3.
New features
************
Housekeeping
************
Bug fixes
*********
| `Issue #7034 <https://redmine.postgresql.org/issues/7034>`_ - Fixed an issue where Columns with default value not showing when adding a new row.

View File

@ -52,7 +52,11 @@ def get_columns_types(is_query_tool, columns_info, table_oid, conn, has_oids):
col['has_default_val'] = row['has_default_val']
else:
col_type['not_null'] = col['not_null'] = None
col_type['has_default_val'] = col['has_default_val'] = None
col_type['not_null'] = col['not_null'] = \
rset['rows'][key]['not_null']
col_type['has_default_val'] = \
col['has_default_val'] = \
rset['rows'][key]['has_default_val']
return column_types