pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tim Holloway <mtsinc@southeast.net>
To: pgsql-admin <pgsql-admin@postgresql.org>
Subject: jdbc bug
Date: Tue, 01 Feb 2000 19:39:27 -0500
Message-ID: <38977CBF.EF06295@southeast.net> (raw)

Postgresql v6.5.2 - postgresql.jar

The ResultSet metadata function getColumnDisplaySize() is returning the number of characters in the column's name.

I don't THINK SO.....

1. The JavaDocs say it's supposed to be the "the column's normal max width in chars". I take this as the DATA width, not
the name width. After all:

2. It REALLY screws up Symantec's wizard-generated code when a column named "foo" is loaded with a 25-character street
address. An uncaught exception is thrown saying the column is only 3 characters wide.

3. If I actually wanted to know that, I could just use the length function on the getColumnName() string.



Message-ID: <38977CBF.EF06295@southeast.net>
Permalink:  ../38977CBF.EF06295@southeast.net/
Also on:    postgresql.org/message-id/38977CBF.EF06295@southeast.net

 · 

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-admin@postgresql.org
  Cc: mtsinc@southeast.net
  Subject: Re: jdbc bug
  In-Reply-To: <38977CBF.EF06295@southeast.net>
  References: <38977CBF.EF06295@southeast.net>

* 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