mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2026-10-25 14:10:05 -05:00
Fixed an issue where Columns with default value not showing when adding a new row. Fixes #7034
This commit is contained in:
1 parent
92a997b16a
commit
9754b0fe14
3 files changed
+27
-2
No files matched your search
@@ -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
|
||||
Reference in new issue
Block a user