I have a golang type like
type UserID int64
type SomeID string
In gorm's query, it's like
where("user_id = ? AND some_id =?", user_id, some_id)
I expect gorm to do the type conversion automatically, but I got an SQL exception:
sql: converting argument $2 type: unsupported type SomeID, a string