![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
In an Oracle function or procedure call, there can be parameters that have defaults, such as language code. If NULL is passed, this overrides the default. What I want to do is to create a table that mirrors the function's parameter list and call the function using the rows in that table, but I don't want to override defaults with NULLs. How can I do this? Is dynamically generating a function call the only way? Might this cause a significant performace hit, for instance if I were creating thousands of employees through the HRMS create_employee API? Phil Hibbs. |
#3
| |||
| |||
|
|
In an Oracle function or procedure call, there can be parameters that have defaults, such as language code. If NULL is passed, this overrides the default. What I want to do is to create a table that mirrors the function's parameter list and call the function using the rows in that table, but I don't want to override defaults with NULLs. How can I do this? Is dynamically generating a function call the only way? Might this cause a significant performace hit, for instance if I were creating thousands of employees through the HRMS create_employee API? Phil Hibbs. Hi Phil, |
#4
| |||
| |||
|
|
Hi Phil, what a about testing the parameters in the function body and assign default values to local variables if a parameter is NULL? |
![]() |
| Thread Tools | |
| Display Modes | |
| |