Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8e709a6

Browse files
committed
doc: Remove unnecessary RETURN statements from example.
Paul Jungwirth, reviewed by Ashutosh Bapat. Discussion: http://postgr.es/m/e24a6a6d-5670-739b-00f3-41a226a80f25@illuminatedcomputing.com
1 parent 91102da commit 8e709a6

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

doc/src/sgml/plpgsql.sgml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3999,13 +3999,10 @@ CREATE OR REPLACE FUNCTION process_emp_audit() RETURNS TRIGGER AS $emp_audit$
39993999
--
40004000
IF (TG_OP = 'DELETE') THEN
40014001
INSERT INTO emp_audit SELECT 'D', now(), user, OLD.*;
4002-
RETURN OLD;
40034002
ELSIF (TG_OP = 'UPDATE') THEN
40044003
INSERT INTO emp_audit SELECT 'U', now(), user, NEW.*;
4005-
RETURN NEW;
40064004
ELSIF (TG_OP = 'INSERT') THEN
40074005
INSERT INTO emp_audit SELECT 'I', now(), user, NEW.*;
4008-
RETURN NEW;
40094006
END IF;
40104007
RETURN NULL; -- result is ignored since this is an AFTER trigger
40114008
END;

0 commit comments

Comments
 (0)