Mercurial > hg > isophonics-drupal-site
diff core/modules/search/src/SearchQuery.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | 129ea1e6d783 |
children |
line wrap: on
line diff
--- a/core/modules/search/src/SearchQuery.php Thu Feb 28 13:21:36 2019 +0000 +++ b/core/modules/search/src/SearchQuery.php Thu May 09 15:33:08 2019 +0100 @@ -111,7 +111,7 @@ * This is always used for the second step in the query, but is not part of * the preparation step unless $this->simple is FALSE. * - * @var DatabaseCondition + * @var Drupal\Core\Database\Query\ConditionInterface[] */ protected $conditions; @@ -621,7 +621,7 @@ $expressions = []; // Add sid as the only field and count them as a subquery. - $count = db_select($inner->fields('i', ['sid']), NULL, ['target' => 'replica']); + $count = $this->connection->select($inner->fields('i', ['sid']), NULL); // Add the COUNT() expression. $count->addExpression('COUNT(*)');