summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-21 17:18:39 +0000
committerom <om@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-21 17:18:39 +0000
commit6016b09a4ace340e6c1411308ff7135f4ba7e3d1 (patch)
tree5afbef24c5c148a8742d0f36c18090c227059f51 /src
parente491d292c062c9889314a9803692991d8553a3ca (diff)
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
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 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))
{