Received: from whidbey.whidbey.com (ns.whidbey.com [204.94.52.2]) by hub.org (8.9.1/8.9.1) with ESMTP id QAA09034 for ; Thu, 31 Dec 1998 16:43:43 -0500 (EST) (envelope-from ken@ori-ind.com) Received: from a540-tb2k415 (b3-53-193.whidbey.com [204.94.53.193]) by whidbey.whidbey.com (8.8.7/8.8.7) with SMTP id NAA13362 for ; Thu, 31 Dec 1998 13:42:07 -0800 (PST) Message-Id: <3.0.32.19981231135827.00796e40@ori-ind.com> X-Sender: ken@ori-ind.com X-Mailer: Windows Eudora Pro Version 3.0 (32) Date: Thu, 31 Dec 1998 13:58:31 -0800 To: pgsql-interfaces@postgreSQL.org From: "Ken J. Wright" Subject: Re: [INTERFACES] Money type mapping to VB5 Jet workspace Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" This is also a problem with the BDE & also with libpq. The odbc driver could/should? fix this, but then what about libpq? The docs say the money type is going away someday. Should we avoid using it? I believe a proper fix involves both the backend & frontends. Forcing quotes around a numeric value throws everyone off. Developer comments? Ken At 03:16 PM 12/31/98 +0000, you wrote: >Hi, > I'm having problems with the mapping of the money type to an >appropriate type in Visual Basic 5.0. Presently, it is coming across >as type float8, and if that were acceptable to me, it isn't when I >update, because I get an error '524': > > parser: attribute 'amount' is of type 'money' but expression is of >type 'float8' >You will need to rewrite or cast the expression. > >I can successfully update only with an ODBC direct workspace, where I >can add single quotes around the value. I would prefer to be able to >use the Jet workspace, however, as well as data bound controls. >Is it possible to have it map to the currency data type? > >Thanks, >Bill > >