[freeside-commits] freeside/FS/FS cust_pkg.pm, 1.139.2.14, 1.139.2.15
Ivan,,,
ivan at wavetail.420.am
Fri Mar 26 14:43:49 PDT 2010
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv27921
Modified Files:
Tag: FREESIDE_1_9_BRANCH
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.139.2.14
retrieving revision 1.139.2.15
diff -u -w -d -r1.139.2.14 -r1.139.2.15
--- cust_pkg.pm 13 Mar 2010 23:50:55 -0000 1.139.2.14
+++ cust_pkg.pm 26 Mar 2010 21:43:47 -0000 1.139.2.15
@@ -1703,7 +1703,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