Commit 89d8c5bb authored by Tobsn's avatar Tobsn

Returning results with SHOW queries

reference to #991
parent c9710525
......@@ -185,7 +185,7 @@ class Connection {
// The result we return depends on the type of query executed against the
// database. On SELECT clauses, we will return the result set, for update
// and deletes we will return the affected row count.
if (stripos($sql, 'select') === 0)
if (stripos($sql, 'select') === 0 || stripos($sql, 'show') === 0)
{
return $this->fetch($statement, Config::get('database.fetch'));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment