Received: from bologna.nettuno.it (bologna.nettuno.it [193.43.2.1]) by hub.org (8.9.3/8.9.3) with ESMTP id GAA54076 for ; Tue, 29 Jun 1999 06:55:15 -0400 (EDT) (envelope-from jose@sferacarta.com) Received: from proxy.sferacarta.com (mail@sfcabop1.nettuno.it [193.207.10.213]) by bologna.nettuno.it (8.8.6/8.8.8/NETTuno 3.2) with ESMTP id MAA06670; Tue, 29 Jun 1999 12:51:11 +0200 (MDT) Received: from rosso.sferacarta.com (sferacarta.com) [10.20.30.5] by proxy.sferacarta.com with esmtp (Exim 2.05 #1 (Debian)) id 10yxPl-0000ad-00; Tue, 29 Jun 1999 12:55:05 +0000 Message-ID: <3778A4B3.20036FEE@sferacarta.com> Date: Tue, 29 Jun 1999 12:49:23 +0200 From: =?iso-8859-1?Q?Jos=E9?= Soares X-Mailer: Mozilla 4.5 [it] (Win95; I) X-Accept-Language: it MIME-Version: 1.0 To: Herouth Maoz CC: JT Kirkpatrick , "'pgsql-interfaces@hub.org'" Subject: Re: [INTERFACES] RE: [ADMIN] float4 References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Herouth Maoz ha scritto: > At 23:53 +0300 on 28/06/1999, JT Kirkpatrick wrote: > > > ouch. hard to think of dollars only when you are paying vendors, > > technicians, billing customers, etc. surely i won't have to make an int > > field for the dollars and an int field for the cents!!! the money field > > would work nicely if the odbc driver would handle it correctly! > > > > i forwarded this to the odbc list -- any idea why a money field can't be > > used from msaccess97 through the odbc?? > > Perhaps as a work around you should use an integer field, which is scaled > two places to the left? That is, if you have 300.52 dollars, you keep the > number 30052 in the field. Surely you can play around with the forms you > use, so that the real field will be hidden, and get its value from a > visible field multiplied by 100. > > It becomes a problem if your sums can go beyond the 2^31 limit. But if you > have 6.4, you may use int8 and double your upper limit. > > The problem with the money type is that queries on it return it with a > currency mark, which I'm sure is bad for odbc. > > Herouth > > -- > Herouth Maoz, Internet developer. > Open University of Israel - Telem project > http://telem.openu.ac.il/~herutma I would like to reccomend to use the DECIMAL type instead of MONEY but I see that PSQLODBC doesn't recognize yet this type, maybe we can ask Byron to add this new feature to PSQLODBC ? -- ______________________________________________________________ PostgreSQL 6.5.0 on i586-pc-linux-gnu, compiled by gcc 2.7.2.3 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ Jose'