Skip to content

Commit

Permalink
Remove support for old SQLite versions
Browse files Browse the repository at this point in the history
  • Loading branch information
staudenmeir committed Feb 28, 2024
1 parent 7c680bb commit 99fc40e
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions src/Illuminate/Database/Query/Grammars/SQLiteGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -184,25 +184,6 @@ protected function compileJsonContainsKey($column)
return 'json_type('.$field.$path.') is not null';
}

/**
* Compile a group limit clause.
*
* @param \Illuminate\Database\Query\Builder $query
* @return string
*/
protected function compileGroupLimit(Builder $query)
{
$version = $query->getConnection()->getServerVersion();

if (version_compare($version, '3.25.0') >= 0) {
return parent::compileGroupLimit($query);
}

$query->groupLimit = null;

return $this->compileSelect($query);
}

/**
* Compile an update statement into SQL.
*
Expand Down

0 comments on commit 99fc40e

Please sign in to comment.