From: Silje Ausen <ausen@stud.ntnu.no>
To: pgsql-odbc@postgresql.org
Subject: float8 and currency conversion
Date: Tue, 18 Feb 2003 09:39:33 +0100 (CET)
Message-ID: <Pine.LNX.4.51.0302180937460.22003@puma.stud.ntnu.no> (raw)
I'm trying to export some tables from MS Access 97 via ODBC. I'm using
psqlODBC driver 7.02.00.05.
Exporting tables through the ODBC connection works fine - until I get to
the tables that have currency fields.
The tables will still be exported if all the amounts end with 00 - i.e.
NOK 123,00 works fine. This is "translated" into 123 in my PostgreSQL
database.
The real problem arises when there's a non zero digit after the comma.
Like NOK 123,40
If I try to export a table containing a currencyfield like that I get the
following error;
ODBC--call failed.
ERROR: Bad float8 input format '123,4' (#7)
So obviously float8 isn't what I want to translate my currencyfields as.
What data type SHOULD be used - and how do I tell the ODBC link that I
want to use a different translation than float8..?
Thanx :)
-S
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-odbc@postgresql.org
Cc: ausen@stud.ntnu.no
Subject: Re: float8 and currency conversion
In-Reply-To: <Pine.LNX.4.51.0302180937460.22003@puma.stud.ntnu.no>
References: <Pine.LNX.4.51.0302180937460.22003@puma.stud.ntnu.no>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox