Mysql2::Client uses the :username key, set it to :user if that was used instead

This commit is contained in:
Brian Lopez 2010-08-05 01:20:15 -07:00
parent 93fabe2b24
commit 04932b549b
1 changed files with 1 additions and 0 deletions

View File

@ -57,6 +57,7 @@ module Sequel
def connect(server) def connect(server)
opts = server_opts(server) opts = server_opts(server)
opts[:host] ||= 'localhost' opts[:host] ||= 'localhost'
opts[:username] ||= opts[:user]
conn = ::Mysql2::Client.new(opts) conn = ::Mysql2::Client.new(opts)
sqls = [] sqls = []