Re: BUG #1862: ECPG Connect, host variable trailing blanks - Mailing list pgsql-bugs

From Bruce Momjian
Subject Re: BUG #1862: ECPG Connect, host variable trailing blanks
Date
Msg-id 200509161600.j8GG0xD14689@candle.pha.pa.us
Whole thread Raw
In response to Re: BUG #1862: ECPG Connect, host variable trailing blanks  (Jim.Gray@Bull.com)
Responses Re: BUG #1862: ECPG Connect, host variable trailing blanks  (Michael Fuhr <mike@fuhr.org>)
List pgsql-bugs
Jim.Gray@Bull.com wrote:
> What do you think of an Postgres option that would enable stripping of
> trailing blanks from connect host variables when turned ON?

I would not support such an option.  If we added flags for every single
thing that someone wanted, the system would be unusable.

> This would allow current behavior to be supported by ECPG and the
> Postgres server, but allow applications that need the behavior (like
> a Cobol/SQL preprocessor for Postgres), to make use of it.
>
> When I searched the mail archives, I found that others had run into
> this same problem, in this case with an ODBC driver:
>    http://archives.postgresql.org/pgsql-interfaces/1998-08/msg00000.php

Just because Oracle does it doesn't mean we should.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073

pgsql-bugs by date:

Previous
From: Robert Treat
Date:
Subject: Re: BUG #1885: SHOW autovacuum settings tab completion broken
Next
From: Michael Fuhr
Date:
Subject: Re: BUG #1862: ECPG Connect, host variable trailing blanks