mirror of
https://github.com/luapower/mysql.git
synced 2025-07-01 16:00:33 +02:00
unimportant
This commit is contained in:
@ -667,8 +667,10 @@ function res.fetch(res, mode, t)
|
|||||||
local row = fetch_row(res, numeric, assoc, decode, field_count, fields, t or {})
|
local row = fetch_row(res, numeric, assoc, decode, field_count, fields, t or {})
|
||||||
if packed then
|
if packed then
|
||||||
return row
|
return row
|
||||||
else
|
elseif row then
|
||||||
return true, unpack(row)
|
return true, unpack(row)
|
||||||
|
else
|
||||||
|
return true, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
@ -684,8 +686,10 @@ function res.rows(res, mode, t)
|
|||||||
i = i + 1
|
i = i + 1
|
||||||
if packed then
|
if packed then
|
||||||
return i, row
|
return i, row
|
||||||
else
|
elseif row then
|
||||||
return i, unpack(row)
|
return i, unpack(row)
|
||||||
|
else
|
||||||
|
return true, nil
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Reference in New Issue
Block a user