We have just converted an Oracle database from 9i to 10g. We have a number of procedures that declare parameters using %TYPE and make variable declarations using %TYPE or %ROWTYPE. For example:
PROCEDURE create_cl_search_query_proc (ps_lst_nme IN resource.lst_nme%TYPE) IS
S_search_data search_results_gtmp%ROWTYPE
-- code
END create_cl_search_query_proc;
In these two cases, both contain columns that have NOT NULL check constraints.
I have been searching endlessly for Oracle 10g New Features and/or 10g bugs and/or 10g pl/sql best practices that explain why using %TYPE or %ROWTYPE is a problem when there are NOT NULL check constraints on the columns.
Has anyone found any documentation or had similar issues with this?
I know this question is vague, I’m looking more for pointers to documentation on this than answers. Although, any direction is welcome!
Thanks!
PROCEDURE create_cl_search_query_proc (ps_lst_nme IN resource.lst_nme%TYPE) IS
S_search_data search_results_gtmp%ROWTYPE
-- code
END create_cl_search_query_proc;
In these two cases, both contain columns that have NOT NULL check constraints.
I have been searching endlessly for Oracle 10g New Features and/or 10g bugs and/or 10g pl/sql best practices that explain why using %TYPE or %ROWTYPE is a problem when there are NOT NULL check constraints on the columns.
Has anyone found any documentation or had similar issues with this?
I know this question is vague, I’m looking more for pointers to documentation on this than answers. Although, any direction is welcome!
Thanks!