diff -u b/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php b/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php --- b/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php +++ b/core/lib/Drupal/Core/Entity/Query/Sql/Condition.php @@ -29,7 +29,6 @@ * {@inheritdoc} */ public function compile($conditionContainer) { - $entityQueryCondition = Database::getConnection()->getDriverClass('EntityQuery\\Condition'); // If this is not the top level condition group then the sql query is // added to the $conditionContainer object by this function itself. The