Category Archive Template
21st Century PL/SQLYour chance to influence the direction of the Oracle PL/SQL language. |
|||||
|
Program unit construction and structure > Parameter lists PL/SQL parameter lists are used to pass information into and out of procedures and functions. They support named and positional notation. Ideas within Parameter lists
June 07, 2005CHECK constraint for procedure/function parametersI don't think I'm not the only one who validates procedure/function's input parameters. And in most cases it's a considerable part of the code. So I think it would be a nice feature if we could define such validation rules along with parameter lists. Just something like we do with check constraint for tables. I'm sure it would make program units more readable and maintainable.Posted by Oleh Tishchenko at 07:04 AM | Add your thoughts (3) August 19, 2005Method Parameter Modifiers - a more reliable/transparent way to pass parameters- Method Parameter Modifiers - a more reliable way to pass parameters - Hello, in PL/SQL we now the parameter modifieres
Posted by Carl Reitschuster at 06:40 AM | Add your thoughts (3) October 31, 2005Auto store parameters in a pl/sql arrayI would like to have a kernel filled prenamed in-memory table in every stored procedure, that holds all parameters and states their:
Posted by erik ykema at 09:37 AM | Add your thoughts (4) November 07, 2005Need a way to tell if the value of a parameter was 1) passed in or was 2) assigned a default value.I have a procedure whos job it is to update only those fields of a table that the calling module passes me a value for. The difficulty is that if you make the parameters optional by assigning each a default value (such as null), I still have no way of knowing if the user passed me a null or if the parameter was defaulted to null. One way of implementing this is to implement a built-in method for every parameter. The method could be named something like passed_in so that I could say something like if my_param.passed_in then..... The work-around to this issue is to default each of the parameters to some bogus value (such as -999999) and then check to see if the parameter is that value. If it is, then the parameter value was not passed in. This is not very intuitive. Besides, what if someday I want to use -999999 as an actual value for that parameter?Posted by Rich Firman at 06:53 PM | Add your thoughts (1) |
Sidebar Template Search Template Search 21st Century PL/SQLActions Template ActionsIdeas List Template Browse Categories
|
||||