Re: getColumnDisplayWidth() returns 0x7fffffff for char varying - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
Date
Msg-id 4A2C44E6.4040401@opencloud.com
Whole thread Raw
In response to getColumnDisplayWidth() returns 0x7fffffff for char varying  (Dan Evans <devans@invores.com>)
Responses Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
List pgsql-jdbc
Dan Evans wrote:

> My problem is that getColumnDisplayWidth() returns the widths
>
> column(1) uname(2147483647)

This has been discussed at some length previously, check the list archives.

(quick summary from memory: for an unbounded character varying type,
there's nothing really sensible we can return - that column could have a
gigabyte of text for all we know. We originally returned -1 but that
broke some common RowSet implementations. Now we return Integer.MAX_VALUE)

-O

pgsql-jdbc by date:

Previous
From: Dan Evans
Date:
Subject: Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
Next
From: Dan Evans
Date:
Subject: Re: getColumnDisplayWidth() returns 0x7fffffff for char varying