Skip to content

Conversation

@james-willis
Copy link

There is still a problem - we don't sanitize these inputs even though users would assume that we do

There is still a problem - we don't sanitize these inputs even though users would assume that we do
sql = (
operation.replace("{", "{{").replace("}", "}}").format(**(parameters or {}))
)
sql = operation.format(**(parameters or {}))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We're using pyformat from https://peps.python.org/pep-0249/, so we need those. (the formatting is in the driver)

@james-willis
Copy link
Author

The parameter issue was resolved in another pr

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants