squirrel icon indicating copy to clipboard operation
squirrel copied to clipboard

query := sq.Update("a").Set("orders", sq.Case("id").When("20027", "3"))

Open MagiClouds opened this issue 5 years ago • 0 comments

Hello,I have a problem.

query := sq.Update("a").Set("orders", sq.Case("id").When("20027", "3")) _, err := query.RunWith(db).Exec()

the err is : sql: converting argument $1 type: unsupported type squirrel.CaseBuilder, a struct

How can I fix it?

MagiClouds avatar Dec 15 '20 08:12 MagiClouds