You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The generated code is not what I expected.
Originally, the part specified by sqlc.arg() was ? but it is output as it is.
Expected Result
constlistTests=`-- name: ListTests :manySELECT id, created_at FROM testsWHERE created_at >= ?AND NOT (created_at = ? AND id <= ?)ORDER BY created_at ASCLIMIT ?`typeListTestsParamsstruct {
ID []byteCreatedAt time.TimeLimitint32
}
Actual Result
constlistTests=`-- name: ListTests :manySELECT id, created_at FROM testsWHERE created_at >= ?AND NOT (created_at = sqlc.arg(created_at) AND id <= sqlc.arg(id))ORDER BY created_at ASCLIMIT ?`typeListTestsParamsstruct {
CreatedAt time.TimeLimitint32
}
-- name: ListTests :manySELECT*FROM tests
WHERE created_at >=sqlc.arg(created_at)
AND NOT (created_at =sqlc.arg(created_at) AND id <=sqlc.arg(id))
ORDER BY created_at ASCLIMIT ?;
Version
1.27.0
What happened?
The generated code is not what I expected.
Originally, the part specified by
sqlc.arg()
was?
but it is output as it is.Expected Result
Actual Result
Relevant log output
No response
Database schema
SQL queries
Configuration
Playground URL
No response
What operating system are you using?
macOS
What database engines are you using?
MySQL
What type of code are you generating?
Go
The text was updated successfully, but these errors were encountered: