Fixed an issue where Columns with default value not showing when adding a new row. Fixes #7034
parent
461c0abce1
commit
e5e9981836
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue