X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id F015F9FA147 for ; Thu, 6 Jul 2006 10:17:14 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 98044-08 for ; Thu, 6 Jul 2006 10:17:11 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey- Received: from ug-out-1314.google.com (ug-out-1314.google.com [66.249.92.169]) by postgresql.org (Postfix) with ESMTP id 390869FA0EC for ; Thu, 6 Jul 2006 10:17:10 -0300 (ADT) Received: by ug-out-1314.google.com with SMTP id a2so2662180ugf for ; Thu, 06 Jul 2006 06:17:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:cc:in-reply-to:mime-version:content-type:references; b=CXpNZaeUErdxbssG5BstPDUiB3Fl/m9EHqG8PMPSE5lsd69aPRrhlN8Xpt4k4CDlNL132dMx1N1oKTSTZT18d1QQ6YcSEC1vxLziBe/LtBSTCLH3Y7uzmu1TBFJKCvKMYnW0xXn+OaHDrmwkX6/F07fX6LUbZM7EiPr1z2xOxJg= Received: by 10.67.101.10 with SMTP id d10mr696850ugm; Thu, 06 Jul 2006 06:17:08 -0700 (PDT) Received: by 10.66.239.19 with HTTP; Thu, 6 Jul 2006 06:17:08 -0700 (PDT) Message-ID: <6ff7932d0607060617mda3ffb4sffdc8af30878a5eb@mail.gmail.com> Date: Thu, 6 Jul 2006 15:17:08 +0200 From: "Yann PICHOT" To: "Kris Jurka" Subject: Re: Fwd: Diffrence between 8.0.3 and 8.1.3 Cc: pgsql-jdbc@postgresql.org In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_58506_5997459.1152191828599" References: <6ff7932d0607030819o4775c43fr2762dd390d4cd76@mail.gmail.com> <6ff7932d0607031132v4722bef8h9b98a45b072f2cc6@mail.gmail.com> <6ff7932d0607040107n30227e50vc8990eefdeb03133@mail.gmail.com> <6ff7932d0607042357x4a464cdv2167c4b1ab12e775@mail.gmail.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200607/14 X-Sequence-Number: 15440 ------=_Part_58506_5997459.1152191828599 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline 2006/7/5, Kris Jurka : > > > > 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 > Thanks, i'll follow the problem in the bug list. -- Yann ------=_Part_58506_5997459.1152191828599 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline

2006/7/5, Kris Jurka <books@ejurka.com>:


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


Thanks, i'll follow the problem in the bug list.

--
Yann ------=_Part_58506_5997459.1152191828599--