From 04932b549bd48874ca6b78cb0db0809dbb8b89e3 Mon Sep 17 00:00:00 2001 From: Brian Lopez Date: Thu, 5 Aug 2010 01:20:15 -0700 Subject: [PATCH] Mysql2::Client uses the :username key, set it to :user if that was used instead --- lib/sequel/adapters/mysql2.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/sequel/adapters/mysql2.rb b/lib/sequel/adapters/mysql2.rb index 4da07d7..b2187ce 100644 --- a/lib/sequel/adapters/mysql2.rb +++ b/lib/sequel/adapters/mysql2.rb @@ -57,6 +57,7 @@ module Sequel def connect(server) opts = server_opts(server) opts[:host] ||= 'localhost' + opts[:username] ||= opts[:user] conn = ::Mysql2::Client.new(opts) sqls = []