Mysql2::Client uses the :username key, set it to :user if that was used instead
This commit is contained in:
parent
93fabe2b24
commit
04932b549b
|
@ -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 = []
|
||||||
|
|
Loading…
Reference in New Issue