Add support for mysqli extension
authorJakub Vrana <jakub@vrana.cz>
Fri, 3 May 2013 06:01:32 +0000 (23:01 -0700)
committerTim Starling <tstarling@wikimedia.org>
Wed, 16 Oct 2013 23:17:57 +0000 (23:17 +0000)
commitb2d64432ee02661ea29cb727686e10e7a4980dfb
tree3761250d715492a214b0c586a7127945aa9d1cba
parentc10500aeaeb341024553a128070875ab94e9d17a
Add support for mysqli extension

DatabaseBase::factory()'s parameter array now takes an optional
'driver' variable to allow specifying a specific driver for the
database class if we support more than one.

This is so we can gracefully support mysql/mysqli as the former is
deprecated, but the concept could be extended to other databases
as well.

Bug: 45288
Co-Author: Chad Horohoe <chadh@wikimedia.org>
Change-Id: I6733fe21c4aa7443e409c5dfa7c789552b2b62b7
RELEASE-NOTES-1.22
includes/AutoLoader.php
includes/db/Database.php
includes/db/DatabaseMysqlBase.php
includes/db/DatabaseMysqli.php [new file with mode: 0644]
includes/installer/MysqlUpdater.php