Last modified: 2012-12-30 20:41:39 UTC
DatabaseBase::delete and DatabaseBase::update should always return a boolean, this is what the docs state and what appears to be happening when using MySQL. However, when using sqlite to run some of my tests (that run fine with MySQL), I'm getting some failures because I'm getting back a ResultWrapper object. See failing test here: https://integration.mediawiki.org/ci/job/MediaWiki-Tests-Misc/1446/console
Installed sqlite and could reproduce locally. Did some debugging, and found that the DB abstraction layer is riddled with inconsistencies in return types. Just have a look at DatabaseBase::doQuery and it's implementations in DatabaseMysql and DatabaseSqlite.