Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Query/MysqlQueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -217,8 +217,8 @@ public function findInSet($value, $set)
*/
public function selectRowNumber($orderBy, $orderColumnAlias)
{
// Use parent method with ROW_NUMBER() window function on MariaDB 11.0.0 and newer.
if ($this->db->isMariaDb() && version_compare($this->db->getVersion(), '11.0.0', '>=')) {
// Use parent method with ROW_NUMBER() window function on MariaDB >= 10.2.0 and MySQL >= 8.0.0.
if (version_compare($this->db->getVersion(), $this->mariadb ? '10.2.0' : '8.0.0', '>=')) {
return parent::selectRowNumber($orderBy, $orderColumnAlias);
}

Expand Down