Skip to content
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

fix: support reusing named parameters #240

Merged
merged 1 commit into from
May 30, 2024

Conversation

olavloite
Copy link
Collaborator

Named parameters that occurred multiple times in the SQL string had to be added to the list of arguments multiple times, even if these were given as named arguments. This fix allows queries that use named parameters to accept only one occurence of the named parameter.
This also clarifies the use of named parameters and positional parameters, and that mixing named parameters with positional arguments is not a good idea.

Based on the issue reported in #237

Named parameters that occurred multiple times in the SQL string
had to be added to the list of arguments multiple times, even if
these were given as named arguments. This fix allows queries that
use named parameters to accept only one occurence of the named
parameter.
This also clarifies the use of named parameters and positional
parameters, and that mixing named parameters with positional
arguments is not a good idea.

Based on the issue reported in #237
@olavloite olavloite requested a review from a team as a code owner May 29, 2024 17:46
@olavloite olavloite merged commit c7140a2 into main May 30, 2024
14 checks passed
@olavloite olavloite deleted the support-reusing-named-parameters branch May 30, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants