| От | Tom Lane |
|---|---|
| Тема | Re: coalesce view error |
| Дата | |
| Msg-id | 6866.961165366@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | Re: coalesce view error (mikeo <mikeo@spectrumtelecorp.com>) |
| Ответы |
Re: coalesce view error
|
| Список | pgsql-general |
mikeo <mikeo@spectrumtelecorp.com> writes:
> thanks for the patch. one of my coworkers came up with a working
> solution:
>> Hi Mike, try adding ::text before the AS...
Hmm, offhand I do not see why that would work. The two fields you're
coalescing are both type text, no? In that case the cast ought to be
dropped out of the expression as redundant.
If the fields are varchar or bpchar, then casting to text would work
(at least in 7.0.*) because the parser would include an explicit
RelabelType node in the stored expression...
regards, tom lane
В списке pgsql-general по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера