From: jenkins-bot Date: Wed, 14 Mar 2018 09:57:18 +0000 (+0000) Subject: Merge "rdbms: allow construction of Database objects without connecting" X-Git-Tag: 1.31.0-rc.0~386 X-Git-Url: http://git.cyclocoop.org/data/%7B%7B%20url_for%28%27static%27%2C%20filename=%27js/%40%20%27info_articles_miens%27%20=%3E%20%27My%20articles%27%2C%20%27info_articles_tous%27%20=%3E%20%27All%20the%20articles%27%2C%20%27info_articles_trouves%27%20=%3E%20%27Articles%20found%27%2C-%27info_articles_trouves_dans_texte%27%20=%3E%20%27Articles%20found%20%28in%20the%20text%29%27%2C%20%27info_attente_validation%27%20=%3E%20%27Your%20articles%20awaiting%20validation%27%2C%20%27info_aucun_article%27%20=%3E%20%27No%20articles%27%2C-%27info_aucun_article_syndique%27%20=%3E%20%27No%20syndicated%20articles%27%2C%20%27info_aucun_auteur%27%20=%3E%20%27No%20authors%27%2C%20%27info_aucun_message%27%20=%3E%20%27No%20messages%27%2C%20%27info_aucun_rubrique%27%20=%3E%20%27No%20sections%27%2C-%27info_aucun_site%27%20=%3E%20%27No%20linked%20sites%27%2C-%27info_aucun_visiteur%27%20=%3E%20%27No%20visitors%27%2C%20%27info_aujourdhui%27%20=%3E%20%27today:%27%2C-%27info_auteur_message%27%20=%3E%20%27MESSAGE%20FROM:%27%2C%20%27info_auteurs%27%20=%3E%20%27Authors%27%2C%20%27info_auteurs_par_tri%27%20=%3E%20%27Authors%40partri%40%27%2C%20%27info_auteurs_trouves%27%20=%3E%20%27Authors%20found%27%2C%40%40%20-298%2C8%20%20254%2C6%20%40%40%20Do%20not%20submit%20this%20import%20request.%3Cp%3EFor%20more%20information%2C%20please%20see%20%3Ca%20href=?a=commitdiff_plain;h=ebf1570fd1ad7a9fc732e8dfdedcbc540c4a8ec6;p=lhc%2Fweb%2Fwiklou.git Merge "rdbms: allow construction of Database objects without connecting" --- ebf1570fd1ad7a9fc732e8dfdedcbc540c4a8ec6 diff --cc includes/libs/rdbms/database/Database.php index 3b929d5a35,8596690411..53cf55caf1 --- a/includes/libs/rdbms/database/Database.php +++ b/includes/libs/rdbms/database/Database.php @@@ -68,18 -74,16 +74,18 @@@ abstract class Database implements IDat protected $lastWriteTime = false; /** @var string|bool */ protected $phpError = false; - /** @var string */ + /** @var string Server that this instance is currently connected to */ protected $server; - /** @var string */ + /** @var string User that this instance is currently connected under the name of */ protected $user; - /** @var string */ + /** @var string Password used to establish the current connection */ protected $password; - /** @var string */ + /** @var string Database that this instance is currently connected to */ protected $dbName; - /** @var array[] $aliases Map of (table => (dbname, schema, prefix) map) */ + /** @var array[] Map of (table => (dbname, schema, prefix) map) */ protected $tableAliases = []; + /** @var string[] Map of (index alias => index) */ + protected $indexAliases = []; /** @var bool Whether this PHP instance is for a CLI script */ protected $cliMode; /** @var string Agent name for query profiling */ @@@ -3901,18 -3903,6 +3939,10 @@@ $this->tableAliases = $aliases; } + public function setIndexAliases( array $aliases ) { + $this->indexAliases = $aliases; + } + - /** - * @return bool Whether a DB user is required to access the DB - * @since 1.28 - */ - protected function requiresDatabaseUser() { - return true; - } - /** * Get the underlying binding connection handle *