X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0541CD1B8B9 for ; Mon, 18 Aug 2003 09:47:40 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 67720-03 for ; Mon, 18 Aug 2003 06:47:30 -0300 (ADT) Received: from sd.tpf.co.jp (sd.tpf.co.jp [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 75520D1B8A1 for ; Mon, 18 Aug 2003 06:47:26 -0300 (ADT) Received: (qmail 9848 invoked from network); 18 Aug 2003 09:47:28 -0000 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 18 Aug 2003 09:47:28 -0000 Received: from tpf.co.jp (3d_note1 [126.0.1.61]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id SAA01157; Mon, 18 Aug 2003 18:47:26 +0900 (JST) Message-ID: <3F40A0D4.DC8D641B@tpf.co.jp> Date: Mon, 18 Aug 2003 18:48:04 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: Steve Johnson Cc: pgsql-odbc@postgresql.org Subject: Re: FW: ERROR: Bad numeric input format '.' on insert or update References: Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/24 X-Sequence-Number: 3144 This bug may be fixed in cvs. Please try the snapshot dll at http://www.geocities.jp/inocchichichi/psqlodbc/ . regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/ Steve Johnson wrote: > > ODBC driver version: 07.03.0100 (ODBC 3 driver) > PostgreSQL database version: 7.3.2 > Error message: ERROR: Bad numeric input format '.' > > When I attempt to add or update a a row with a numeric(15,2) > column with a value of 0 (zero) or null, I get this error > message. If I change the value to anything else (.01, 1000), the > insert and update work. > > Using psql, I am able to insert and update rows with numeric > values of 0 without an error. > > If I drop back to the psqlodbc legacy 2.5 driver, I do not get > the error. > > I get the error when using the Unicode (beta) driver and the ODBC > 3 driver. > > My application uses VB6 ADODB recordsets with MDAC 2.7. > > For a test case, it should be pretty easy to duplicate. Create a > table with one numeric(15,2) numeric column. Use psql to insert > a row with a value of zero for the column. Now try to do the > same thing through psqlODBC ODBC 3.0 driver and you'll get the > error. If you try to update that row in that table with a value > of zero, you'll get the error as well. > > The partial ODBC trace log starting with the problem column: >