From 4358ee16e80081d8fe8464132d63b1d62afc4448 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Thu, 12 Apr 2018 00:23:41 -0700 Subject: [PATCH] Fix LocalFileMoveBatch query that was incompatibile with Postgres Bug: T160910 Change-Id: I7ed6acec08243ff8380d28bbe5d66610a77502dc --- includes/filerepo/file/LocalFile.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/file/LocalFile.php b/includes/filerepo/file/LocalFile.php index 7fc45ebf4a..0464f071b5 100644 --- a/includes/filerepo/file/LocalFile.php +++ b/includes/filerepo/file/LocalFile.php @@ -3344,9 +3344,9 @@ class LocalFileMoveBatch { __METHOD__, [ 'FOR UPDATE' ] ); - $oldRowCount = $dbw->selectField( + $oldRowCount = $dbw->selectRowCount( 'oldimage', - 'COUNT(*)', + '*', [ 'oi_name' => $this->oldName ], __METHOD__, [ 'FOR UPDATE' ] -- 2.20.1