Actions
Bug #94899
openExbase: Expression #1 of ORDER BY clause is not in SELECT list
Start date:
2021-08-16
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
10
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
TYPO3 10.4.19
MySQL 5.7.35
When I do an individual Query in my Repository with an order_by to a related table field, an error like:
Expression #1 of ORDER BY clause is not in SELECT list, references column 'typo3.tx_lux_domain_model_pagevisit.tstamp' which is not in SELECT list; this is incompatible with DISTINCT
came up
Example function in a Repository:
public function findSomething(): QueryResultInterface { $query = $this->createQuery(); $query->setOrderings(['relatedTable.tstamp' => QueryInterface::ORDER_DESCENDING]); return $query->execute(); }
When I do a "select @@SQL_MODE;" - this is the definition:
ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION
Actions