Ensure View Data on a table with zero columns doesn't throw an error. Fixes #1677
parent
046f6dd442
commit
751327eacc
|
@ -531,6 +531,9 @@ def fetch_pg_types(trans_id):
|
|||
|
||||
# List of oid for which we need type name from pg_type
|
||||
oid = ''
|
||||
res = {}
|
||||
if 'columns_info' in session_obj \
|
||||
and session_obj['columns_info'] is not None:
|
||||
for col in session_obj['columns_info']:
|
||||
type_obj = session_obj['columns_info'][col]
|
||||
oid += str(type_obj['type_code']) + ','
|
||||
|
|
|
@ -407,3 +407,7 @@ input.editor-checkbox {
|
|||
.grid-canvas .new_row.error, .grid-canvas .updated_row.error {
|
||||
background: #e46b6b;
|
||||
}
|
||||
|
||||
#datagrid div.slick-header.ui-state-default {
|
||||
background: #2c76b4;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue