From: Paul Thomas <paul@tmsl.demon.co.uk>
To: pgsql-general @ postgresql . org <pgsql-general@postgresql.org>
Subject: Re: PostgreSQL delete the blank in the end of the String automatically. how can I avoid it?
Date: Fri, 28 May 2004 14:39:20 +0100
Message-ID: <20040528143920.A14794@bacon> (raw)
In-Reply-To: <28402.129.187.254.13.1085745896.squirrel@129.187.254.13>
References: <28402.129.187.254.13.1085745896.squirrel@129.187.254.13>
On 28/05/2004 13:04 xier@in.tum.de wrote:
> hello,
>
> my Name is Rong. I am student at TU-Munich. I have some questions for
> Postgresql7.2 under SuSe Linux.
> Postgresql7.2 under SuSe Linux8.0.
> I use PostgreSQL7.2 with PGAdminII1.4.2 under Windows2000.
>
> I insert a String from Teleform6.0 of Cardiff through ODBC in table of
> PostgreSQL.
> There should be some blank in the End of the String. e.g: "data
> "
> But there ist no blank in the end of the String in the table. e.g: "data"
> It means, that PostgreSQL delete the blank in the end of the String
> automatically.
> But I need the blank in the end of the String.
> how can I avoid it?
AFAICT, it's not PostgreSQL which is causing your problem. I've just
tested against 7.2.1 using psql and it does _not_ remove trailing spaces.
I think your problem is with your client code.
HTH
BTW, 7.2 is very old. I'd recommend upgrading.
--
Paul Thomas
+------------------------------+---------------------------------------------+
| Thomas Micro Systems Limited | Software Solutions for
Business |
| Computer Consultants |
http://www.thomas-micro-systems-ltd.co.uk |
+------------------------------+---------------------------------------------+
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-odbc@postgresql.org
Cc: paul@tmsl.demon.co.uk, pgsql-general@postgresql.org
Subject: Re: PostgreSQL delete the blank in the end of the String automatically. how can I avoid it?
In-Reply-To: <20040528143920.A14794@bacon>
References: <28402.129.187.254.13.1085745896.squirrel@129.187.254.13> <20040528143920.A14794@bacon>
* 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