Prepare DatabaseMysql for mysqli
authorJakub Vrana <jakub@vrana.cz>
Fri, 3 May 2013 01:39:16 +0000 (18:39 -0700)
committerTyler Anthony Romeo <tylerromeo@gmail.com>
Wed, 12 Jun 2013 23:44:24 +0000 (23:44 +0000)
commitb1cc3511fd7aadcf4dc2d7c0687565b0642f2f81
tree361b3cc307e916cf74305f00429070cf39102474
parent5b52750e7b832a3ae320c49a834a3658d26d81e2
Prepare DatabaseMysql for mysqli

PHP extensions mysql and mysqli have lots in common.
In order to support mysqli, this diff separates common MySQL behavior to abstract class DatabaseMysqlBase and implements the mysql-extension specific in DatabaseMysql.
Outside behavior remains the same.

I've tried to minimize future code duplication by introducing mysql*() methods even if the parent method just unwraps the result.

Bug: 45288
Change-Id: I905d4a4550377bc849a860f0962dad710d9dc71f
includes/AutoLoader.php
includes/db/DatabaseMysql.php
includes/db/DatabaseMysqlBase.php [new file with mode: 0644]