This commit is contained in:
Maxime Rault 2019-03-14 15:31:57 +01:00
commit 1f777ab61f

View File

@ -105,6 +105,13 @@ class DB2Grammar extends Grammar
$components['columns'] = $this->compileOver($orderings, $columns); $components['columns'] = $this->compileOver($orderings, $columns);
// if there are bindings in the order, we need to move them to the select since we are moving the parameter
// markers there with the OVER statement
if(isset($query->getRawBindings()['order'])){
$query->addBinding($query->getRawBindings()['order'], 'select');
$query->setBindings([], 'order');
}
unset($components['orders']); unset($components['orders']);
// Next we need to calculate the constraints that should be placed on the query // Next we need to calculate the constraints that should be placed on the query