Re: Bug #775: Unable to identify an operator '=' for types 'numeric' and 'double precision' - Mailing list pgsql-bugs

From Tom Lane
Subject Re: Bug #775: Unable to identify an operator '=' for types 'numeric' and 'double precision'
Date
Msg-id 3211.1032470040@sss.pgh.pa.us
Whole thread Raw
In response to Bug #775: Unable to identify an operator '=' for types 'numeric' and 'double precision'  (pgsql-bugs@postgresql.org)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: Server hangs on multiple connections
Next
From: David Christian
Date:
Subject: Re: Server hangs on multiple connections