Merge "Fix Postgres support"
[lhc/web/wiklou.git] / includes / libs / rdbms / database / DatabasePostgres.php
index fe5cfa1..57acd01 100644 (file)
@@ -1039,6 +1039,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 "