Re: Diffrence between 8.0.3 and 8.1.3

From: Kris Jurka <books(at)ejurka(dot)com>
To: Yann PICHOT <ypichot(at)gmail(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Diffrence between 8.0.3 and 8.1.3
Date: 2006-07-03 15:43:15
Message-ID: Pine.BSO.4.63.0607031038150.850@leary2.csoft.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs pgsql-jdbc

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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Phil Frost 2006-07-03 18:19:09 BUG #2512: pg_dump produces unrestorable output when table and serial sequence are not in the same schema
Previous Message Yann PICHOT 2006-07-03 15:19:35 Diffrence between 8.0.3 and 8.1.3

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2006-07-03 18:08:50 Re: [JDBC] Is what I want possible and if so how?
Previous Message Yann PICHOT 2006-07-03 15:19:35 Diffrence between 8.0.3 and 8.1.3