Skip to content

Commit

Permalink
formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
taylorotwell committed May 29, 2018
1 parent 4c94f41 commit 5337149
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/Illuminate/Database/Query/Grammars/Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -499,11 +499,9 @@ protected function whereRowValues(Builder $query, $where)
*/
protected function whereJsonContains(Builder $query, $where)
{
$column = $this->wrap($where['column']);

$value = $this->parameter($where['value']);

return $this->compileJsonContains($column, $value);
return $this->compileJsonContains(
$this->wrap($where['column']), $this->parameter($where['value'])
);
}

/**
Expand All @@ -516,7 +514,7 @@ protected function whereJsonContains(Builder $query, $where)
*/
protected function compileJsonContains($column, $value)
{
throw new RuntimeException('The database engine in use is not yet supported.');
throw new RuntimeException('This database engine does not support JSON contains operations.');
}

/**
Expand Down

0 comments on commit 5337149

Please sign in to comment.