Fix some postgres test failures
[lhc/web/wiklou.git] / includes / libs / rdbms / database / DBConnRef.php
index bd5cdb5..b6167aa 100644 (file)
@@ -1,12 +1,14 @@
 <?php
 
-use Wikimedia\Rdbms\DatabaseDomain;
+namespace Wikimedia\Rdbms;
+
+use InvalidArgumentException;
 
 /**
  * Helper class to handle automatically marking connections as reusable (via RAII pattern)
  * as well handling deferring the actual network connection until the handle is used
  *
- * @note: proxy methods are defined explicity to avoid interface errors
+ * @note: proxy methods are defined explicitly to avoid interface errors
  * @ingroup Database
  * @since 1.22
  */
@@ -347,6 +349,10 @@ class DBConnRef implements IDatabase {
                return $this->__call( __FUNCTION__, func_get_args() );
        }
 
+       public function databasesAreIndependent() {
+               return $this->__call( __FUNCTION__, func_get_args() );
+       }
+
        public function selectDB( $db ) {
                return $this->__call( __FUNCTION__, func_get_args() );
        }
@@ -601,3 +607,5 @@ class DBConnRef implements IDatabase {
                }
        }
 }
+
+class_alias( DBConnRef::class, 'DBConnRef' );