Может кому пригодится решение подобной проблемы!
local funcBody = [[function(sql)
local sqlres,err = box.execute(sql)
if err~=nil then
return err
end
local result = {}
if sqlres.rows ~=nil then
for v=1, #sqlres.rows do
table.insert(result, sqlres.rows[v]:tomap())
end
return result
end
if sqlres.autoincrement_ids ~= nil then
return sqlres.autoincrement_ids
end
return sqlres.row_count
end ]]
Слушайте, а почему вы ходите из го в луа, а там запускаете SQL? Почему не делать все в луа, или все в SQL?