When one creates a Test window for a Procedure of Function, the data types aren't properly created for all variables.
Here's an example:
declare
-- Non-scalar parameters require additional processing
ata_import_attribute table of record;
ata_index_import_attribute table of number;
begin
...
Above, is the declaration part of the Test window, created by PL/SQL Developer. Although, I yet have no idea, how does it figure out that ATA_INDEX_IMPORT_ATTRIBUTE is a PL/SQL Table of Number (maybe it parses type's package's specification), this is the code that should be there:
declare
-- Non-scalar parameters require additional processing
ata_import_attribute DBO.PKG_IMPORT.T_IMPORT_ATTRIBUTE;
ata_index_import_attribute DBO.PKG_BENEFIT.NUMTABLE;
begin
...
Notice the data types of the ATA_IMPORT_ATTRIBUTE and ATA_INDEX_IMPORT_ATTRIBUTE variables. PL/SQL Developer should read the following columns in the ALL_ARGUMENTS data dictionary view for "User Defined" data types:
TYPE_OWNER
TYPE_NAME
TYPE_SUBNAME
to properly define the data type.
Thank you in advance.
Here's an example:
declare
-- Non-scalar parameters require additional processing
ata_import_attribute table of record;
ata_index_import_attribute table of number;
begin
...
Above, is the declaration part of the Test window, created by PL/SQL Developer. Although, I yet have no idea, how does it figure out that ATA_INDEX_IMPORT_ATTRIBUTE is a PL/SQL Table of Number (maybe it parses type's package's specification), this is the code that should be there:
declare
-- Non-scalar parameters require additional processing
ata_import_attribute DBO.PKG_IMPORT.T_IMPORT_ATTRIBUTE;
ata_index_import_attribute DBO.PKG_BENEFIT.NUMTABLE;
begin
...
Notice the data types of the ATA_IMPORT_ATTRIBUTE and ATA_INDEX_IMPORT_ATTRIBUTE variables. PL/SQL Developer should read the following columns in the ALL_ARGUMENTS data dictionary view for "User Defined" data types:
TYPE_OWNER
TYPE_NAME
TYPE_SUBNAME
to properly define the data type.
Thank you in advance.