Re: Fwd: Diffrence between 8.0.3 and 8.1.3 - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Fwd: Diffrence between 8.0.3 and 8.1.3
Date
Msg-id Pine.BSO.4.63.0607051425130.31538@leary2.csoft.net
Whole thread Raw
In response to Fwd: Diffrence between 8.0.3 and 8.1.3  ("Yann PICHOT" <ypichot@gmail.com>)
Responses Re: Fwd: Diffrence between 8.0.3 and 8.1.3  ("Yann PICHOT" <ypichot@gmail.com>)
List pgsql-jdbc

On Wed, 5 Jul 2006, Yann PICHOT wrote:

> When i use this SQL request : SELECT col1, cast(' ' as varchar(3)) as mycol
> FROM mytable, getColumnDisplaySize return -5.
> When i use this SQL request : SELECT col1, cast(' ' as varchar(3)) as mycol,
> getColumnDisplaySize return 3 !!!!
>

OK, I misunderstood your test case and was only looking at the second
version which works.  As you noted earlier the server is responding with a
different typmod value, so this is not a JDBC problem, but a server
regression and I've forwarded this on to the -bugs list.  To summarize for
them:

In 8.0 "SELECT ' '::varchar(3) FROM tab" retained the typmod value
specified in the query, but in 8.1 it is lost and -1 is used instead.

Kris Jurka

pgsql-jdbc by date:

Previous
From: "Yann PICHOT"
Date:
Subject: Fwd: Diffrence between 8.0.3 and 8.1.3
Next
From: Skaljac Bojan
Date:
Subject: I have implement set/get stored procedure parameter by name