a bug of command window

yzsind

Member²
when i execute a script like this

create or replace function mytest return varchar2 is
/*-
-*/
begin
return '1';
end;
/

that execute error.
I think this is a bug of command window,becase i execute this in sqlplus is sucessful.
the reason is my script has string "-*/",but my script is right,so i wish the plsql developer next version can fix the bug.
thanks.

--------------------------------------------------
SQL>
SQL> create or replace function mytest return varchar2 is
2 /*-
3 -*/
SQL> begin
2 return '1';
3 end;
4 /

begin
return '1';
end;

ORA-06550: 第 2 行, 第 3 列:
PLS-00372: 在一个过程中,RETURN 语句无法包含表达式
ORA-06550: 第 2 行, 第 3 列:
PL/SQL: Statement ignored

SQL>
-----------------------------------------------
 
Back
Top