X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id F04775E46DF for ; Fri, 13 Aug 2004 18:53:45 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 94753-10 for ; Fri, 13 Aug 2004 21:53:44 +0000 (GMT) Received: from mail.gmx.net (imap.gmx.net [213.165.64.20]) by svr1.postgresql.org (Postfix) with SMTP id B93915E46E2 for ; Fri, 13 Aug 2004 18:53:42 -0300 (ADT) Received: (qmail 10071 invoked by uid 65534); 13 Aug 2004 21:53:44 -0000 Received: from dsl-082-082-232-112.arcor-ip.net (EHLO colt.pezone.net) (82.82.232.112) by mail.gmx.net (mp001) with SMTP; 13 Aug 2004 23:53:44 +0200 X-Authenticated: #495269 From: Peter Eisentraut To: Wolfgang =?iso-8859-1?q?F=FCrtbauer?= , pgsql-odbc@postgresql.org Subject: Re: Problem with VB6, DAO, Data Control: Update does not work Date: Fri, 13 Aug 2004 23:53:44 +0200 User-Agent: KMail/1.5.1 References: <6.0.3.0.2.20040813204437.026d24e0@mbox.tiscali-business.at> In-Reply-To: <6.0.3.0.2.20040813204437.026d24e0@mbox.tiscali-business.at> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-Disposition: inline Message-Id: <200408132353.44050.peter_e@gmx.net> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/29 X-Sequence-Number: 4338 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/