Re: BUG #5799: failed to find conversion function from unknown to text

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #5799: failed to find conversion function from unknown to text
Дата
Msg-id 304.1292942563@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #5799: failed to find conversion function from unknown to text  ("Sandro Santilli" <strk@keybit.net>)
Список pgsql-bugs
"Sandro Santilli" <strk@keybit.net> writes:
>  SELECT a, b, ST_RelateMatch(a,b) FROM
>   ( SELECT '101202FFF' as a, 'TTTTTTFFF' as b) as f;
> Results in:
>  ERROR:  failed to find conversion function from unknown to text

Cast those unknown literals to text explicitly, ie

  SELECT a, b, ST_RelateMatch(a,b) FROM
   ( SELECT '101202FFF'::text as a, 'TTTTTTFFF'::text as b) as f;

We don't support doing it the other way because retroactively deciding
at the top level that the sub-select's outputs should have been text
might change the semantics of the sub-select (consider cases involving
DISTINCT for example).

            regards, tom lane

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

Предыдущее
От: Dave Page
Дата:
Сообщение: Re: BUG #5752: installer does not give proper os privileges on folders
Следующее
От: "Carlo Curatolo"
Дата:
Сообщение: BUG #5800: "corrupted" error messages (encoding problem ?)