rdbms: Database::selectDB() update the domain and handle failure better
[lhc/web/wiklou.git] / includes / libs / rdbms / database / DBConnRef.php
index ba251ba..f693dd5 100644 (file)
@@ -375,6 +375,11 @@ class DBConnRef implements IDatabase {
                throw new DBUnexpectedError( $this, "Database selection is disallowed to enable reuse." );
        }
 
+       public function selectDomain( $domain ) {
+               // Disallow things that might confuse the LoadBalancer tracking
+               throw new DBUnexpectedError( $this, "Database selection is disallowed to enable reuse." );
+       }
+
        public function getDBname() {
                return $this->__call( __FUNCTION__, func_get_args() );
        }