fixed database bugs.

This commit is contained in:
Taylor Otwell
2011-09-13 23:47:38 -05:00
parent 15449c34b1
commit 8688270f22
4 changed files with 23 additions and 53 deletions

View File

@@ -105,7 +105,7 @@ class Connection {
*/
public function table($table)
{
return new Query($this, $this->grammer(), $table);
return new Query($this, $this->grammar(), $table);
}
/**
@@ -118,13 +118,13 @@ class Connection {
switch ($this->driver())
{
case 'mysql':
return new Queries\Grammars\MySQL;
return new Grammars\MySQL;
case 'pgsql':
return new Queries\Grammars\Postgres;
return new Grammars\Postgres;
default:
return new Queries\Grammars\Grammar;
return new Grammars\Grammar;
}
}