summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/extra/pgsql_config.pl7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/extra/pgsql_config.pl b/src/modules/extra/pgsql_config.pl
index 6e0b54baf..c0f85758a 100644
--- a/src/modules/extra/pgsql_config.pl
+++ b/src/modules/extra/pgsql_config.pl
@@ -1,4 +1,7 @@
#!/usr/bin/perl
-`pg_config --version` =~ /^.*?(\d+)\.(\d+)\.(\d+).*?$/;
-print "-D PGSQL_HAS_ESCAPECONN" if(hex(sprintf("0x%02x%02x%02x", $1, $2, $3)) >= 0x080104);
+my $s = `pg_config --version`;
+$s = shift;
+$s =~ /^.*?(\d+)\.(\d+)\.(\d+).*?$/;
+my $v = hex(sprintf("0x%02x%02x%02x", $1, $2, $3));
+print "-D PGSQL_HAS_ESCAPECONN" if(($v >= 0x080104) or (($v >= 0x07030F) and ($v < 0x080000)));