Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed Jul 1, 2024
1 parent 2c4cf87 commit 59aa8f2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/Illuminate/Database/Query/Grammars/MariaDbGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,24 +23,24 @@ public function compileJoinLateral(JoinLateralClause $join, string $expression):
}

/**
* Determine whether to use a legacy group limit clause for MySQL < 8.0.
* Compile a "JSON value cast" statement into SQL.
*
* @param \Illuminate\Database\Query\Builder $query
* @return bool
* @param string $value
* @return string
*/
public function useLegacyGroupLimit(Builder $query)
public function compileJsonValueCast($value)
{
return false;
return "json_query({$value}, '$')";
}

/**
* Compile a "JSON value cast" statement into SQL.
* Determine whether to use a legacy group limit clause for MySQL < 8.0.
*
* @param string $value
* @return string
* @param \Illuminate\Database\Query\Builder $query
* @return bool
*/
public function compileJsonValueCast($value)
public function useLegacyGroupLimit(Builder $query)
{
return "json_query($value, '$')";
return false;
}
}

0 comments on commit 59aa8f2

Please sign in to comment.