Exception Handling WTF
In homage to
Oracle WTF.
Trying to remove references for a table that no longer exists (a view was created in it's place), I found this little gem:
OPEN c FOR
SELECT 'INVALID USER'
FROM dual;
RETURN c;
It was nested in an IF-END IF block.
Instead of just throwing the exception or return 0 (zero) rows, this was the preferred method.
Awesome!
Labels: funny, wtf