Re: [BUGS] BUG #14800: substring produces different results withsimilar types

Поиск
Список
Период
Сортировка
От Артём Костин
Тема Re: [BUGS] BUG #14800: substring produces different results withsimilar types
Дата
Msg-id CALQQPTeL=9syDfDEO=wRs8u-vYwV3WP9t2bLVt85Ph4OhQ8hMw@mail.gmail.com
обсуждение исходный текст
Ответ на Re: [BUGS] BUG #14800: substring produces different results with similar types  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: [BUGS] BUG #14800: substring produces different results with similar types  (Tom Lane <tgl@sss.pgh.pa.us>)
Re: [BUGS] BUG #14800: substring produces different results withsimilar types  (Francisco Olarte <folarte@peoplecall.com>)
Список pgsql-bugs
But documentation says different. So this behaviour is unxpected. 

6 сент. 2017 г. 5:51 PM пользователь "Tom Lane" <tgl@sss.pgh.pa.us> написал:
Francisco Olarte <folarte@peoplecall.com> writes:
> Anyway, you may notice char() discards trailing blanks, varchar does not:

More precisely, converting from char(n) to varchar or text discards
trailing blanks.  Since both substring() and the || operator take
text argument types, an implicit coercion to text is happening in
these examples ... and that's where the blanks went.

                        regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14800: substring produces different results with similar types
Следующее
От: Tom Lane
Дата:
Сообщение: Re: [BUGS] BUG #14800: substring produces different results with similar types