Re: numeric type and odbc from access 2000

From: "Richard Huxton" <dev(at)archonet(dot)com>
To: "Shahab Asgharzadeh" <shahab(at)nwu(dot)edu>, <pgsql-general(at)postgresql(dot)org>
Subject: Re: numeric type and odbc from access 2000
Date: 2001-02-07 15:47:08
Message-ID: 006a01c0911d$3bc32de0$1001a8c0@archonet.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

From: "Shahab Asgharzadeh" <shahab(at)nwu(dot)edu>

> Access will write the sql as:
> delete from "tablename" where "col1" = 1234 AND "col2" = 'text' AND "col3"
=
> 100.200
>
> ERROR: Unable to identify an operator '=' for types 'numeric' and
'float8'
> You will have to retype this query using an explicit cast
>
It is treating "100.200" as float and can't find an '=' operator that
matches numeric with float. You can handle it with

where col3=100.200::numeric

- Richard Huxton

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2001-02-07 15:48:21 Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?
Previous Message Thomas T. Thai 2001-02-07 15:47:01 mysql-est timestamp