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
-- name: UpsertUserName :execrowsUPDATE users
SET
nickname = CASE WHEN sqlc.arg(set_name)::bool THEN sqlc.arg(name)::text ELSE nickname END
WHERE
id = ?;
Version
1.27.0
What happened?
I want to filter query results based on certain parameters when retrieving data, but a syntax error occurs when setting the parameter data types.
Relevant log output
query.sql:9:25: syntax error near "::bool, true, delete_time is null)"
Database schema
SQL queries
Configuration
Playground URL
https://play.sqlc.dev/p/65875f3f0e264583c140e1ef7be68cf4e078b623d0f5e948d18bad57cc78410d
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: