Skip to content

Commit

Permalink
Qualify * with table name when row_number() follows
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxime Rault committed Aug 24, 2016
1 parent 5b8fa9d commit ed43908
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@ protected function compileAnsiOffset(Builder $query, $components)

$columns = (!empty($components['columns']) ? $components['columns'] . ', ': 'select');

if($columns == 'select *, ' && $query->from)
{
$columns = 'select ' . $this->tablePrefix . $query->from . '.*, ';
}

$components['columns'] = $this->compileOver($orderings, $columns);

unset($components['orders']);
Expand Down

0 comments on commit ed43908

Please sign in to comment.