mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 12:20:41 +00:00
fix #1504
This commit is contained in:
@@ -599,7 +599,7 @@ local function _compose_stmt_execute(self, stmt, cursor_type, args)
|
|||||||
local v = args[i]
|
local v = args[i]
|
||||||
f = store_types[type(v)]
|
f = store_types[type(v)]
|
||||||
if not f then
|
if not f then
|
||||||
error("invalid parameter type", type(v))
|
error("invalid parameter type " .. type(v))
|
||||||
end
|
end
|
||||||
ts, vs = f(v)
|
ts, vs = f(v)
|
||||||
types_buf = types_buf .. ts
|
types_buf = types_buf .. ts
|
||||||
@@ -741,7 +741,7 @@ function _M.connect(opts)
|
|||||||
local user = opts.user or ""
|
local user = opts.user or ""
|
||||||
local password = opts.password or ""
|
local password = opts.password or ""
|
||||||
local charset = CHARSET_MAP[opts.charset or "_default"]
|
local charset = CHARSET_MAP[opts.charset or "_default"]
|
||||||
local channel =
|
local channel =
|
||||||
socketchannel.channel {
|
socketchannel.channel {
|
||||||
host = opts.host,
|
host = opts.host,
|
||||||
port = opts.port or 3306,
|
port = opts.port or 3306,
|
||||||
|
|||||||
Reference in New Issue
Block a user