malthe opened a new pull request #20072: URL: https://github.com/apache/airflow/pull/20072
<!-- Thank you for contributing! Please make sure that your code changes are covered with tests. And in case of new features or big changes remember to adjust the documentation. Feel free to ping committers for the review! In case of existing issue, reference it using one of the following: closes: #ISSUE related: #ISSUE How to write a good git commit message: http://chris.beams.io/posts/git-commit/ --> This adds a new method: ```python OracleHook.callproc(identifier: str, parameters: Optional[Union[Dict, List]] = None) ``` (In the actual code, the `parameters` argument are assigned a type variable `ParameterType` since the return type of the method is determined by the type of the `parameters` argument). The call mirrors the `Cursor.callproc()` method provided by the driver except: 1. An alternative mechanism is used to provide OUT parameters; instead of needing the `cursor` object (which is not available to us using the DB API hook abstraction), the user must instead pass a Python type reference (e.g., `int`) as the value of the parameter. 2. The return value is the "unwrapped" bindvars (basically the OUT parameters as you would expect). This follows from (1) since we do not use `cursor.var` to create a bind variable in the first place. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
