X-Original-To: pgsql-odbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.2]) by svr1.postgresql.org (Postfix) with ESMTP id 22FAAD1B502 for ; Mon, 13 Oct 2003 23:56:09 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (neptune.hub.org [200.46.204.2]) (amavisd-new, port 10024) with ESMTP id 63143-06 for ; Mon, 13 Oct 2003 20:55:38 -0300 (ADT) Received: from sd.tpf.co.jp (unknown [210.161.239.34]) by svr1.postgresql.org (Postfix) with SMTP id 97695D1B4FE for ; Mon, 13 Oct 2003 20:55:36 -0300 (ADT) Received: (qmail 17312 invoked from network); 14 Oct 2003 08:55:38 +0900 Received: from unknown (HELO viscomail.tpf.co.jp) (100.0.0.108) by sd2.tpf-fw-c.co.jp with SMTP; 14 Oct 2003 08:55:38 +0900 Received: from tpf.co.jp ([126.0.1.62]) by viscomail.tpf.co.jp (8.8.8+Sun/8.8.8) with ESMTP id IAA23650; Tue, 14 Oct 2003 08:55:37 +0900 (JST) Message-ID: <3F8B3BD6.8B2969F9@tpf.co.jp> Date: Tue, 14 Oct 2003 08:57:10 +0900 From: Hiroshi Inoue X-Mailer: Mozilla 4.73 [ja] (Windows NT 5.0; U) X-Accept-Language: ja MIME-Version: 1.0 To: "George A.J" Cc: pgsql-odbc@postgresql.org Subject: Re: ODBC Bug. Bad numeric input format ? References: <20031013035647.14783.qmail@web14913.mail.yahoo.com> Content-Type: text/plain; charset=iso-2022-jp Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/43 X-Sequence-Number: 3356 "George A.J" wrote: > > Hi all, > > i am usig postgres with VB (ADO using ODBC). when i > try to update a numeric field in a table with zero an > error occurs "ERROR: Bad numeric input format '.' " > . > this happends when i call recordset.update() after > assigning 0 to the field. a sample is given bellow > > rs!Opening=0 > rs.Update > > this code works fine if we assign any value other > than > zero to the field.is there a solution. i think it is a bug? > > if i use the update query there is no problem. > > the same same problem exist if a adodb.command object is used to call > a function > in pl/pgsql. The problem exist only for numeric filed. if a non zero > digit exist before decimal point the code works correctly. if we send > the value 0.0001 it is reached in postgres as .1. ie the numeric value > is changed when it reached the backend. i get this from the query log > of postgresql. if we send a zero (0.00) it reached back end as "." > that is why the error bad numeric input. > how can i solve this bug. > where should i report this? > i tried the latest snapshot dll of ODBC 7.03.0115 but the error still > exist. Hmm strange, the bug seems to be fixed at least in the current snapshot. Could you send me the Mylog debug output ? regards, Hiroshi Inoue http://www.geocities.jp/inocchichichi/psqlodbc/