[freeside-commits] freeside/httemplate/browse rate_region.html, 1.1, 1.2
Ivan,,,
ivan at wavetail.420.am
Mon Mar 3 18:27:42 PST 2008
Update of /home/cvs/cvsroot/freeside/httemplate/browse
In directory wavetail.420.am:/tmp/cvs-serv14551
Modified Files:
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
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- rate_region.html 10 Jan 2008 21:52:27 -0000 1.1
+++ rate_region.html 4 Mar 2008 02:27:40 -0000 1.2
@@ -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