Skip to content

Commit

Permalink
[8.0] Reset select bindings for count query (#1730)
Browse files Browse the repository at this point in the history
  • Loading branch information
fschalkwijk authored and yajra committed May 12, 2018
1 parent 5fafe67 commit 13e4388
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/QueryDataTable.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,7 @@ protected function prepareCountQuery()
if (! $this->isComplexQuery($builder)) {
$row_count = $this->wrap('row_count');
$builder->select($this->connection->raw("'1' as {$row_count}"));
$builder->setBindings([], 'select');
}

return $builder;
Expand Down

0 comments on commit 13e4388

Please sign in to comment.