ORMTable was bypassing the mechanism used by DBAccessBase to
ensure that the correct database name is selected when getting
a database connection.
Change-Id: Ic82ce46f1852dcaa5f52b40660ba4a9f52df22f6
* @return DatabaseBase The database object
*/
public function getReadDbConnection() {
- return $this->getLoadBalancer()->getConnection( $this->getReadDb(), array(), $this->getTargetWiki() );
+ return $this->getConnection( $this->getReadDb(), array() );
}
/**
* @return DatabaseBase The database object
*/
public function getWriteDbConnection() {
- return $this->getLoadBalancer()->getConnection( DB_MASTER, array(), $this->getTargetWiki() );
+ return $this->getConnection( DB_MASTER, array() );
}
/**