Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> 10.2 Bug?
I know ... I know ... but this seems to be worth reporting but I would
like someone else to confirm it.
SQL*Plus: Release 10.2.0.1.0 - Production on Wed Feb 8 09:05:54 2006
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Production
With the Partitioning, OLAP and Data Mining options
SQL> ALTER SESSION SET PLSQL_WARNINGS='ENABLE:ALL'; Session altered.
SQL> CREATE OR REPLACE PROCEDURE dead_code AS
2 x NUMBER := 10;
3 BEGIN
4 IF x = 10 THEN
5 x := 20;
6 ELSE
7 x := 100; -- dead code (never reached)
8 END IF;
9 END dead_code;
10 /
SP2-0804: Procedure created with compilation warnings
SQL> show err
Errors for PROCEDURE DEAD_CODE:
LINE/COL ERROR
-------- ------------------------------------------------------------- 4/8 PLW-06002: Unreachable code 7/5 PLW-06002: Unreachable code
Thanks.
-- Daniel A. Morgan http://www.psoug.org damorgan_at_x.washington.edu (replace x with u to respond)Received on Wed Feb 08 2006 - 11:07:40 CST