Bug #24148
closedgroupBy and orderBy fails on exec_query
0%
Description
dbal/lib/class.ux_t3lib_db.php
LINE 827:
$groupBy = isset($queryParts['GROUPBY']) ? $this->SQLparser->compileWhereClause($queryParts['GROUPBY']) : '';
SHOULD BE:
$groupBy = isset($queryParts['GROUPBY']) ? $this->SQLparser->compileFieldList($queryParts['GROUPBY']) : '';
LINE 828:
$orderBy = isset($queryParts['GROUPBY']) ? $this->SQLparser->compileWhereClause($queryParts['ORDERBY']) : '';
SHOULD BE:
$orderBy = isset($queryParts['ORDERBY']) ? $this->SQLparser->compileFieldList($queryParts['ORDERBY']) : '';
group or order by wont work on native
(issue imported from #M16492)
Files
Updated by Xavier Perseguers almost 14 years ago
According to code found in compileSelectParameters(), you're right!
Updated by Xavier Perseguers almost 14 years ago
Committed to:
- DBAL trunk (rev. 40690)
- DBAL_1-1 (rev. 40691)
thanks for pointing out and your "patch".