Skip to content

Commit a2064e2

Browse files
authored
Merge pull request #2614 from yajra/patch-count
[9.x] Revert changes on count.
2 parents 6126356 + 15ef5e9 commit a2064e2

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/QueryDataTable.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -212,10 +212,6 @@ public function count()
212212
{
213213
$builder = $this->prepareCountQuery();
214214

215-
if (empty($builder->havings)) {
216-
return $builder->count();
217-
}
218-
219215
$table = $this->connection->raw('('.$builder->toSql().') count_row_table');
220216

221217
return $this->connection->table($table)

0 commit comments

Comments
 (0)