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

Cannot pass empty values for sqlc.slice #3327

Open
pengux opened this issue Apr 9, 2024 · 0 comments
Open

Cannot pass empty values for sqlc.slice #3327

pengux opened this issue Apr 9, 2024 · 0 comments
Labels
bug Something isn't working triage New issues that hasn't been reviewed

Comments

@pengux
Copy link

pengux commented Apr 9, 2024

Version

1.25.0

What happened?

For the query:

-- name: List :many
SELECT *
FROM table
WHERE (id IN (sqlc.slice('ids')) OR sqlc.slice('ids') == NULL)
ORDER BY id;

call querier.List(ctx, nil) will results in the error not enough args to execute query: want 1 got 0

Relevant log output

No response

Database schema

No response

SQL queries

No response

Configuration

No response

Playground URL

No response

What operating system are you using?

Linux

What database engines are you using?

SQLite

What type of code are you generating?

Go

@pengux pengux added bug Something isn't working triage New issues that hasn't been reviewed labels Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working triage New issues that hasn't been reviewed
Projects
None yet
Development

No branches or pull requests

1 participant