From b22ff4ddcee2bfd189d237af121d34a324769e34 Mon Sep 17 00:00:00 2001 From: om Date: Sat, 22 Jul 2006 09:23:40 +0000 Subject: Set the ID in the request *before* we copy it by value why not.. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4492 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 49a481912..19fe1a1c4 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -511,8 +511,8 @@ public: if((iter = connections.find(req->dbid)) != connections.end()) { /* Execute query */ - req->error = iter->second->Query(*req); req->id = NewID(); + req->error = iter->second->Query(*req); return (req->error.Id() == NO_ERROR) ? sqlsuccess : NULL; } @@ -764,6 +764,8 @@ bool SQLConn::DoConnectedPoll() /* Grab the request we're processing */ SQLrequest& query = queue.front(); + log(DEBUG, "ID is %lu", query.id); + /* Get a pointer to the module we're about to return the result to */ Module* to = query.GetSource(); -- cgit v1.2.3