Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> 10.2 Bug?

10.2 Bug?

From: DA Morgan <damorgan_at_psoug.org>
Date: Wed, 08 Feb 2006 09:07:40 -0800
Message-ID: <1139418452.832902@jetspin.drizzle.com>


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

SQL> This change in behaviour, reporting line 4 as unreachable, did not occur in 10.1.0.4.

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

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US