mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-24 03:53:09 +00:00
修改制表符
This commit is contained in:
@@ -945,33 +945,34 @@ function _M.execute(self, stmt, ...)
|
||||
end
|
||||
|
||||
local function _compose_stmt_reset(self, stmt)
|
||||
self.packet_no = -1
|
||||
self.packet_no = -1
|
||||
|
||||
local cmd_packet = strpack("c1<I4", COM_STMT_RESET, stmt.prepare_id)
|
||||
return _compose_packet(self, cmd_packet)
|
||||
local cmd_packet = strpack("c1<I4", COM_STMT_RESET, stmt.prepare_id)
|
||||
return _compose_packet(self, cmd_packet)
|
||||
end
|
||||
|
||||
--重置预处理句柄
|
||||
function _M.stmt_reset(self, stmt)
|
||||
local querypacket = _compose_stmt_reset(self, stmt)
|
||||
local sockchannel = self.sockchannel
|
||||
if not self.query_resp then
|
||||
self.query_resp = _query_resp(self)
|
||||
end
|
||||
local querypacket = _compose_stmt_reset(self, stmt)
|
||||
local sockchannel = self.sockchannel
|
||||
if not self.query_resp then
|
||||
self.query_resp = _query_resp(self)
|
||||
end
|
||||
return sockchannel:request(querypacket, self.query_resp)
|
||||
end
|
||||
|
||||
local function _compose_stmt_close(self, stmt)
|
||||
self.packet_no = -1
|
||||
self.packet_no = -1
|
||||
|
||||
local cmd_packet = strpack("c1<I4", COM_STMT_CLOSE, stmt.prepare_id)
|
||||
return _compose_packet(self, cmd_packet)
|
||||
local cmd_packet = strpack("c1<I4", COM_STMT_CLOSE, stmt.prepare_id)
|
||||
return _compose_packet(self, cmd_packet)
|
||||
end
|
||||
|
||||
--关闭预处理句柄
|
||||
function _M.stmt_close(self, stmt)
|
||||
local querypacket = _compose_stmt_close(self, stmt)
|
||||
local sockchannel = self.sockchannel
|
||||
return sockchannel:request(querypacket)
|
||||
local querypacket = _compose_stmt_close(self, stmt)
|
||||
local sockchannel = self.sockchannel
|
||||
return sockchannel:request(querypacket)
|
||||
end
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user