diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-21 17:18:39 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-21 17:18:39 +0000 |
commit | 6016b09a4ace340e6c1411308ff7135f4ba7e3d1 (patch) | |
tree | 5afbef24c5c148a8742d0f36c18090c227059f51 | |
parent | e491d292c062c9889314a9803692991d8553a3ca (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
-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 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)) { |