Skip to content

Commit

Permalink
pr
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Jan 15, 2024
1 parent 5831423 commit d9a648c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Grammars/Traits/CompilesMySqlGroupLimit.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,9 @@ trait CompilesMySqlGroupLimit
*/
public function useLegacyGroupLimit(Builder $query)
{
if ($query->getConnection()->isMaria()) {
return false;
}

$version = $query->getConnection()->getReadPdo()->getAttribute(PDO::ATTR_SERVER_VERSION);

return version_compare($version, '8.0.11') < 0 && !str_contains($version, 'MariaDB');
return ! $query->getConnection()->isMaria() && version_compare($version, '8.0.11') < 0;
}

/**
Expand Down

0 comments on commit d9a648c

Please sign in to comment.