From 78829e233cd9a88ac251f81cfcc543b8477bbe44 Mon Sep 17 00:00:00 2001
From: GoZ <goz@226961.no-reply.drupal.org>
Date: Wed, 14 Sep 2016 14:23:04 +0200
Subject: [PATCH] Issue #2799911: Select Query Builder use alias default value
 as parameter before non-optional parameter

---
 core/lib/Drupal/Core/Database/Query/Select.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/core/lib/Drupal/Core/Database/Query/Select.php b/core/lib/Drupal/Core/Database/Query/Select.php
index b7db605..c799f79 100644
--- a/core/lib/Drupal/Core/Database/Query/Select.php
+++ b/core/lib/Drupal/Core/Database/Query/Select.php
@@ -129,7 +129,7 @@ class Select extends Query implements SelectInterface {
    * @param array $options
    *   Array of query options.
    */
-  public function __construct($table, $alias = NULL, Connection $connection, $options = array()) {
+  public function __construct($table, $alias, Connection $connection, $options = array()) {
     $options['return'] = Database::RETURN_STATEMENT;
     parent::__construct($connection, $options);
     $conjunction = isset($options['conjunction']) ? $options['conjunction'] : 'AND';
-- 
2.7.4 (Apple Git-66)

