pg.ddx.io pgsql-odbc@postgresql.org mailing list archive
help / color / mirror / Atom feedODBC Bug. Bad numeric input format ?
2+ messages / 2 participants
[nested] [flat]
* ODBC Bug. Bad numeric input format ?
@ 2003-10-13 03:56 George A.J <jinujosein@yahoo.com>
2003-10-13 23:57 ` Re: ODBC Bug. Bad numeric input format ? Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 1 reply; 2+ messages in thread
From: George A.J @ 2003-10-13 03:56 UTC (permalink / raw)
To: pgsql-odbc
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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ODBC Bug. Bad numeric input format ?
2003-10-13 03:56 ODBC Bug. Bad numeric input format ? George A.J <jinujosein@yahoo.com>
@ 2003-10-13 23:57 ` Hiroshi Inoue <Inoue@tpf.co.jp>
0 siblings, 0 replies; 2+ messages in thread
From: Hiroshi Inoue @ 2003-10-13 23:57 UTC (permalink / raw)
To: George A.J <jinujosein@yahoo.com>; +Cc: pgsql-odbc
"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/
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2003-10-13 23:57 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2003-10-13 03:56 ODBC Bug. Bad numeric input format ? George A.J <jinujosein@yahoo.com>
2003-10-13 23:57 ` Hiroshi Inoue <Inoue@tpf.co.jp>
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