Don't fail when query_row() is called with an empty SELECT.
This commit is contained in:
@ -299,7 +299,7 @@ end
|
||||
function connection_methods.query_row(self, query)
|
||||
local rs = self:query(query)
|
||||
|
||||
if rs == nil then
|
||||
if rs == nil or rs.nrows == 0 then
|
||||
return nil
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user