Browse Source

Fix bug in connection with custom grammars.

Taylor Otwell 12 years ago
parent
commit
5fd1ea527f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      laravel/database/connection.php

+ 1 - 1
laravel/database/connection.php

@@ -75,7 +75,7 @@ class Connection {
 
 
 		if (isset(\Laravel\Database::$registrar[$this->driver()]))
 		if (isset(\Laravel\Database::$registrar[$this->driver()]))
 		{
 		{
-			\Laravel\Database::$registrar[$this->driver()]['query']();
+			return $this->grammar = \Laravel\Database::$registrar[$this->driver()]['query']();
 		}
 		}
 
 
 		switch ($this->driver())
 		switch ($this->driver())