Fix breakage of SQLite ResultWrapper due to r45769. The "result" member in SQLite...
authorTim Starling <tstarling@users.mediawiki.org>
Fri, 15 May 2009 02:49:06 +0000 (02:49 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Fri, 15 May 2009 02:49:06 +0000 (02:49 +0000)
commit73776463f7dd98d0008d22c8c2b24651308f2a04
treec94269cffcc8121ce2fbd09db16a01875dc6e988
parent2aee9e3b16a1e416a194d6d4aba3c8940776dc6b
Fix breakage of SQLite ResultWrapper due to r45769. The "result" member in SQLite is actually an array and so passing by value to DatabaseSqlite::fetchObject() makes it fail to iterate. We can't really pass it by reference since that's an E_STRICT error due to a parameter type mismatch with Database. Pass the ResultWrapper instead.

This means that nothing at all should be passing bare result objects/arrays to Database*::fetchObject() anymore. The "instanceof ResultWrapper" logic can be removed in a subsequent commit. It can stay in this one for now for safer backport to 1.15.
includes/db/Database.php