summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 09:23:40 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-22 09:23:40 +0000
commitb22ff4ddcee2bfd189d237af121d34a324769e34 (patch)
treebfdb282a5a481699c4d09ecabed0ef67a1e77637 /src
parent97c6fa5c5e1073a0fa9db378f79604e061887435 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/m_pgsql.cpp4
1 files changed, 3 insertions, 1 deletions
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();