X-Original-To: pgsql-odbc@postgresql.org Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id DF8C84758FE for ; Tue, 18 Feb 2003 03:39:33 -0500 (EST) Received: from due.stud.ntnu.no (due.stud.ntnu.no [129.241.56.71]) by postgresql.org (Postfix) with ESMTP id 43A35475843 for ; Tue, 18 Feb 2003 03:39:33 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by due.stud.ntnu.no (Postfix) with ESMTP id CFE3E12B784 for ; Tue, 18 Feb 2003 09:39:33 +0100 (CET) Received: from puma.stud.ntnu.no (puma.stud.ntnu.no [129.241.56.183]) by due.stud.ntnu.no (Postfix) with ESMTP id 0B27B12B810 for ; Tue, 18 Feb 2003 09:39:33 +0100 (CET) Date: Tue, 18 Feb 2003 09:39:33 +0100 (CET) From: Silje Ausen To: pgsql-odbc@postgresql.org Subject: float8 and currency conversion Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: by AMaViS perl-11 X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200302/85 X-Sequence-Number: 2703 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