X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 96F86D1B191 for ; Sat, 29 May 2004 05:59:01 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 35481-06 for ; Sat, 29 May 2004 05:59:00 -0300 (ADT) Received: from anchor-post-35.mail.demon.net (anchor-post-35.mail.demon.net [194.217.242.85]) by svr1.postgresql.org (Postfix) with ESMTP id A36DAD1B17C for ; Sat, 29 May 2004 05:58:57 -0300 (ADT) Received: from tmsl-adsl.demon.co.uk ([80.177.114.181] helo=bacon.tmsl.demon.co.uk) by anchor-post-35.mail.demon.net with esmtp (Exim 3.35 #1) id 1BTzgA-0006KX-0Z for pgsql-general@postgresql.org; Sat, 29 May 2004 09:58:59 +0100 Date: Sat, 29 May 2004 09:58:56 +0100 From: Paul Thomas To: "pgsql-general @ postgresql . org" Subject: Re: PostgreSQL delete the blank in the end of the String automatically. how can I avoid it? Message-ID: <20040529095856.A16618@bacon> References: <20040528143920.A14794@bacon> <20040528194606.38576.qmail@web20802.mail.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; format=flowed; charset=ISO-8859-1 In-Reply-To: <20040528194606.38576.qmail@web20802.mail.yahoo.com>; from jeff_eckermann@yahoo.com on Fri, May 28, 2004 at 20:46:06 +0100 X-Mailer: Balsa 1.2.3 Lines: 24 X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200405/874 X-Sequence-Number: 61308 On 28/05/2004 20:46 Jeff Eckermann wrote: > I had a thought that the ODBC driver could be > stripping the trailing spaces, but the test I just did > (using MS Access via ODBC) worked fine. But that's using a different ODBC driver so won't show a possible bug in the PG driver. > Thinking some more, I used a "text" type field for my > test. I have some recollection that varchar(n) fields > _will_ strip trailing spaces. But I'm too lazy to > test that right now. I was testing using a varchar(n) field. -- Paul Thomas +------------------------------+---------------------------------------------+ | Thomas Micro Systems Limited | Software Solutions for Business | | Computer Consultants | http://www.thomas-micro-systems-ltd.co.uk | +------------------------------+---------------------------------------------+