MySQL method to find out view + fix fatal in tests
authorAlephNull <drenfro@vistaprint.com>
Fri, 24 May 2013 15:14:40 +0000 (11:14 -0400)
committerHashar <hashar@free.fr>
Thu, 7 Nov 2013 09:43:59 +0000 (09:43 +0000)
commite9d53667f43230e84302d0a6653ea7e78a7841ce
treeca238634bdf896e596fe24f05742c4f6a87786bd
parent09bbc13a7f3df64d62c5e431a894b9fe082b8b2a
MySQL method to find out view + fix fatal in tests

We were missing a method to list out views defined in a database. This
patch adds in MysqlBase::isView() and MysqlBse::listViews().

Since listViews() cache its result in DatabaseBase::$allViews, we also
introduce a final DatabaseBase::clearViewsCache() to let us clear the
per process cache.

Finally, fixed fatal error when duplicating VIEWs in MySQL.

bug: 43571
Change-Id: I8650baa4b721fe69ea3e1d557dd76745c0c7754e
CREDITS
RELEASE-NOTES-1.22
includes/db/Database.php
includes/db/DatabaseMysqlBase.php
tests/phpunit/MediaWikiTestCase.php
tests/phpunit/includes/db/DatabaseMysqlBaseTest.php