From 3654c39e8a2743b246faddbfa577794986ab927c Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 17 Oct 2008 07:50:48 -0700 Subject: Fixing SafeQuery's auto-reconnect. --- lib/dblib.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3 From 9b3ff53ffc285a501a20dddf4c6aaf4d9836d5fe Mon Sep 17 00:00:00 2001 From: Pixel Date: Fri, 17 Oct 2008 18:33:11 +0200 Subject: Linux compilation fix. --- lib/MailServer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MailServer.cc b/lib/MailServer.cc index 0f5194c..c0e3607 100644 --- a/lib/MailServer.cc +++ b/lib/MailServer.cc @@ -51,7 +51,7 @@ class ProcessSMTPRequest : public Task { static Regex single_dot("^\\.$"), dotted_line("^\\..+$"); -int ProcessSMTPRequest::Do() { +int ProcessSMTPRequest::Do() throw (GeneralException) { String l, cmd; Buffer * out; -- cgit v1.2.3