https://www.mediawiki.org/wiki/Special:Code/MediaWiki/113498

Revision: 113498
Author:   reedy
Date:     2012-03-09 18:52:31 +0000 (Fri, 09 Mar 2012)
Log Message:
-----------
Fix broken unit tests post r113487

[exec] PHP Fatal error:  Call to a member function getCoreSchema() on a 
non-object in 
/var/lib/jenkins/jobs/MediaWiki-postgres-phpunit/workspace/mw-core/includes/db/DatabasePostgres.php
 on line 216

Modified Paths:
--------------
    trunk/phase3/includes/db/DatabasePostgres.php

Modified: trunk/phase3/includes/db/DatabasePostgres.php
===================================================================
--- trunk/phase3/includes/db/DatabasePostgres.php       2012-03-09 18:45:28 UTC 
(rev 113497)
+++ trunk/phase3/includes/db/DatabasePostgres.php       2012-03-09 18:52:31 UTC 
(rev 113498)
@@ -213,7 +213,7 @@
 
        function hasConstraint( $name ) {
                $SQL = "SELECT 1 FROM pg_catalog.pg_constraint c, 
pg_catalog.pg_namespace n WHERE c.connamespace = n.oid AND conname = '" .
-                               pg_escape_string( $this->mConn, $name ) . "' 
AND n.nspname = '" . pg_escape_string( $this->mConn, 
$this->mConn->getCoreSchema() ) ."'";
+                               pg_escape_string( $this->mConn, $name ) . "' 
AND n.nspname = '" . pg_escape_string( $this->mConn, $this->getCoreSchema() ) 
."'";
                $res = $this->doQuery( $SQL );
                return $this->numRows( $res );
        }


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to