Skip to content
This repository has been archived by the owner on Jan 28, 2021. It is now read-only.

Type not supported: VARBINARY #869

Open
marcoaltiericoupa opened this issue Feb 23, 2020 · 1 comment
Open

Type not supported: VARBINARY #869

marcoaltiericoupa opened this issue Feb 23, 2020 · 1 comment

Comments

@marcoaltiericoupa
Copy link

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.

@zachmu
Copy link
Contributor

zachmu commented May 1, 2020

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants