Re: [BUGS] BUG #14800: substring produces different results with similar types
В списке pgsql-bugs по дате отправления:
| От | Tom Lane |
|---|---|
| Тема | Re: [BUGS] BUG #14800: substring produces different results with similar types |
| Дата | |
| Msg-id | 30250.1504709462@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: [BUGS] BUG #14800: substring produces different results withsimilar types (Francisco Olarte <folarte@peoplecall.com>) |
| Ответы |
Re: [BUGS] BUG #14800: substring produces different results withsimilar types
Re: [BUGS] BUG #14800: substring produces different results withsimilar types |
| Список | pgsql-bugs |
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
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера