UnionOfRAD/lithium — pull request #197 by L-P (2011-11-25 11:29:11+00:00)
Title: Support for MySQL SET statements.

Hi,

I'm developing an app where I need to run complex custom queries and I
came across a bug : using SET makes lithium crash because it tries to
use the result as a resource.

Maybe read() is not the appropriate method for this but I don't see an
other way to execute a raw query.

This fixes Database and adds a simple test case that makes the whole app crash with this error:

Fatal error: Call to a member function resource() on a non-object in lithium/data/source/database/adapter/MySql.php on line 273