Actions
Bug #15485
closeddbal error in taskcenter_recent
Status:
Closed
Priority:
Should have
Assignee:
Category:
Database API (Doctrine DBAL)
Target version:
-
Start date:
2006-01-22
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
class.tx_taskcenterrecent.php uses the following sql-query in line 86ff.
$res = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
'sys_log.*, max(sys_log.tstamp) AS tstamp_MAX',
'sys_log,pages',
'pages.uid=sys_log.event_pid AND sys_log.userid='.intval($this->BE_USER->user['uid']).
$this->logWhere.
' AND '.$this->perms_clause,
'tablename,recuid',
'tstamp_MAX DESC',
$this->numberOfRecentAll
);
this query produces the following error message when using postgresql through dbal:
ERROR: column "sys_log.uid" must appear in the GROUP BY clause or be used in an aggregate function.
most of the databases following the standards require all columns in GROUP BY also to be in the select clause.
(issue imported from #M2360)
Files
Actions