diff --git a/lualib/skynet/db/mysql.lua b/lualib/skynet/db/mysql.lua index 0d5cd4a1..a47f6bbe 100644 --- a/lualib/skynet/db/mysql.lua +++ b/lualib/skynet/db/mysql.lua @@ -8,7 +8,6 @@ local socketchannel = require "skynet.socketchannel" local crypt = require "skynet.crypt" -local mathfloor = math.floor local sub = string.sub local strgsub = string.gsub local strformat = string.format @@ -21,6 +20,7 @@ local sha1= crypt.sha1 local setmetatable = setmetatable local error = error local tonumber = tonumber +local tointeger = math.tointeger local _M = { _VERSION = '0.14' } -- constants @@ -135,7 +135,7 @@ local function _compose_packet(self, req) self.packet_no = self.packet_no + 1 local size = #req - local packet = string.pack("0 then local null_count=(arg_num+7)//8 @@ -760,7 +760,7 @@ local function read_prepare_result(self, sock) resp.err = "first typ must be OK,now"..typ return false,resp end - resp.prepare_id,resp.field_count,resp.param_count,resp.warning_count = string.unpack("