diff options
-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) { |