On 3 September 2012 12:32, Jeroen De Dauw jeroendedauw@gmail.com wrote:
Hey,
For some reason DatabseBase::select is returning false sometimes when it encounters a database error rather then throwing an error as you'd expect since it's documented to always return a ResultWrapper. I ran into this issue several times as getting the rather obscure error "expected ResultWrapper, got boolean" in random places using this result. Calling lastError on the DatabaseBase object clearly shows there in fact was an SQL error.
So what was the error? It is not unusual that SQL errors turn up in unexpected places, see for example https://bugzilla.wikimedia.org/39287 -Niklas