Re: Problem with fixed length fields.

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Kris Jurka <books(at)ejurka(dot)com>
Cc: Dave Smith <dave(dot)smith(at)candata(dot)com>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: Problem with fixed length fields.
Date: 2004-10-23 18:40:19
Message-ID: 26657.1098556819@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris Jurka <books(at)ejurka(dot)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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2004-10-23 20:44:50 Re: Problem with fixed length fields.
Previous Message Kris Jurka 2004-10-23 17:50:42 Re: Problem with fixed length fields.