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

LOWER(x) = $n does not generate query parameter #103

Closed
kevinburke1 opened this issue Oct 8, 2019 · 0 comments · Fixed by #104
Closed

LOWER(x) = $n does not generate query parameter #103

kevinburke1 opened this issue Oct 8, 2019 · 0 comments · Fixed by #104

Comments

@kevinburke1
Copy link
Contributor

If I have a table like the authors table in the readme, and I have a query like

-- name: LowerAuthor :one 
SELECT * FROM authors WHERE bio = $1 AND LOWER(name) = $2

I expect this to generate LowerAuthor(ctx context.Context, params LowerAuthorParams) with two parameters, Bio and Name. Instead, I get just one parameter, Bio (which gets placed in the function string).

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 a pull request may close this issue.

1 participant