Browse Source

Merge pull request #399 from kbanman/develop

Fix raw table expressions
Taylor Otwell 12 years ago
parent
commit
d862a5181a
1 changed files with 5 additions and 0 deletions
  1. 5 0
      laravel/database/grammar.php

+ 5 - 0
laravel/database/grammar.php

@@ -35,6 +35,11 @@ abstract class Grammar {
 	 */
 	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