Skip to content

Commit ed43908

Browse files
author
Maxime Rault
committed
Qualify * with table name when row_number() follows
1 parent 5b8fa9d commit ed43908

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Query/Grammars/DB2Grammar.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ protected function compileAnsiOffset(Builder $query, $components)
8181

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

84+
if($columns == 'select *, ' && $query->from)
85+
{
86+
$columns = 'select ' . $this->tablePrefix . $query->from . '.*, ';
87+
}
88+
8489
$components['columns'] = $this->compileOver($orderings, $columns);
8590

8691
unset($components['orders']);

0 commit comments

Comments
 (0)