mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-08 04:33:49 +00:00
Fix. connected method on LuaSQL backend.
This commit is contained in:
@@ -94,7 +94,11 @@ function LuaSQLDatabase:release()
|
||||
end
|
||||
|
||||
function LuaSQLDatabase:connected()
|
||||
return self._dbh and self._dbh:connected()
|
||||
if not self._dbh then
|
||||
return false
|
||||
end
|
||||
local str = tostring(self._dbh)
|
||||
return not string.find(str, 'closed')
|
||||
end
|
||||
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user