From f0f4dd725b20c5acca3eacdc77754ad9d2103626 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 19:29:13 +0000 Subject: Wrong version given in check it seems. Om can review this later, but now it compiles on my system (pgsql 8.0.8) with that special feature thats only supposed to exist on 8.4.2 onwards.... :/ git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4822 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/extra/m_pgsql.cpp | 1 - src/modules/extra/pgsql_config.pl | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/modules/extra/m_pgsql.cpp b/src/modules/extra/m_pgsql.cpp index 51217bb71..d488bed8e 100644 --- a/src/modules/extra/m_pgsql.cpp +++ b/src/modules/extra/m_pgsql.cpp @@ -1125,7 +1125,6 @@ SQLerror SQLConn::DoQuery(SQLrequest &req) len = PQescapeStringConn(queryend, req.query.p.front().c_str(), req.query.p.front().length()); error = 0; #endif - if(error) { log(DEBUG, "Apparently PQescapeStringConn() failed somehow...don't know how or what to do..."); diff --git a/src/modules/extra/pgsql_config.pl b/src/modules/extra/pgsql_config.pl index bc91fa24d..be9fa06ed 100644 --- a/src/modules/extra/pgsql_config.pl +++ b/src/modules/extra/pgsql_config.pl @@ -3,4 +3,4 @@ my $v = substr(`pg_config --version`, 11); my($a, $b, $c) = split(/\./, $v); -print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("%02x", $a) . sprintf("%02x", $b) . sprintf("%02x", $c)) >= 0x080104); +print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("%02x", $a) . sprintf("%02x", $b) . sprintf("%02x", $c)) >= 0x080000); -- cgit v1.2.3