From 73f81c0204fb24f4cc04abbc3486b5e5bbca8db8 Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 19 Nov 2006 15:58:39 +0000 Subject: 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 --- src/modules/extra/m_pgsql.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/modules') 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) { -- cgit v1.2.3