summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-19 15:58:39 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-11-19 15:58:39 +0000
commit73f81c0204fb24f4cc04abbc3486b5e5bbca8db8 (patch)
tree6ed11685ca79b57f5318ad8e18ca7073c3deece4
parentbd5a53c82c0e23920c29bf384d0fdb5b11d7a287 (diff)
Merge pgsql stuff from darix, but im sure theres something to be looked at in the helper script
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5776 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/extra/m_pgsql.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp
index f4392a4ed..ca74f4223 100644
--- a/src/modules/extra/m_pgsql.cpp
+++ b/src/modules/extra/m_pgsql.cpp
@@ -1128,8 +1128,7 @@ SQLerror SQLConn::DoQuery(SQLrequest &req)
#ifdef PGSQL_HAS_ESCAPECONN
len = PQescapeStringConn(sql, queryend, req.query.p.front().c_str(), req.query.p.front().length(), &error);
#else
- len = PQescapeStringConn(queryend, req.query.p.front().c_str(), req.query.p.front().length());
- error = 0;
+ len = PQescapeString (queryend, req.query.p.front().c_str(), req.query.p.front().length());
#endif
if(error)
{