Qualify * with table name when row_number() follows

This commit is contained in:
Maxime Rault 2016-08-24 10:10:24 +02:00
parent 5b8fa9da42
commit ed43908a2d

View File

@ -81,6 +81,11 @@ class DB2Grammar extends Grammar
$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']);