5 messages in org.postgresql.pgsql-jdbcRe: Diffrence between 8.0.3 and 8.1.3
FromSent OnAttachments
Yann PICHOTJul 3, 2006 8:19 am 
Kris JurkaJul 3, 2006 8:42 am 
Yann PICHOTJul 4, 2006 11:56 pm 
Kris JurkaJul 5, 2006 12:31 pm 
Yann PICHOTJul 6, 2006 6:16 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: Diffrence between 8.0.3 and 8.1.3Actions...
From:Kris Jurka (boo@ejurka.com)
Date:Jul 3, 2006 8:42:52 am
List:org.postgresql.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?