Re: Bug #775: Unable to identify an operator '=' for types 'numeric' and 'double precision'

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Bug #775: Unable to identify an operator '=' for types 'numeric' and 'double precision'
Дата
Msg-id 3211.1032470040@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Bug #775: Unable to identify an operator '=' for types 'numeric' and 'double precision'  (pgsql-bugs@postgresql.org)
Список pgsql-bugs
pgsql-bugs@postgresql.org writes:
>  Unable to identify an operator '=' for types 'numeric' and 'double precision'

At the moment you have to cast the literal to numeric (or cast the
column to float8, if you'd rather use float arithmetic, which I
imagine you wouldn't).  The existing parser doesn't see any reason
to prefer either choice over the other, so it throws up its hands.

In 7.3 I expect this will behave the way you'd like.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Server hangs on multiple connections
Следующее
От: David Christian
Дата:
Сообщение: Re: Server hangs on multiple connections