Re: numeric type and odbc from access 2000 - Mailing list pgsql-general

From Richard Huxton
Subject Re: numeric type and odbc from access 2000
Date
Msg-id 006a01c0911d$3bc32de0$1001a8c0@archonet.com
Whole thread Raw
In response to numeric type and odbc from access 2000  ("Shahab Asgharzadeh" <shahab@nwu.edu>)
Responses Re: numeric type and odbc from access 2000  ("Stefan Waidele jun." <St.Waidele.jun@Krone-Neuenburg.de>)
List pgsql-general
From: "Shahab Asgharzadeh" <shahab@nwu.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


pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Number of open files
Next
From: Brice Ruth
Date:
Subject: Re: [SQL] Re: SQL Join - MySQL/PostgreSQL difference?