-
Notifications
You must be signed in to change notification settings - Fork 40
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
🚀 Added new functionality to saprfc source regarding where statement #899
🚀 Added new functionality to saprfc source regarding where statement #899
Conversation
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.
I don't have anything to say about the code itself, but why isn't this logic added to _get_where_condition()
?
Because, in method |
Ah ok, I thought this is only sanitizing the In this case, I would only recommend adding a longer docstring with some context as to why this is needed because this is hard to understand just from the function's name and code. |
Yes, exactly. I will add soon more specific docstring to function. |
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.
Looks good.
@adrian-wojcik just a tip: you can use tools like Grammarly or gen AI chatbots like ChatGPT to fix the English grammar in docstrings/comments.
@adrian-wojcik 1 more thing -- adding tests, even if they're only integration tests, is highly recommended, since without them it will be a lot harder to 1) know if this actually works, 2) debug things if this logic goes wrong at some point (and I see the logic in the connector is already quite complicated -- it's basically a colossus with legs of clay). |
Summary
Adding new functionality to saprfc source regarding where statement and dynamic part of after 70 characters
Importance
It is important to prevent passing sql query without white spaces between operators and
WHERE
statement and also raise error when dynamic query is detected after 70 characters afterWHERE
Checklist
This PR:
CONTRIBUTING.md
CHANGELOG.md