Fix Postgres support
authormwjames <jamesin.hongkong.1@gmail.com>
Thu, 27 Apr 2017 14:19:59 +0000 (14:19 +0000)
committerPaladox <thomasmulhall410@yahoo.com>
Mon, 8 May 2017 21:06:55 +0000 (21:06 +0000)
See https://phabricator.wikimedia.org/T149454#3217259

This restores a line mistakenly deleted in
eef8fc45f3d03596579abb2519185ace38cf6832.

Bug: T149454
Change-Id: If6463904bb5269a7ccab5ddd69f69dba8104bc49

includes/libs/rdbms/database/DatabasePostgres.php

index b92d072..23d9d3f 100644 (file)
@@ -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 "