I am using GORM to save in the database a struct that contains a []byte field:
type SecurityExtension struct {
ApplicationIdentifier string `json:"application_identifier" binding:"required" gorm:"primary_key"`
AccessToken []byte `json:"access_token"`
RefreshToken []byte `json:"refresh_token"`
}
When I start the application, the embedded mysql returns the error: "Type not supported: VARBINARY".
Is this a known limitation or a bug? If it is a bug, I will provide a way to replicate it.