X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 2E583EAE560 for ; Sat, 23 Oct 2004 19:39:49 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 18426-02 for ; Sat, 23 Oct 2004 18:39:58 +0000 (GMT) Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by svr1.postgresql.org (Postfix) with ESMTP id C3DB6EAC8F4 for ; Sat, 23 Oct 2004 19:39:44 +0100 (BST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.1/8.13.1) with ESMTP id i9NIeJaX026658; Sat, 23 Oct 2004 14:40:19 -0400 (EDT) To: Kris Jurka Cc: Dave Smith , pgsql-jdbc@postgresql.org Subject: Re: Problem with fixed length fields. In-reply-to: References: <1098532450.2684.3.camel@davehome> Comments: In-reply-to Kris Jurka message dated "Sat, 23 Oct 2004 12:50:42 -0500" Date: Sat, 23 Oct 2004 14:40:19 -0400 Message-ID: <26657.1098556819@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/243 X-Sequence-Number: 11348 Kris Jurka 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