Skip to content

Commit

Permalink
Use varbinary instead of varchar for mysql, fixes #512
Browse files Browse the repository at this point in the history
  • Loading branch information
drampelt committed Aug 11, 2015
1 parent e2e0779 commit 4993415
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion physical/mysql.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ func newMySQLBackend(conf map[string]string) (Backend, error) {

// Create the required table if it doesn't exists.
create_query := "CREATE TABLE IF NOT EXISTS " + dbTable +
" (vault_key varchar(512), vault_value mediumblob, PRIMARY KEY (vault_key))"
" (vault_key varbinary(512), vault_value mediumblob, PRIMARY KEY (vault_key))"
if _, err := db.Exec(create_query); err != nil {
return nil, fmt.Errorf("failed to create mysql table: %v", err)
}
Expand Down

0 comments on commit 4993415

Please sign in to comment.