Move some stuff from DatabaseBase to DatabaseMysql
authorAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 15 Jun 2009 18:39:41 +0000 (18:39 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Mon, 15 Jun 2009 18:39:41 +0000 (18:39 +0000)
commit31492fc3f1da06d04f128971288e8a7c595d00c3
tree8ce4c7035504ee305473a89bdf04d753f76a6df6
parent0df1c0bdbd2b62e76a9187d30257d3990ce9e01c
Move some stuff from DatabaseBase to DatabaseMysql

I moved a number of methods and marked them abstract in DatabaseBase,
namely those that met the following criteria:

1) Used some mysql_* function, so would obviously fail on any other DB.
2) Were already implemented by all five non-MySQL subclasses.

It would be reasonable to revisit these and make the less essential ones
return a dummy value instead of being abstract.  And document them.  And
move more methods that are MySQL-specific.  But one thing at a time.

I also split the classes Database, DatabaseMysql, and MySQLMasterPos to
DatabaseMysql.php.

This should theoretically have no practical changes, but it's a bunch of
changed code, so it will possibly break something by accident.

Followup to r51795.
includes/AutoLoader.php
includes/db/Database.php
includes/db/DatabaseMysql.php [new file with mode: 0644]