problem with numeric

From: "Ken J(dot) Wright" <ken(at)ori-ind(dot)com>
To: pgsql-interfaces(at)postgreSQL(dot)org
Subject: problem with numeric
Date: 2000-02-01 17:57:14
Message-ID: 3.0.1.32.20000201095714.00b16440@ori-ind.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

v6.5.3

While testing the new ODBC driver I ran into the following problem with
queries on numeric fields. Unless the values are surrounded by single quote
marks, the query fails with the message: Unable to identify an operator '='
for types 'numeric' and 'float'. This occurs in the WHERE clause of the
query.

SELECT * from tbl WHERE numfld = 99.125;
UPDATE tbl SET numfld = 99.13 WHERE numfld = 99.125;

An INSERT works fine.

These statements execute ok on float fields, but not numeric. This happens
via ODBC and also with psql from a Linux console.

Ken

Responses

Browse pgsql-interfaces by date

  From Date Subject
Next Message Ken J. Wright 2000-02-01 18:06:12 ODBC bind trouble with bigint
Previous Message marc.travaille 2000-02-01 17:00:47 Help