[freeside-commits] freeside/FS/FS cust_pkg.pm,1.159,1.160
Ivan,,,
ivan at wavetail.420.am
Fri Mar 26 14:43:47 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv27917
Modified Files:
cust_pkg.pm
Log Message:
no DISTINCT ON in MySQL makes kittens cry
Index: cust_pkg.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/cust_pkg.pm,v
retrieving revision 1.159
retrieving revision 1.160
diff -u -w -d -r1.159 -r1.160
--- cust_pkg.pm 18 Mar 2010 07:59:51 -0000 1.159
+++ cust_pkg.pm 26 Mar 2010 21:43:45 -0000 1.160
@@ -1718,7 +1718,9 @@
#seems to benchmark slightly faster...
qsearch( {
- 'select' => 'DISTINCT ON (svcpart) part_svc.*',
+ #'select' => 'DISTINCT ON (svcpart) part_svc.*',
+ #MySQL doesn't grok DISINCT ON
+ 'select' => 'DISTINCT part_svc.*',
'table' => 'part_svc',
'addl_from' =>
'LEFT JOIN pkg_svc ON ( pkg_svc.svcpart = part_svc.svcpart
More information about the freeside-commits
mailing list