Re: trim(both) problem?

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: trim(both) problem?
Дата
Msg-id 20080425134220.S8763@megazone.bigpanda.com
обсуждение исходный текст
Ответ на trim(both) problem?  (Emi Lu <emilu@encs.concordia.ca>)
Ответы Re: trim(both) problem?  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Список pgsql-sql
On Fri, 25 Apr 2008, Emi Lu wrote:

> Hi,
>
> Isn't this a bug about trim both.
>
>   select trim(both '<BR/>' from '<BR/>ROI Engineering Inc.');
>          btrim
> ---------------------
>   OI Engineering Inc.
> (1 row)
>
>
> "R" is missing? How?

Trim doesn't do what you think it does. The '<BR/>' in the above is not a
string to remove it is a list of characters to remove.  Thus, the R is
removed as it matches a character given.




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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: trim(both) problem?
Следующее
От: "Fernando Hevia"
Дата:
Сообщение: Re: trim(both) problem?