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

engine: sqlite json_each named parameter not getting replaced with positional parameter #53

Open
lumosminima opened this issue Jan 11, 2025 · 0 comments

Comments

@lumosminima
Copy link

I'm using json_each to pass dynamic values in absence of sqlc.slice and have query part like following which doesn't transform properly:

-- query.sql

        AND (
            @accountTypes IS NULL
            OR at.type IN (
                SELECT value
                FROM json_each(@accountTypes)
            )
        )

-- query_sql.ts

           AND (
            ?2 IS NULL
            OR at.type IN (
                SELECT value
                FROM json_each(@accountTypes)
            )
        )
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

No branches or pull requests

1 participant