We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I noticed that it's possible to do:
query.where('q.name = ?', 'something')
But not:
query.set('q.name = ?', 'something')
It could be useful in this case:
query.set('q.score = COALESCE(q.score, 0) * ?', 5)
The text was updated successfully, but these errors were encountered:
Yeah, I could definitely see that. For now if you want to protect against injection you can use params:
query.set('q.score = COALESCE(q.score, 0) * {score_multiplier}').params(score_multiplier: 5}
More awkward, I know
Sorry, something went wrong.
Uhm, at least you should improve the documentation for it, I think!
But it does the trick, thanks!
No branches or pull requests
I noticed that it's possible to do:
But not:
It could be useful in this case:
The text was updated successfully, but these errors were encountered: