mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Display un-sized varlen column types correctly in the query tool. Fixes #2151
This commit is contained in:
committed by
Dave Page
parent
03a161cc0a
commit
89137f57b2
@@ -2022,7 +2022,7 @@ define(
|
||||
else
|
||||
col_type += ' [PK] ' + type;
|
||||
|
||||
if (c.precision && c.precision != 65535) {
|
||||
if (c.precision && c.precision >= 0 && c.precision != 65535) {
|
||||
col_type += ' (' + c.precision;
|
||||
col_type += c.scale && c.scale != 65535 ?
|
||||
',' + c.scale + ')':
|
||||
@@ -2053,7 +2053,7 @@ define(
|
||||
case "character[]":
|
||||
case "character varying":
|
||||
case "character varying[]":
|
||||
if (c.internal_size && c.internal_size != 65535) {
|
||||
if (c.internal_size && c.internal_size >= 0 && c.internal_size != 65535) {
|
||||
// Update column type to display length on column header
|
||||
col_type += ' (' + c.internal_size + ')';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user