Skip to Main Content

Oracle Database Free

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Doc Bug: Wrong Postition of sharing_clause in plsql_function_source

Philipp SalvisbergDec 14 2024 — edited Dec 15 2024

According to the documentation of the plsql_function_source

the following statement should work:

create or replace function f1 (in_p1 in integer) return integer sharing = none is
begin
   return 1;
end;
/

But it produces a PLS-00103: Encountered the symbol "SHARING" when expecting one of the following: ….

The reason is a documentation bug. The sharing_clause must be placed after the function_name.

The following statement works:

create or replace function f1 sharing = none (in_p1 in integer) return integer is
begin
   return 1;
end;
/
Comments
Post Details
Added on Dec 14 2024
1 comment
341 views