From 97c6fa5c5e1073a0fa9db378f79604e061887435 Mon Sep 17 00:00:00 2001 From: om Date: Sat, 22 Jul 2006 08:33:15 +0000 Subject: *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 --- src/modules/extra/m_pgsql.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/extra/m_pgsql.cpp') 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(); -- cgit v1.3.1-10-gc9f91