mirror of
https://github.com/luapower/mysql.git
synced 2024-12-29 12:20:32 +01:00
unimportant
This commit is contained in:
parent
5e21ce7abb
commit
9353aba013
@ -1027,7 +1027,7 @@ function mysql.connect(opt)
|
||||
local port = opt.port or 3306
|
||||
|
||||
mysql.note('connect', 'host=%s:%s user=%s db=%s',
|
||||
host, port, opt.user, opt.db or '')
|
||||
host, port, opt.user or '', opt.db or '')
|
||||
|
||||
local tcp = opt and opt.tcp or require'sock'.tcp
|
||||
tcp = check_io(self, tcp())
|
||||
@ -1088,7 +1088,7 @@ function mysql.connect(opt)
|
||||
set_u8(buf, collation)
|
||||
buf(23)
|
||||
set_cstring(buf, opt.user or '')
|
||||
set_token(buf, opt.password, scramble)
|
||||
set_token(buf, opt.password or '', scramble)
|
||||
set_cstring(buf, opt.db or '')
|
||||
send_packet(self, buf)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user