* Db.php:
(BSDb::query): SELECT, DESCRIBE, and EXPLAIN queries all need a Result object
+3.1.2
+===================
+- Fixed: BSDb::query() would not generate a Result object for explain, show, and describe queries
+
3.1.1
===================
- Fixed: BSMail::send() would fail if sending a HTML/multipart email because it would call BSFunctions::Rand()
}
}
- if (strtoupper(substr(trim($string), 0, 6)) == 'SELECT')
+ if (preg_match('/^\s*(select|describe|show|explain)/i', $string))
{
$class = get_class($this) . 'Result';
return new $class($this->result);