Skip to content

Commit

Permalink
remove backticks (postgres)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrissm79 committed Apr 25, 2018
1 parent e53f293 commit c46c438
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Support/DataLoader/QueryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ protected function loadRelation(Builder $builder, Closure $constraints, array $m
})->implode(' UNION ALL ');

$table = $related->getTable();
$results = \DB::select("SELECT `{$table}`.* FROM ({$sql}) AS `{$table}`", $bindings);
$results = app('db')->select("SELECT * FROM ({$sql}) AS {$table}", $bindings);
$hydrated = $this->hydrate($related, $relation, $results);
$collection = $this->loadDefaultWith($related->newCollection($hydrated));
$matched = $relation->match($models, $collection, $options['name']);
Expand Down

0 comments on commit c46c438

Please sign in to comment.