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

This commit is contained in:
Pradip Parkale authored and Akshay Joshi committed 2021-12-17 10:48:24 +05:30
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