Re: Problem with VB6, DAO, Data Control: Update does not work

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Wolfgang Fürtbauer <w(dot)fuertbauer(at)eunet(dot)at>, pgsql-odbc(at)postgresql(dot)org
Subject: Re: Problem with VB6, DAO, Data Control: Update does not work
Date: 2004-08-13 21:53:44
Message-ID: 200408132353.44050.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

Wolfgang Fürtbauer wrote:
> I found out, after removing the "rabwert" = '5.225'::float4 from the
> where-clause,
> the update worked; so I had a look with the VB-Debugger at the value
> of data1.recordset!rabwert
> just before update and: the value was 5.225
>
> Why does the update not work ?

You can't reasonably compare floating point values for equality, because
they only store approximations of what you see. And you certainly
shouldn't store monetary values in floating point columns, because you
are asking for rounding problems. Always use numeric.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

In response to

Browse pgsql-odbc by date

  From Date Subject
Next Message Andrew Ayers 2004-08-13 23:31:13 Re: Problem with VB6, DAO, Data Control: Update does not work
Previous Message Peter Eisentraut 2004-08-13 19:01:17 Re: ODBC Standards Compliancy