diff options
author | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 15:15:28 +0000 |
---|---|---|
committer | om <om@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 15:15:28 +0000 |
commit | e533a9bb2afa6adb89c842ba6108b1867d45cc54 (patch) | |
tree | 18a0b564b8671b8be66c1464d21636bdb93464d6 /src | |
parent | 7639c4bf92149ff65be6e09d6eca5db68debc760 (diff) |
Fix for when we hit PgSQL 9.x that I think actually works
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4815 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/extra/pgsql_config.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/extra/pgsql_config.pl b/src/modules/extra/pgsql_config.pl index 9b09aef91..bc91fa24d 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((($a = 8) and ($b >= 1) and ($c >= 4)) or ($a > 8)); +print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("%02x", $a) . sprintf("%02x", $b) . sprintf("%02x", $c)) >= 0x080104); |