From: mwjames Date: Thu, 27 Apr 2017 14:19:59 +0000 (+0000) Subject: Fix Postgres support X-Git-Tag: 1.31.0-rc.0~2983^2 X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=b5611ce6fa90146331370d6e133ef30b0259b69c Fix Postgres support See https://phabricator.wikimedia.org/T149454#3217259 This restores a line mistakenly deleted in eef8fc45f3d03596579abb2519185ace38cf6832. Bug: T149454 Change-Id: If6463904bb5269a7ccab5ddd69f69dba8104bc49 --- diff --git a/includes/libs/rdbms/database/DatabasePostgres.php b/includes/libs/rdbms/database/DatabasePostgres.php index b92d072112..23d9d3f18c 100644 --- a/includes/libs/rdbms/database/DatabasePostgres.php +++ b/includes/libs/rdbms/database/DatabasePostgres.php @@ -1051,6 +1051,7 @@ __INDEXATTR__; if ( $schema === false ) { $schema = $this->getCoreSchema(); } + $table = $this->realTableName( $table, 'raw' ); $etable = $this->addQuotes( $table ); $eschema = $this->addQuotes( $schema ); $sql = "SELECT 1 FROM pg_catalog.pg_class c, pg_catalog.pg_namespace n "