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

This commit is contained in:
Nikhil Mohite 2021-12-21 18:09:20 +05:30 committed by Akshay Joshi
parent 461c0abce1
commit e5e9981836

View File

@ -50,13 +50,10 @@ def get_columns_types(is_query_tool, columns_info, table_oid, conn, has_oids):
col_type['has_default_val'] = \
col['has_default_val'] = row['has_default_val']
break
else:
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']
col_type['not_null'] = col['not_null'] = None
col_type['has_default_val'] = col['has_default_val'] = None
return column_types