Received: from mail1.waterford.org (mail1.waterford.org [205.124.117.6]) by postgresql.org (8.11.3/8.11.4) with ESMTP id g1CLCDE72840 for ; Tue, 12 Feb 2002 16:12:13 -0500 (EST) (envelope-from olebedev@waterford.org) Received: from waterford.org ([205.124.138.93]) by mail1.waterford.org (Netscape Messaging Server 3.56) with ESMTP id 578 for ; Tue, 12 Feb 2002 14:01:02 -0700 Message-ID: <3C698A9C.C2DFA3A7@waterford.org> Date: Tue, 12 Feb 2002 14:35:24 -0700 From: Oleg Lebedev X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; U) X-Accept-Language: en MIME-Version: 1.0 To: Postgres SQL Mailing List Subject: Re: pg_atoi error References: <3C698464.DC9D6218@waterford.org> Content-Type: text/plain; charset=koi8-r Content-Transfer-Encoding: 7bit X-Archive-Number: 200202/137 X-Sequence-Number: 6565 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