Page 293 the last example closes the cursor but has been marked "WITH RETURN"
DECLARE CustCursor CURSOR WITH RETURN FOR CustStmt;
....
CLOSE CustCursor;
They're not really "typos" in the sense that it doesn't really matter if you
declare a cursor as WITH RETURN if you close the cursor prior to the
termination of the procedure (it simply won't return a result set in such a
case). However, they are confusing, so I've corrected them.