Skip to content
This repository has been archived by the owner on Sep 9, 2021. It is now read-only.

Commit

Permalink
StyleCI
Browse files Browse the repository at this point in the history
  • Loading branch information
maguilar92 committed Apr 18, 2018
1 parent 2f63547 commit caa99b4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Query/Grammars/MySqlGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ protected function compileFrom(Builder $query, $table)
if ($wrappedTable != $wrappedTablePrefixed) {
return 'from '.$this->wrap($database).'.'.$wrappedTablePrefixed.' as '.$wrappedTable;
}

return 'from '.$this->wrap($database).'.'.$wrappedTablePrefixed;
}

Expand Down
1 change: 1 addition & 0 deletions src/Query/Grammars/PostgresGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ protected function compileFrom(Builder $query, $table)
if ($wrappedTable != $wrappedTablePrefixed) {
return 'from '.$this->wrap($database).'.'.$wrappedTablePrefixed.' as '.$wrappedTable;
}

return 'from '.$this->wrap($database).'.'.$wrappedTablePrefixed;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Query/Grammars/SqlServerGrammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class SqlServerGrammar extends IlluminateSqlServerGrammar
protected function compileFrom(Builder $query, $table)
{
$from = 'from '.$this->wrapTable($table);

// Check for cross database query to attach database name
if (strpos($table, '<-->') !== false) {
list($prefix, $table, $database) = explode('<-->', $table);
Expand Down

0 comments on commit caa99b4

Please sign in to comment.