From 89d8c5bb0db884073b0fcddd8ff2ad69553a9f17 Mon Sep 17 00:00:00 2001 From: Tobsn Date: Tue, 31 Jul 2012 10:04:53 +0200 Subject: [PATCH] Returning results with SHOW queries reference to #991 --- laravel/database/connection.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/laravel/database/connection.php b/laravel/database/connection.php index 189d2ca2..0849224d 100644 --- a/laravel/database/connection.php +++ b/laravel/database/connection.php @@ -185,7 +185,7 @@ public function query($sql, $bindings = array()) // 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')); }