[freeside-commits] freeside/httemplate/browse rate_region.html, 1.1.2.2, 1.1.2.3
Ivan,,,
ivan at wavetail.420.am
Mon Mar 3 18:27:43 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv14555
Modified Files:
Tag: FREESIDE_1_7_BRANCH
rate_region.html
Log Message:
should improve compatibility with older Pg. i hope
Index: rate_region.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/browse/rate_region.html,v
retrieving revision 1.1.2.2
retrieving revision 1.1.2.3
diff -u -d -r1.1.2.2 -r1.1.2.3
--- rate_region.html 10 Jan 2008 21:52:31 -0000 1.1.2.2
+++ rate_region.html 4 Mar 2008 02:27:41 -0000 1.1.2.3
@@ -34,7 +34,7 @@
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,
More information about the freeside-commits
mailing list