Re: BUG #1862: ECPG Connect, host variable trailing blanks

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #1862: ECPG Connect, host variable trailing blanks
Дата
Msg-id 255.1126239324@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: BUG #1862: ECPG Connect, host variable trailing blanks  (Michael Fuhr <mike@fuhr.org>)
Ответы Re: BUG #1862: ECPG Connect, host variable trailing blanks  (Jim.Gray@Bull.com)
Список pgsql-bugs
Michael Fuhr <mike@fuhr.org> writes:
> If you think this behavior should be changed then propose it on
> pgsql-hackers and discuss it with the developers.

I doubt we'll consider changing it.  If I haven't missed any of the
details, the critical points here are

(1) User names containing trailing (or embedded) spaces are legal.
    Not a very good idea maybe, but legal both per SQL spec and per
    our historical practice.

(2) Making ECPG strip trailing spaces would render it unable to
    connect as such a user.

I don't think ECPG has any business deciding that trailing spaces are
insignificant.  If that's the case in your application environment,
fine: strip the spaces at the application level.  But don't expect a
general-purpose library to make that policy choice for you.

            regards, tom lane

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Michael Fuhr
Дата:
Сообщение: Re: BUG #1862: ECPG Connect, host variable trailing blanks
Следующее
От: Jim.Gray@Bull.com
Дата:
Сообщение: Re: BUG #1862: ECPG Connect, host variable trailing blanks