Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text

Поиск
Список
Период
Сортировка
От Pavel Stehule
Тема Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text
Дата
Msg-id 162867790901052230l25b10f08qa35f56856b9cc4c6@mail.gmail.com
обсуждение исходный текст
Ответ на ERROR: failed to find conversion function from "unknown" to text  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Ответы Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text  ("Gurjeet Singh" <singh.gurjeet@gmail.com>)
Список pgsql-general
Hello

2009/1/6 Gurjeet Singh <singh.gurjeet@gmail.com>:
> Q1: select '' union all select ''
> Q2: select '' union all select * from (select '' ) as s
>
> version: PostgreSQL 8.3.1, compiled by Visual C++ build 1400
>
> Hi All,
>
>     Q1 works just fine, but Q2 fails with:
>
> ERROR:  failed to find conversion function from "unknown" to text
>
>     Q2 is a generalization of a huge query we are facing, which we cannot
> modify. I don't think this is a 'removed-casts' problem generally faced in
> 8.3, but I may be wrong. Will adding some cast resolve this?

yes

postgres=#  select '' union all select * from (select ''::text ) as s;
 ?column?
----------


(2 rows)

regards
Pavel Stehule

>
> Best regards,
> --
> gurjeet[.singh]@EnterpriseDB.com
> singh.gurjeet@{ gmail | hotmail | indiatimes | yahoo }.com
>
> EnterpriseDB      http://www.enterprisedb.com
>
> Mail sent from my BlackLaptop device
>

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

Предыдущее
От: "Gurjeet Singh"
Дата:
Сообщение: ERROR: failed to find conversion function from "unknown" to text
Следующее
От: "Gurjeet Singh"
Дата:
Сообщение: Re: [HACKERS] ERROR: failed to find conversion function from "unknown" to text