pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Yann PICHOT <ypichot@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Diffrence between 8.0.3 and 8.1.3
Date: Mon, 3 Jul 2006 10:43:15 -0500 (EST)
Message-ID: <Pine.BSO.4.63.0607031038150.850@leary2.csoft.net> (raw)
In-Reply-To: <6ff7932d0607030819o4775c43fr2762dd390d4cd76@mail.gmail.com>
References: <6ff7932d0607030819o4775c43fr2762dd390d4cd76@mail.gmail.com>



On Mon, 3 Jul 2006, Yann PICHOT wrote:

> I use this JDBC Driver :
> JDBC driver build number : 8.1.407-JDBC3
> Server version : test do on 8.0.3 (linux), 8.1.3 (linux) and 8.1.2 (windows)
>
> I have problem with the method getColumnDisplaySize in ResultSetMetaData
> class.
>
>       String SQLselect = "SELECT col1, cast(' ' as varchar(3)) as mycol
> FROM mytable";
>       stmt = conn.createStatement();
>       ResultSet res = stmt.executeQuery(SQLselect);
>       ResultSetMetaData resMD = res.getMetaData();
>       System.out.println(resMD.getColumnDisplaySize(2));
>
> When i connect to 8.0.3 database the methode getColumnDisplaySize return 3,
> a good value
> When i connect to 8.1.2 or 8.1.3 database the methode getColumnDisplaySize
> return -5, a bad value.
>

I cannot reproduce this with a 8.1.4 database and nothing in the 
8.1.3 -> 8.1.4 release notes suggest that this behavior should have 
changed.  Are you sure you're exactly describing your test, jdbc driver, 
and server versions?

Kris Jurka



view thread (5+ messages)  latest in thread

Message-ID: <Pine.BSO.4.63.0607031038150.850@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.63.0607031038150.850@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.63.0607031038150.850@leary2.csoft.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-jdbc@postgresql.org
  Cc: books@ejurka.com, ypichot@gmail.com
  Subject: Re: Diffrence between 8.0.3 and 8.1.3
  In-Reply-To: <Pine.BSO.4.63.0607031038150.850@leary2.csoft.net>
  References: <6ff7932d0607030819o4775c43fr2762dd390d4cd76@mail.gmail.com> <Pine.BSO.4.63.0607031038150.850@leary2.csoft.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