pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: Dan Evans <devans@invores.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
Date: Mon, 08 Jun 2009 10:53:26 +1200
Message-ID: <4A2C44E6.4040401@opencloud.com> (raw)
In-Reply-To: <4A2AB526.1040907@invores.com>
References: <4A2AB526.1040907@invores.com>

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



view thread (6+ messages)  latest in thread

Message-ID: <4A2C44E6.4040401@opencloud.com>
Permalink:  ../4A2C44E6.4040401@opencloud.com/
Also on:    postgresql.org/message-id/4A2C44E6.4040401@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com, devans@invores.com
  Subject: Re: getColumnDisplayWidth() returns 0x7fffffff for char varying
  In-Reply-To: <4A2C44E6.4040401@opencloud.com>
  References: <4A2AB526.1040907@invores.com> <4A2C44E6.4040401@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox