From 17f7389bc5c193b2893d7331b9c571ad23a5e24d Mon Sep 17 00:00:00 2001 From: Kelly Banman Date: Fri, 9 Mar 2012 08:48:20 -0800 Subject: [PATCH] Fix prefixing raw tables --- laravel/database/grammar.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/laravel/database/grammar.php b/laravel/database/grammar.php index e47fb360..b301ac30 100644 --- a/laravel/database/grammar.php +++ b/laravel/database/grammar.php @@ -35,6 +35,11 @@ public function __construct(Connection $connection) */ public function wrap_table($table) { + if ($table instanceof Expression) + { + return $this->wrap($table); + } + $prefix = ''; // Tables may be prefixed with a string. This allows developers to