Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.server -> Different Behaviour Of Syntax Checks
Hi all,
I found a strange behaviour difference in Oracle8i as opposed to 7.3.4:
drop function test1;
drop procedure test2;
create function test1 (n in varchar2) return number is begin
return 'x' || n;
end test1;
/
show errors
create procedure test2 (m in number) is
b varchar2 (10);
begin
b:= test1 ('y'); -- should already blow up at compile time.
end test2;
/
show errors
execute test2 (3)
drop function test1;
drop procedure test2;
exit
These procedures would compile well but on execution time the will break with ORA-06502 in Oracle8i but they will break on compile time in Oracle 7.3.4.
Questions: 1. Does that mean that I no longer can assume that an okay compiled procedure is working? 2. How can I force Oracle8i to check as much as possible as formerly in 7.3.4?
Thanks a lot.
X-Mozilla-Status: 0009ep 02 01:41:49 1999 X-Mozilla-Status: 0801 X-Mozilla-Status2: 00000000
X-Mozilla-Draft-Info: internal/draft; vcard=0; receipt=0; uuencode=0; html=0; linewidth=0 X-Mailer: Mozilla 4.61 [en] (WinNT; I) X-Accept-Language: en,de-DE
drop function test1;
drop procedure test2;
create function test1 (n in varchar2) return number is begin
return 'x' || n;
end test1;
/
show errors
create procedure test2 (m in number) is
b varchar2 (10);
begin
b:= test1 ('y'); -- should already blow up at compile time.
end test2;
/
show errors
execute test2 (3)
drop function test1;
drop procedure test2;
exit Received on Wed Sep 01 1999 - 18:41:18 CDT
![]() |
![]() |