go-mysql-server icon indicating copy to clipboard operation
go-mysql-server copied to clipboard

Type not supported: VARBINARY

Open marcoaltiericoupa opened this issue 5 years ago • 1 comments

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.

marcoaltiericoupa avatar Feb 23 '20 11:02 marcoaltiericoupa

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.

zachmu avatar May 01 '20 20:05 zachmu