Skip to content

sqlite: comparison order affects generation of param structs #2032

Closed
@pexarkh

Description

@pexarkh

Version

1.16.0

What happened?

You can find a reproducible example in this repository
A brief explanation of what happened is in README.md

Relevant log output

sqlc generated code is here https://github.com/pexarkh/sqlc-bug/blob/main/pkg/database/q.sql.go

Database schema

https://github.com/pexarkh/sqlc-bug/blob/main/database/schema/s.sql

SQL queries

https://github.com/pexarkh/sqlc-bug/blob/main/database/queries/q.sql

Configuration

https://github.com/pexarkh/sqlc-bug/blob/main/database/sqlc.yaml

Playground URL

No response

What operating system are you using?

macOS

What database engines are you using?

No response

What type of code are you generating?

Go

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingtriageNew issues that hasn't been reviewed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions