From 082430147f1f4177a29c2eed290a5ec90815e9d5 Mon Sep 17 00:00:00 2001 From: yxt945 Date: Tue, 29 Oct 2019 11:44:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BD=BF=E7=94=A8toingeger=E4=BB=A3=E6=9B=BFma?= =?UTF-8?q?th.floor=E5=88=A4=E6=96=AD=E6=98=AF=E5=90=A6=E6=95=B4=E6=95=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lualib/skynet/db/mysql.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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("