diff options
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 4 |
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(); |