[Vtigercrm-commits] [vtiger development] #71: Sorting columns in listview fails
vtiger development
vtiger-tickets at vtiger.fosslabs.com
Mon Mar 27 01:06:18 EST 2006
#71: Sorting columns in listview fails
-----------------------+----------------------------------------------------
Reporter: allanbush | Owner: allanbush
Type: defect | Status: new
Priority: major | Milestone: 4.2.5
Component: vtigercrm | Version: 4.2.4rc3
Keywords: postgres |
-----------------------+----------------------------------------------------
{{{
Warning: pg_exec() [function.pg-exec]: Query failed: ERROR: SELECT
DISTINCT ON expressions must match initial ORDER BY expressions in
/home/allan/code/vtiger/4.2_postgresql_integration/adodb/drivers/adodb-
postgres64.inc.php on line 766
(postgres7): select DISTINCT ON (crmid)
crmentity.crmid,crmentity.smownerid,crmentity.setype, activity.*,
contactdetails.lastname, contactdetails.firstname,
contactdetails.contactid, account.accountid, account.accountname,
recurringevents.recurringtype from activity inner join crmentity on
crmentity.crmid=activity.activityid left join cntactivityrel on
cntactivityrel.activityid= activity.activityid left join contactdetails on
contactdetails.contactid= cntactivityrel.contactid left join seactivityrel
on seactivityrel.activityid = activity.activityid left outer join account
on account.accountid = contactdetails.accountid left outer join
recurringevents on recurringevents.activityid=activity.activityid WHERE
crmentity.deleted=0 and (activity.activitytype = 'Meeting' or
activity.activitytype='Call' or activity.activitytype='Task') ORDER BY
subject ASC -1: ERROR: SELECT DISTINCT ON expressions must match initial
ORDER BY expressions
adodb_postgres7._execute( select DISTINCT ON (crmid)
crmentity.crmid,crmentity.smownerid,crmentity.setype, activity.*,
contactdetails.lastname, contactde..., false) % line 857, file:
adodb.inc.php
adodb_postgres7.execute( select DISTINCT ON (crmid)
crmentity.crmid,crmentity.smownerid,crmentity.setype, activity.*,
contactdetails.lastname, contactde...) % line 240, file: PearDatabase.php
peardatabase.query( select DISTINCT ON (crmid)
crmentity.crmid,crmentity.smownerid,crmentity.setype, activity.*,
contactdetails.lastname, contactde...) % line 303, file: ListView.php
include(/home/allan/code/vtiger/4.2_postgresql_integration/modules/Activities/ListView.php)
% line 27, file: index.php
include(/home/allan/code/vtiger/4.2_postgresql_integration/modules/Activities/index.php)
% line 777, file: index.php
}}}
Sorting the activity listview columns by subject (or other view/columns)
creates the above database error.
Blocks ticket #17.
--
Ticket URL: <http://vtiger.fosslabs.com/cgi-bin/trac.cgi/ticket/71>
vtiger development <http://vtiger.fosslabs.com/>
vtigerCRM
More information about the vtigercrm-commits
mailing list