diff options
Diffstat (limited to 'src/modules/extra/pgsql_config.pl')
-rw-r--r-- | src/modules/extra/pgsql_config.pl | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/modules/extra/pgsql_config.pl b/src/modules/extra/pgsql_config.pl index be9fa06ed..6e0b54baf 100644 --- a/src/modules/extra/pgsql_config.pl +++ b/src/modules/extra/pgsql_config.pl @@ -1,6 +1,4 @@ #!/usr/bin/perl -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)) >= 0x080000); +`pg_config --version` =~ /^.*?(\d+)\.(\d+)\.(\d+).*?$/; +print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("0x%02x%02x%02x", $1, $2, $3)) >= 0x080104); |