Thread: Re: [INTERFACES] cannot insert zero in to numeric field

Re: [INTERFACES] cannot insert zero in to numeric field

From
Jeff Eckermann
Date:
I am sending your message to the pgsql-odbc list,
because you are more likely to get help there.
Sorry, I don't have an answer for you...

--- "George A.J" <jinujosein@yahoo.com> wrote:
>
> 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. or is it a
> bug?
>
> if i use the update query there is no problem.
>
> pls help
>
> thanks...
>
>
>
> __________________________________
> Do you Yahoo!?
> Yahoo! Calendar - Free online calendar with sync to
> Outlook(TM).
> http://calendar.yahoo.com
>
> ---------------------------(end of
> broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to
majordomo@postgresql.org


__________________________________
Do you Yahoo!?
Yahoo! Calendar - Free online calendar with sync to Outlook(TM).
http://calendar.yahoo.com

Re: [INTERFACES] cannot insert zero in to numeric field

From
Hiroshi Inoue
Date:
Jeff Eckermann wrote:
>
> I am sending your message to the pgsql-odbc list,
> because you are more likely to get help there.
> Sorry, I don't have an answer for you...

Please try the snapshot dll at
  http://www.geocities.jp/inocchichichi/psqlodbc/ .

> --- "George A.J" <jinujosein@yahoo.com> wrote:
> >
> > 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. or is it a
> > bug?
> >
> > if i use the update query there is no problem.
> >
> > pls help
> >
> > thanks...

regards,
Hiroshi Inoue
    http://www.geocities.jp/inocchichichi/psqlodbc/