Closed leodeim closed 1 year ago
sqlite
generates:
type DeleteAuthorParams struct {
Age sql.NullInt64
Year sql.NullInt64
}
mysql
generates:
type DeleteAuthorParams struct {
Age sql.NullInt32
Age_2 sql.NullInt32
Year sql.NullInt32
}
Same problem, please help.
Version
1.18.0
What happened?
If you have a query with two JOINs which have parameters
sqlite
engine skips parameter in one of the JOINs. If you changesqlite
tomysql
generation works correctly. Schema, query and playground link are provided.Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/b46d0f5491464a5698aeb56d290764f8a38daa6f59d2a5f89f3ab707a9b2b078
What operating system are you using?
Windows
What database engines are you using?
SQLite
What type of code are you generating?
Go