Project

General

Profile

Actions

Bug #15485

closed

dbal error in taskcenter_recent

Added by Christian Welzel almost 19 years ago. Updated about 14 years ago.

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

2360.diff (1019 Bytes) 2360.diff Administrator Admin, 2010-04-19 15:52
Actions #1

Updated by Xavier Perseguers over 14 years ago

Attached patch only retrieves columns that are really needed. This should fix this bug.

I created a bug report for taskcenter_recent as this extension is not part of Core:

http://forge.typo3.org/issues/show/7333

Actions #2

Updated by Xavier Perseguers over 14 years ago

According to Georg in Forge's bugtracker, this problem is finally solved!

Actions

Also available in: Atom PDF