Re: Can't compare decimal columns??? - Mailing list pgsql-general

From Stephan Szabo
Subject Re: Can't compare decimal columns???
Date
Msg-id Pine.BSF.4.21.0101141657540.13622-100000@megazone23.bigpanda.com
Whole thread Raw
In response to Can't compare decimal columns???  ("Brett W. McCoy" <bmccoy@chapelperilous.net>)
Responses Re: Can't compare decimal columns???
List pgsql-general
On Sun, 14 Jan 2001, Brett W. McCoy wrote:

> Why isn't there a >= or <= operator defined for floating point datatypes?
>
> As an example:
>
> bmccoy=> select * from account where balance between 20.00 and 99.00;
> ERROR:  Unable to identify an operator '>=' for types 'numeric' and 'float8'
>         You will have to retype this query using an explicit cast

I believe there was discussion about these things on -hackers a while
back.  The type promotion and which type a constant is seen as is kind of
wierd right now.  The query will probably work with explicit typecast to
numeric for the constants.


pgsql-general by date:

Previous
From: Mike Castle
Date:
Subject: Re: Re: starting PGSQL automatically on Redhat 6.2
Next
From: The Hermit Hacker
Date:
Subject: Re: mnogosearch -- pgsql seem so slow, please help me find out why