go-mysql-server
go-mysql-server copied to clipboard
Type not supported: VARBINARY
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.
We have this fixed on our fork if you are interested, but it probably needs more testing:
https://github.com/liquidata-inc/go-mysql-server
Feel free to file an issue there if it doesn't work.