mirror of
https://github.com/cloudwu/skynet.git
synced 2026-07-25 12:43:09 +00:00
修复mysql.execute的变长参数最后一个为nil时的NULL位图错误 (#1829)
Co-authored-by: wfl <felove_2008@qq.com>
This commit is contained in:
@@ -584,7 +584,7 @@ local function _compose_stmt_execute(self, stmt, cursor_type, args)
|
|||||||
for i = 1, null_count do
|
for i = 1, null_count do
|
||||||
local byte = 0
|
local byte = 0
|
||||||
for j = 0, 7 do
|
for j = 0, 7 do
|
||||||
if field_index < arg_num then
|
if field_index <= arg_num then
|
||||||
if args[field_index] == nil then
|
if args[field_index] == nil then
|
||||||
byte = byte | (1 << j)
|
byte = byte | (1 << j)
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user