-
Notifications
You must be signed in to change notification settings - Fork 1k
feat(oracle): Added support for IN/OUT keywords in stored procedure parameters #6710
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(oracle): Added support for IN/OUT keywords in stored procedure parameters #6710
Conversation
georgesittas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @rsanchez-xtillion, thanks for taking a stab at this, but I'm not sure this is the right way to address this feature gap.
We generally handle these as ColumnConstraints. Have you tried introducing a constraint parser or something to avoid overriding and copying logic in Oracle?
|
Hey @georgesittas, I have not tried that approach but it makes more sense, I'll try doing it that way and push the changes when I'm ready |
954f719 to
fb916a7
Compare
georgesittas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @rsanchez-xtillion, looks better. A few more comments.
georgesittas
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for the contribution!
…arameters (#6710) * Added support for Oracle IN/OUT in proc params * Made test more exhaustive * removed parse_column_def override in oracle and added column constraint parser instead * removed unused input arg from columndef expression * replaced replace(None) with pop() * fixed linter and formatting errors * save boolean as presence of IN/OUT keyword instead of keyword text
Added support to parse optional IN/OUT keywords in stored procedure parameter declaration for Oracle. Example:
https://docs.oracle.com/en/database/other-databases/timesten/22.1/plsql-developer/examples-using-input-and-output-parameters-and-bind-variables.html#GUID-4B20426E-F93F-4835-88CB-6A79829A8D7F
Changes:
_parse_column_defmethod in Oracleinputproperty in theColumnDefclass