Tell Me Glossary
 

5.4 DBMS_ASSERT Usage Guidelines

Previous previous|next Next Page

Choosing the correct DBMS_ASSERT verification routines to use is important, and using them correctly is just as important. Here are some usage guidelines:

Guideline
Do not perform unnecessary uppercase conversions on identifiers. Example
When using ENQUOTE_LITERAL, escape single quotation marks in the input. Example
Check and reject NULL or empty return results from DBMS_ASSERT (test for NULL, '', and '""' ).  
Protect all the injectable parameters and code paths. Example
Prefix all the calls to DBMS_ASSERT with the owning schema, SYS.  
If DBMS_ASSERT exceptions may be raised from a number of input strings, define and raise exceptions explicitly to ease debugging during application development. Example