From: Tom Lane <tgl@sss.pgh.pa.us>
To: Kris Jurka <books@ejurka.com>
Cc: Dave Smith <dave.smith@candata.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Problem with fixed length fields.
Date: Sat, 23 Oct 2004 14:40:19 -0400
Message-ID: <26657.1098556819@sss.pgh.pa.us> (raw)
In-Reply-To: <Pine.BSO.4.56.0410231239390.19312@leary.csoft.net>
References: <1098532450.2684.3.camel@davehome>
<Pine.BSO.4.56.0410231239390.19312@leary.csoft.net>
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: tgl@sss.pgh.pa.us, books@ejurka.com, dave.smith@candata.com
Subject: Re: Problem with fixed length fields.
In-Reply-To: <26657.1098556819@sss.pgh.pa.us>
References: <1098532450.2684.3.camel@davehome> <Pine.BSO.4.56.0410231239390.19312@leary.csoft.net> <26657.1098556819@sss.pgh.pa.us>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox