From 6016b09a4ace340e6c1411308ff7135f4ba7e3d1 Mon Sep 17 00:00:00 2001 From: om Date: Fri, 21 Jul 2006 17:18:39 +0000 Subject: Set the query string in the SQLquery to the copy with parameters substituted in. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4475 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 433d02aea..adabfb52c 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -1022,7 +1022,9 @@ SQLerror SQLConn::DoQuery(SQLrequest &req) /* Null-terminate the query */ *queryend = 0; - log(DEBUG, "Attempting to dispatch query: %s", query); + log(DEBUG, "Attempting to dispatch query: %s", query); + + req.query.q = query; if(PQsendQuery(sql, query)) { -- cgit v1.2.3