From de1865ec885766f49695f7858e547c83c25050cb Mon Sep 17 00:00:00 2001 From: Frank Schalkwijk Date: Mon, 7 May 2018 14:01:40 +0200 Subject: [PATCH] [8.0] Reset select bindings for count query --- src/QueryDataTable.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/QueryDataTable.php b/src/QueryDataTable.php index e07badf6..270a5d19 100644 --- a/src/QueryDataTable.php +++ b/src/QueryDataTable.php @@ -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;