database: Simplify selectSQLText() and fix USE INDEX bug
authorAaron Schulz <aschulz@wikimedia.org>
Thu, 16 May 2013 20:04:53 +0000 (13:04 -0700)
committerKrinkle <krinklemail@gmail.com>
Fri, 21 Jun 2013 05:31:50 +0000 (05:31 +0000)
commit0b3daef807c1d6673930c5b6f05494bada86bb72
tree4d13664fe8ab02bbbf8427bc24183dc5a920f854
parente5d2bff74b9bc280cee2355a4b9a4c566fa70dc9
database: Simplify selectSQLText() and fix USE INDEX bug

* Previously, using a USE INDEX array with one table string resulted
  in the FORCE INDEX statement not appearing in the SQL.
* Renamed two variables in tableNamesWithUseIndexOrJOIN().

Change-Id: Id084db7df3b07d125ea73faca7e4506a58be5f35
includes/db/Database.php