summaryrefslogtreecommitdiff
path: root/httemplate
diff options
context:
space:
mode:
authorivan <ivan>2008-03-04 02:27:41 +0000
committerivan <ivan>2008-03-04 02:27:41 +0000
commit86cded3d3105534701aeacb3df4dc00228689372 (patch)
tree5466bd2a7976891ba1490ab308ae7606630927ef /httemplate
parent479339313bbda612f8fe939217fd067999ef36d4 (diff)
should improve compatibility with older Pg. i hope
Diffstat (limited to 'httemplate')
-rw-r--r--httemplate/browse/rate_region.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/httemplate/browse/rate_region.html b/httemplate/browse/rate_region.html
index 1d04b648c..e144625a5 100644
--- a/httemplate/browse/rate_region.html
+++ b/httemplate/browse/rate_region.html
@@ -34,7 +34,7 @@ if ( driver_name =~ /^Pg/ ) {
my $fromwhere = 'FROM rate_prefix'.
' WHERE rate_prefix.regionnum = rate_region.regionnum';
$select .= "( SELECT countrycode $fromwhere LIMIT 1 ) AS ccode,
- ARRAY_TO_STRING( ARRAY(SELECT npa $fromwhere), ',' ) AS prefixes";
+ ARRAY_TO_STRING( ARRAY(SELECT npa $fromwhere AND npa IS NOT NULL), ',' ) AS prefixes";
} elsif ( driver_name =~ /^mysql/i ) {
$join = 'LEFT JOIN rate_prefix USING ( regionnum )';
$select .= "GROUP_CONCAT( DISTINCT countrycode ) AS ccode,