diff options
| author | 2006-11-19 15:58:39 +0000 | |
|---|---|---|
| committer | 2006-11-19 15:58:39 +0000 | |
| commit | 73f81c0204fb24f4cc04abbc3486b5e5bbca8db8 (patch) | |
| tree | 6ed11685ca79b57f5318ad8e18ca7073c3deece4 /src/modules/extra/m_pgsql.cpp | |
| parent | Make opermotd and randquote paths relative (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
Diffstat (limited to 'src/modules/extra/m_pgsql.cpp')
| -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) { |
