Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/cooperl22/laravel-db2
Browse files Browse the repository at this point in the history
  • Loading branch information
cooperl22 committed Mar 14, 2019
2 parents ca2c195 + 2eb655d commit 1f777ab
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Query/Grammars/DB2Grammar.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ protected function compileAnsiOffset(Builder $query, $components)
}

$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']);

Expand Down

0 comments on commit 1f777ab

Please sign in to comment.