mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
FIx a hang in the query tool that could occur if a column type couldn't be determined. Fixes #1438
This commit is contained in:
parent
e94b14e7d7
commit
d15dfac60f
@ -1525,7 +1525,14 @@ define(
|
||||
col_type = '';
|
||||
label_text.innerText = c.name;
|
||||
|
||||
var type = pg_types[c.type_code][0];
|
||||
var type = pg_types[c.type_code] ?
|
||||
pg_types[c.type_code][0] :
|
||||
// This is the case where user might
|
||||
// have use casting so we will use type
|
||||
// returned by cast function
|
||||
pg_types[pg_types.length - 1][0] ?
|
||||
pg_types[pg_types.length - 1][0] : 'unknown';
|
||||
|
||||
if (!is_primary_key)
|
||||
col_type += ' ' + type;
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user