Re: [BUGS] BUG #14478: Right Trim trims too much?

Поиск
Список
Период
Сортировка
От Terje Elde
Тема Re: [BUGS] BUG #14478: Right Trim trims too much?
Дата
Msg-id 8D6B90F8-6952-4342-93E5-66F7CDE42D66@elde.net
обсуждение исходный текст
Ответ на [BUGS] BUG #14478: Right Trim trims too much?  (nte@mustinformatique.fr)
Ответы Re: [BUGS] BUG #14478: Right Trim trims too much?  (Nathanael Terrien <nte@mustinformatique.fr>)
Список pgsql-bugs


On 26 Dec 2016, at 10:36, nte@mustinformatique.fr wrote:

Not sure if a bug or if I'm missing something but this query produces weird
results with TRIM and TRIM:
SELECT DISTINCT TRIM(TRAILING FROM 'cnam_lpp_histo_io','_io')

The devil is in the details. Trim won't remove the string "_io", it'll trim off the characters "_", "i" and "o". And with that logic, the "o" at the end of "histo" is correctly removed as well.

IOW, works as intended and advertised.

Doc here:

Terje

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

Предыдущее
От: nte@mustinformatique.fr
Дата:
Сообщение: [BUGS] BUG #14478: Right Trim trims too much?
Следующее
От: Nathanael Terrien
Дата:
Сообщение: Re: [BUGS] BUG #14478: Right Trim trims too much?