pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <Inoue@tpf.co.jp>
To: George A.J <jinujosein@yahoo.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: ODBC Bug. Bad numeric input format ?
Date: Tue, 14 Oct 2003 08:57:10 +0900
Message-ID: <3F8B3BD6.8B2969F9@tpf.co.jp> (raw)
References: <20031013035647.14783.qmail@web14913.mail.yahoo.com>

"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/



view thread (2+ messages)

Message-ID: <3F8B3BD6.8B2969F9@tpf.co.jp>
Permalink:  ../3F8B3BD6.8B2969F9@tpf.co.jp/
Also on:    postgresql.org/message-id/3F8B3BD6.8B2969F9@tpf.co.jp

 · 

reply

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: Inoue@tpf.co.jp, jinujosein@yahoo.com
  Subject: Re: ODBC Bug. Bad numeric input format ?
  In-Reply-To: <3F8B3BD6.8B2969F9@tpf.co.jp>
  References: <20031013035647.14783.qmail@web14913.mail.yahoo.com> <3F8B3BD6.8B2969F9@tpf.co.jp>

* 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