Table of Contents

Search

  1. Preface
  2. Introduction to the Stored Procedure Accelerator for Oracle
  3. Masking Stored Procedures and User-Defined Table Functions
  4. Stored Procedure Accelerator Setup
  5. Stored Procedure Accelerator Rules

Stored Procedure Accelerator Guide for Oracle

Stored Procedure Accelerator Guide for Oracle

Overloaded Program Units

Overloaded Program Units

You can use overloaded program units that have different numbers of arguments, but you cannot use not overloaded program units that have the same number of arguments with different argument types.
For example, you can use the following package that contains overloaded functions with the same name and a different number of arguments:
CREATE OR REPLACE PACKAGE SP_FUN_PACKAGE IS /* Number of arguments : 5 */ FUNCTION fun_with_in_args_pkg_table( in_int number, in_var varchar2, in_date date, v_ref out SYS_REFCURSOR, v_ref2 out SYS_REFCURSOR) RETURN pkg_table_type PIPELINED; /* Number of arguments : 4 */ FUNCTION fun_with_in_args_pkg_table( in_int number, in_int1 number, in_var varchar2, in_date date, v_ref out SYS_REFCURSOR) RETURN pkg_table_type PIPELINED; END;
However, you cannot use the following package, which contains overloaded functions with the same name and same number of arguments:
CREATE OR REPLACE PACKAGE SP_FUN_PACKAGE IS /* Number of arguments : 4 */ FUNCTION fun_with_in_args_pkg_table( in_int number, in_var varchar2, in_date date, v_ref out SYS_REFCURSOR) RETURN pkg_table_type PIPELINED; /* Number of arguments : 4 */ FUNCTION fun_with_in_args_pkg_table( in_int number, in_int1 number, in_var varchar2, v_ref out SYS_REFCURSOR) RETURN pkg_table_type PIPELINED; END;

0 COMMENTS

We’d like to hear from you!