From b99197d906d22558bfd9234908c36c8074b49690 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Wed, 10 Sep 2014 20:41:14 +0200 Subject: [PATCH] Fix column alias in sql on ApiQueryAllUsers.php PostgreSQL needs explicit AS, so using the array syntax, which produce the correct sql. Change-Id: I9588678af955f260df628c6355bf0865f894c224 --- includes/api/ApiQueryAllUsers.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryAllUsers.php b/includes/api/ApiQueryAllUsers.php index dfef286084..63990aa990 100644 --- a/includes/api/ApiQueryAllUsers.php +++ b/includes/api/ApiQueryAllUsers.php @@ -156,7 +156,7 @@ class ApiQueryAllUsers extends ApiQueryBase { $this->addTables( 'user_groups', 'ug2' ); $this->addJoinConds( array( 'ug2' => array( 'LEFT JOIN', 'ug2.ug_user=user_id' ) ) ); - $this->addFields( 'ug2.ug_group ug_group2' ); + $this->addFields( array( 'ug_group2' => 'ug2.ug_group' ) ); } else { $sqlLimit = $limit + 1; } -- 2.20.1