From 8c78f8e65c2f68e946f145770cf24a49ac88c891 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 5 Feb 2009 15:25:49 +0000 Subject: Add PL/PgSQL FOUND and GET DIAGNOSTICS support for RETURN QUERY statement Pavel Stehule --- doc/src/sgml/plpgsql.sgml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'doc/src') diff --git a/doc/src/sgml/plpgsql.sgml b/doc/src/sgml/plpgsql.sgml index 0e9e43065df..db6d08fd69f 100644 --- a/doc/src/sgml/plpgsql.sgml +++ b/doc/src/sgml/plpgsql.sgml @@ -1,4 +1,4 @@ - + <application>PL/pgSQL</application> - <acronym>SQL</acronym> Procedural Language @@ -1356,6 +1356,14 @@ GET DIAGNOSTICS integer_var = ROW_COUNT; execution of other statements within the loop body. + + + A RETURN QUERY and RETURN QUERY + EXECUTE statements set FOUND + true if the query returns at least one row, false if no row + is returned. + + FOUND is a local variable within each -- cgit v1.2.3