Open pengux opened 5 months ago
this seems to be because the generated code only replace one occurrence of /*SLICE:ids*/?
:
if len(ids) > 0 {
for _, v := range ids {
queryParams = append(queryParams, v)
}
query = strings.Replace(query, "/*SLICE:ids*/?", strings.Repeat(",?", len(ids))[1:], 1)
} else {
query = strings.Replace(query, "/*SLICE:ids*/?", "NULL", 1)
}
Version
1.25.0
What happened?
For the query:
call
querier.List(ctx, nil)
will results in the errornot 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