From 4993415b608965ea20b94370193f8f441c9b9911 Mon Sep 17 00:00:00 2001 From: Daniel Rampelt Date: Tue, 11 Aug 2015 15:03:10 -0400 Subject: [PATCH] Use varbinary instead of varchar for mysql, fixes #512 --- physical/mysql.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/physical/mysql.go b/physical/mysql.go index 717f79b7f3b5..6a5b1a179002 100644 --- a/physical/mysql.go +++ b/physical/mysql.go @@ -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) }