| От | Tom Lane |
|---|---|
| Тема | Re: BUG #3259: Problem with automatic string cast |
| Дата | |
| Msg-id | 17031.1178030183@sss.pgh.pa.us обсуждение исходный текст |
| Ответ на | BUG #3259: Problem with automatic string cast ("Thomas" <thbley@gmail.com>) |
| Ответы |
Re: BUG #3259: Problem with automatic string cast
|
| Список | pgsql-bugs |
"Thomas" <thbley@gmail.com> writes:
> select * from (select 'years' as recurrence) p where recurrence = 'years'
> it gives:
> ERROR: failed to find conversion function from "unknown" to text
Try casting the unknown value to some specific type, eg
regression=# select * from (select 'years'::text as recurrence) p where recurrence = 'years';
recurrence
------------
years
(1 row)
Do you have a less artificial example where not resolving the
subselect's output type is a problem? We could change it to
force the type to text sooner, but I'm afraid that that would
break other people's usages.
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера