From 4b0937cc19f9af37e0eb917582ead930c0566bf2 Mon Sep 17 00:00:00 2001 From: felove <826279291@qq.com> Date: Fri, 1 Dec 2023 11:28:59 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmysql.execute=E7=9A=84?= =?UTF-8?q?=E5=8F=98=E9=95=BF=E5=8F=82=E6=95=B0=E6=9C=80=E5=90=8E=E4=B8=80?= =?UTF-8?q?=E4=B8=AA=E4=B8=BAnil=E6=97=B6=E7=9A=84NULL=E4=BD=8D=E5=9B=BE?= =?UTF-8?q?=E9=94=99=E8=AF=AF=20(#1829)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: wfl --- lualib/skynet/db/mysql.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lualib/skynet/db/mysql.lua b/lualib/skynet/db/mysql.lua index a61afd5f..44b58a65 100644 --- a/lualib/skynet/db/mysql.lua +++ b/lualib/skynet/db/mysql.lua @@ -584,7 +584,7 @@ local function _compose_stmt_execute(self, stmt, cursor_type, args) for i = 1, null_count do local byte = 0 for j = 0, 7 do - if field_index < arg_num then + if field_index <= arg_num then if args[field_index] == nil then byte = byte | (1 << j) else