Re: Ocasional problems !!!!

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Ocasional problems !!!!
Дата
Msg-id 3A38F1FD.493C0314@alumni.caltech.edu
обсуждение исходный текст
Ответ на Ocasional problems !!!!  (Luis Sousa <llsousa@ualg.pt>)
Список pgsql-hackers
> i'm having this message:
> ERROR:  Unable to identify an operator '=' for types 'int4' and 'text'
>         You will have to retype this query using an explicit cast

Without knowing your schema and query, we can't tell you exactly. But
your query is trying to compare a string to an integer, which you can do
by using an explicit cast. For example,
 select text '123' = 123;

will fail, but
 select cast((text '123') as integer) = 123;

will succeed.
                   - Thomas


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

Предыдущее
От: Zeugswetter Andreas SB
Дата:
Сообщение: AW: fs full stops postmaster
Следующее
От: "Michael Richards"
Дата:
Сообщение: Re: (Updated) Table File Format