Change the Database:query to make the fn optional which will make it more backwards compatible with current code. This fixes an issue with recent movement to the database class in call_forward.lua.
This commit is contained in:
parent
6cc9040787
commit
71ea6a8328
|
|
@ -27,7 +27,11 @@ function Database.new(name)
|
||||||
end
|
end
|
||||||
|
|
||||||
function Database:query(sql, fn)
|
function Database:query(sql, fn)
|
||||||
return self._dbh:query(sql, fn)
|
if (fn == nil) then
|
||||||
|
return self._dbh:query(sql)
|
||||||
|
else
|
||||||
|
return self._dbh:query(sql, fn)
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
function Database:first_row(sql)
|
function Database:first_row(sql)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue