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

Type not supported: VARBINARY #869

@marcoaltiericoupa

Description

@marcoaltiericoupa

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions