Re: Problem with fixed length fields. - Mailing list pgsql-jdbc

From Tom Lane
Subject Re: Problem with fixed length fields.
Date
Msg-id 26657.1098556819@sss.pgh.pa.us
Whole thread Raw
In response to Re: Problem with fixed length fields.  (Kris Jurka <books@ejurka.com>)
Responses Re: Problem with fixed length fields.  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Kris Jurka <books@ejurka.com> writes:
> This is a problem with the driver because it is typing the '  ' values as
> text, not char, so the comparison doesn't work right because these two
> types handle trailing spaces differently.

Can you refrain from assigning a type at all?  People writing the
equivalent SQL directly would almost always write 'foo', not
'foo'::text or 'foo'::char.  The parser's behavior has been tuned
so that that usually works nicely.

            regards, tom lane

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: Problem with fixed length fields.
Next
From: "Serguei Mokhov"
Date:
Subject: Translation updates: ru.po