pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
pg_atoi error
3+ messages / 2 participants
[nested] [flat]

* pg_atoi error
@ 2002-02-12 21:08  Oleg Lebedev <olebedev@waterford.org>
  0 siblings, 1 reply; 3+ messages in thread

From: Oleg Lebedev @ 2002-02-12 21:08 UTC (permalink / raw)
  To: pgsql-sql

Hi everybody,
I am getting the following error when calling a procedure on one
database, but the same procedure runs ok on another database, which is a
smaller instance of the former database:
ERROR: pg_atoi: error in "Production": can't parse "Production"

Inside the procedure I am trying to compare one of the table fields to
''Procedure'' as follows:
..
IF OLD.status != ''Procedure''
    AND NEW.status=''Procedure''
...

I have no idea what can cause this.
Please help.

thanks,

Oleg





^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: pg_atoi error
@ 2002-02-12 21:35  Oleg Lebedev <olebedev@waterford.org>
  parent: Oleg Lebedev <olebedev@waterford.org>
  0 siblings, 0 replies; 3+ messages in thread

From: Oleg Lebedev @ 2002-02-12 21:35 UTC (permalink / raw)
  To: pgsql-sql

Never mind my previous message.
It turns out that the name of the variable I was using inside a function was
the same as one of the column names in the record I used inside a loop.
thanks,

Oleg

Oleg Lebedev wrote:

> Hi everybody,
> I am getting the following error when calling a procedure on one
> database, but the same procedure runs ok on another database, which is a
> smaller instance of the former database:
> ERROR: pg_atoi: error in "Production": can't parse "Production"
>
> Inside the procedure I am trying to compare one of the table fields to
> ''Procedure'' as follows:
> ..
> IF OLD.status != ''Procedure''
>     AND NEW.status=''Procedure''
> ...
>
> I have no idea what can cause this.
> Please help.
>
> thanks,
>
> Oleg
>
> ---------------------------(end of broadcast)---------------------------
> TIP 6: Have you searched our list archives?
>
> http://archives.postgresql.org




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* pg_atoi() error
@ 2002-10-16 11:57  alexandre :: aldeia digital <alepaes@aldeiadigital.com.br>
  0 siblings, 0 replies; 3+ messages in thread

From: alexandre :: aldeia digital @ 2002-10-16 11:57 UTC (permalink / raw)
  To: pgsql-sql

Hi,

Table xxx:

(...)
CPF numeric(11,0)
(...)

Select x,y,CPF from xxx where CPF='12345678901'

Generate the error:

error reading "12345678901": Numerical result out of range

The corversor recognize the 'number' like a integer and not like a numeric
type ???

I use Win ODBC-7.2.00.3 and Post-7.2.2

Thanks all,


Alexandre





^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2002-10-16 11:57 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-02-12 21:08 pg_atoi error Oleg Lebedev <olebedev@waterford.org>
2002-02-12 21:35 ` Oleg Lebedev <olebedev@waterford.org>
2002-10-16 11:57 pg_atoi() error alexandre :: aldeia digital <alepaes@aldeiadigital.com.br>

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