Re: [GENERAL] [PL/pgSQL] How should I use FOUND special variable. Documentation is little unclear for me

2006-11-10 Thread Brendan Jurd
On 11/9/06, Jeremiasz Miedzinski <[EMAIL PROTECTED]> wrote: Now, I need to do the same action in PL/pgSQL. It's rather simple, but I don't know how to use FOUND variable described in documentation: FETCH retrieves the next row from the cursor into a target, which may be a row variable, a record

Re: [GENERAL] [PL/pgSQL] How should I use FOUND special variable.

2006-11-09 Thread brian
Jeremiasz Miedzinski wrote: Hello. I'm porting some procedures from PL/SQL and I encountered following problem: In PL/SQL I'm using this statement related to cursor: OPEN crs_cnt(start_millis, end_millis); LOOP FETCH crs_cnt into row_cnt; EXIT WHEN crs_cnt%NOTFOUND; insert into spm_aud

Re: [GENERAL] [PL/pgSQL] How should I use FOUND special variable.

2006-11-09 Thread Matthias . Pitzl
@postgresql.orgSubject: [GENERAL] [PL/pgSQL] How should I use FOUND special variable. Documentation is little unclear for meHello.I'm porting some procedures from PL/SQL  and I encountered following problem:In PL/SQL I'm using this statement related to cursor:OPEN crs_cnt(st

[GENERAL] [PL/pgSQL] How should I use FOUND special variable. Documentation is little unclear for me

2006-11-09 Thread Jeremiasz Miedzinski
Hello.I'm porting some procedures from PL/SQL  and I encountered following problem:In PL/SQL I'm using this statement related to cursor:OPEN crs_cnt(start_millis, end_millis);LOOP FETCH crs_cnt into row_cnt;     EXIT WHEN crs_cnt%NOTFOUND;    insert into spm_audit_stats values(SEQ_SPM_ID_AUTO_INC.n