summaryrefslogtreecommitdiff
path: root/lib/dblib.lua
diff options
context:
space:
mode:
authorPixel <pixel@nobis-crew.org>2008-10-17 07:50:48 -0700
committerPixel <pixel@nobis-crew.org>2008-10-17 07:50:48 -0700
commit3654c39e8a2743b246faddbfa577794986ab927c (patch)
tree9d8b74e4c72e0b24e8139dbc5bbf7af9fe6ae8f9 /lib/dblib.lua
parent05a34ba1975a57444c9cdb507c4707b4a63b4bf7 (diff)
Fixing SafeQuery's auto-reconnect.
Diffstat (limited to 'lib/dblib.lua')
-rw-r--r--lib/dblib.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/dblib.lua b/lib/dblib.lua
index 5466334..85fc15a 100644
--- a/lib/dblib.lua
+++ b/lib/dblib.lua
@@ -678,7 +678,7 @@ _luadb = {
end
if r ~= 0 and db._.conn:ErrNO() == 2006 then -- disconnected
- db._.conn = db:opendb()
+ db._.conn = luadb:opendb(db)._.conn
r = db._.conn:Query(str)
end