pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
Record unassigned yet 3+ messages / 3 participants [nested] [flat]
* Record unassigned yet @ 2004-10-01 09:24 Johann Robette <jrobette@onyme.com> 2004-10-01 11:19 ` Re: Record unassigned yet Russell Smith <mr-russ@pws.com.au> 2004-10-01 14:47 ` Re: Record unassigned yet Tom Lane <tgl@sss.pgh.pa.us> 0 siblings, 2 replies; 3+ messages in thread From: Johann Robette @ 2004-10-01 09:24 UTC (permalink / raw) To: pgsql-hackers@postgresql.org Hello, I'm experiencing a strange problem. Here it is : I've created a function with a FOR loop. DECLARE Current RECORD; BEGIN FOR current IN SELECT * FROM employees LOOP Tmp := current.id; END LOOP; ... When I call the function, I get the error : ERROR: record " current " is unassigned yet Any idea? ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Record unassigned yet 2004-10-01 09:24 Record unassigned yet Johann Robette <jrobette@onyme.com> @ 2004-10-01 11:19 ` Russell Smith <mr-russ@pws.com.au> 1 sibling, 0 replies; 3+ messages in thread From: Russell Smith @ 2004-10-01 11:19 UTC (permalink / raw) To: pgsql-hackers@postgresql.org On Fri, 1 Oct 2004 07:24 pm, Johann Robette wrote: > Hello, > > I'm experiencing a strange problem. Here it is : > I've created a function with a FOR loop. > > DECLARE > Current RECORD; > BEGIN > FOR current IN SELECT * FROM employees LOOP > Tmp := current.id; > END LOOP; > ... current != Current ? > > When I call the function, I get the error : > ERROR: record " current " is unassigned yet > > Any idea? > > > > ---------------------------(end of broadcast)--------------------------- > TIP 5: Have you checked our extensive FAQ? > > http://www.postgresql.org/docs/faqs/FAQ.html > > ^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: Record unassigned yet 2004-10-01 09:24 Record unassigned yet Johann Robette <jrobette@onyme.com> @ 2004-10-01 14:47 ` Tom Lane <tgl@sss.pgh.pa.us> 1 sibling, 0 replies; 3+ messages in thread From: Tom Lane @ 2004-10-01 14:47 UTC (permalink / raw) To: Johann Robette <jrobette@onyme.com>; +Cc: pgsql-hackers@postgresql.org "Johann Robette" <jrobette@onyme.com> writes: > I've created a function with a FOR loop. > DECLARE > Current RECORD; > BEGIN > FOR current IN SELECT * FROM employees LOOP > Tmp := current.id; > END LOOP; > ... > When I call the function, I get the error : > ERROR: record " current " is unassigned yet > Any idea? What you showed us looks fine, therefore the problem is in something you didn't show us. regards, tom lane ^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2004-10-01 14:47 UTC | newest] Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-10-01 09:24 Record unassigned yet Johann Robette <jrobette@onyme.com> 2004-10-01 11:19 ` Russell Smith <mr-russ@pws.com.au> 2004-10-01 14:47 ` Tom Lane <tgl@sss.pgh.pa.us>
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