Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Mailing Lists -> Oracle-L -> RE: Redeclaration of Global variables...
>On 3/16/06, Juan Carlos Reyes Pacheco <juancarlosreyesp_at_gmail.com> wrote:
>> Hi
>> I think this is a bug, because you can create the same variable, using
>> the same datatype.
>>
>> create or replace package glb_test as
>> g_num number;
>> g_num number;
>> end;
>> /
>>
>> I think nobody had found this bug, or if did, no body reported it, and
>> that is the reason why you still see it.
SQL> show parameter plsql_warnings
NAME TYPE VALUE ------------------------------------ ----------- ---------------------- plsql_warnings string ENABLE:ALLSQL> create or replace package glb_test as 2 g_num number;
SP2-0808: Package created with compilation warnings
SQL> show error
Errors for PACKAGE GLB_TEST:
LINE/COL ERROR
-------- -------------------------------------------------------------- 3/1 PLW-05001: previous use of 'G_NUM' (at line 2) conflicts with this use
HTH
Chris
-- http://www.freelists.org/webpage/oracle-lReceived on Thu Mar 16 2006 - 15:53:09 CST
![]() |
![]() |