diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-19 15:58:39 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-11-19 15:58:39 +0000 |
commit | 73f81c0204fb24f4cc04abbc3486b5e5bbca8db8 (patch) | |
tree | 6ed11685ca79b57f5318ad8e18ca7073c3deece4 | |
parent | bd5a53c82c0e23920c29bf384d0fdb5b11d7a287 (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.cpp | 3 |
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) { |