Re: getColumnDisplayWidth() returns 0x7fffffff for char varying

From: Oliver Jowett <oliver(at)opencloud(dot)com>
To: Dan Evans <devans(at)invores(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
Date: 2009-06-07 22:53:26
Message-ID: 4A2C44E6.4040401@opencloud.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dan Evans 2009-06-08 14:41:05 Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
Previous Message Dan Evans 2009-06-07 22:23:26 Re: getColumnDisplayWidth() returns 0x7fffffff for char varying