On 3 September 2012 12:32, Jeroen De Dauw <jeroended...@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

-- 
Niklas Laxström

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to