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 E0633D1B511 for ; Mon, 13 Oct 2003 03:57:37 +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 10185-05 for ; Mon, 13 Oct 2003 00:56:49 -0300 (ADT) Received: from web14913.mail.yahoo.com (web14913.mail.yahoo.com [216.136.225.240]) by svr1.postgresql.org (Postfix) with SMTP id 509BAD1B4E1 for ; Mon, 13 Oct 2003 00:56:48 -0300 (ADT) Message-ID: <20031013035647.14783.qmail@web14913.mail.yahoo.com> Received: from [202.9.168.48] by web14913.mail.yahoo.com via HTTP; Sun, 12 Oct 2003 20:56:47 PDT Date: Sun, 12 Oct 2003 20:56:47 -0700 (PDT) From: "George A.J" Subject: ODBC Bug. Bad numeric input format ? To: pgsql-odbc@postgresql.org MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-319239915-1066017407=:9985" X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200310/41 X-Sequence-Number: 3354 --0-319239915-1066017407=:9985 Content-Type: text/plain; charset=us-ascii 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. please help.. thanks... jinujose --------------------------------- Do you Yahoo!? The New Yahoo! Shopping - with improved product search --0-319239915-1066017407=:9985 Content-Type: text/html; charset=us-ascii
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.

please help..

thanks...
jinujose


Do you Yahoo!?
The New Yahoo! Shopping - with improved product search --0-319239915-1066017407=:9985--