diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-22 08:33:15 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-22 08:33:15 +0000 |
commit | 97c6fa5c5e1073a0fa9db378f79604e061887435 (patch) | |
tree | 34c9f3d122dc18a4c84c6bc1e9f258c266e4fc8e /src/modules/extra/m_pgsql.cpp | |
parent | 8ceb4ed16c147d6f6075a8920981bd37528ba5e7 (diff) |
*hide*, I forgot to include the ID in the SQLresult *rehide*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4491 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
-rw-r--r-- | src/modules/extra/m_pgsql.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index adabfb52c..49a481912 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -209,8 +209,8 @@ class PgSQLresult : public SQLresult SQLfieldList* fieldlist; SQLfieldMap* fieldmap; public: - PgSQLresult(Module* self, Module* to, PGresult* result) - : SQLresult(self, to), res(result), currentrow(0), fieldlist(NULL), fieldmap(NULL) + PgSQLresult(Module* self, Module* to, unsigned long id, PGresult* result) + : SQLresult(self, to, id), res(result), currentrow(0), fieldlist(NULL), fieldmap(NULL) { int rows = PQntuples(res); int cols = PQnfields(res); @@ -787,7 +787,7 @@ bool SQLConn::DoConnectedPoll() /* ..and the result */ log(DEBUG, "Got result, status code: %s; error message: %s", PQresStatus(PQresultStatus(result)), PQresultErrorMessage(result)); - PgSQLresult reply(us, to, result); + PgSQLresult reply(us, to, query.id, result); reply.Send(); |