Qualify * with table name when row_number() follows
This commit is contained in:
parent
5b8fa9da42
commit
ed43908a2d
@ -81,6 +81,11 @@ class DB2Grammar extends Grammar
|
|||||||
|
|
||||||
$columns = (!empty($components['columns']) ? $components['columns'] . ', ': 'select');
|
$columns = (!empty($components['columns']) ? $components['columns'] . ', ': 'select');
|
||||||
|
|
||||||
|
if($columns == 'select *, ' && $query->from)
|
||||||
|
{
|
||||||
|
$columns = 'select ' . $this->tablePrefix . $query->from . '.*, ';
|
||||||
|
}
|
||||||
|
|
||||||
$components['columns'] = $this->compileOver($orderings, $columns);
|
$components['columns'] = $this->compileOver($orderings, $columns);
|
||||||
|
|
||||||
unset($components['orders']);
|
unset($components['orders']);
|
||||||
|
Loading…
Reference in New Issue
Block a user