Skip to content

Commit

Permalink
Favor Grammar::wrapTable method over doing it manually.
Browse files Browse the repository at this point in the history
  • Loading branch information
etrepat committed Mar 4, 2015
1 parent 9774e90 commit 710303a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Baum/SetValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ protected function validateBounds() {
$qualifiedRgtCol >= parent.$rgtCol)))";

$query = $this->node->newQuery()
->join($connection->raw($grammar->wrap( $grammar->getTablePrefix() . $tableName ).' AS parent'),
->join($connection->raw($grammar->wrapTable($tableName).' AS parent'),
$parentColumn, '=', $connection->raw('parent.'.$grammar->wrap($primaryKeyName)),
'left outer')
->whereRaw($whereStm);
Expand Down

0 comments on commit 710303a

Please sign in to comment.