unimportant

This commit is contained in:
Cosmin Apreutesei 2020-03-21 13:24:27 +02:00
parent cc85cffef9
commit bf6b50d966
1 changed files with 6 additions and 2 deletions

View File

@ -667,8 +667,10 @@ function res.fetch(res, mode, t)
local row = fetch_row(res, numeric, assoc, decode, field_count, fields, t or {})
if packed then
return row
else
elseif row then
return true, unpack(row)
else
return true, nil
end
end
@ -684,8 +686,10 @@ function res.rows(res, mode, t)
i = i + 1
if packed then
return i, row
else
elseif row then
return i, unpack(row)
else
return true, nil
end
end
end