36 lines
903 B
PHP
36 lines
903 B
PHP
<?php
|
|
|
|
namespace Illuminate\Database\Query\Grammars;
|
|
|
|
use Illuminate\Database\Query\Builder;
|
|
use Illuminate\Database\Query\JoinLateralClause;
|
|
use RuntimeException;
|
|
|
|
class MariaDbGrammar extends MySqlGrammar
|
|
{
|
|
/**
|
|
* Compile a "lateral join" clause.
|
|
*
|
|
* @param \Illuminate\Database\Query\JoinLateralClause $join
|
|
* @param string $expression
|
|
* @return string
|
|
*
|
|
* @throws \RuntimeException
|
|
*/
|
|
public function compileJoinLateral(JoinLateralClause $join, string $expression): string
|
|
{
|
|
throw new RuntimeException('This database engine does not support lateral joins.');
|
|
}
|
|
|
|
/**
|
|
* Determine whether to use a legacy group limit clause for MySQL < 8.0.
|
|
*
|
|
* @param \Illuminate\Database\Query\Builder $query
|
|
* @return bool
|
|
*/
|
|
public function useLegacyGroupLimit(Builder $query)
|
|
{
|
|
return false;
|
|
}
|
|
}
|