more database simplifications

This commit is contained in:
Taylor Otwell
2011-09-12 23:33:42 -05:00
parent 59a7e47f82
commit 9d56d4aa4e
2 changed files with 10 additions and 132 deletions

View File

@@ -140,14 +140,7 @@ class Connection {
*/
public function table($table)
{
switch ($this->driver())
{
case 'pgsql':
return new Queries\Postgres($this, $this->grammar(), $table);
default:
return new Queries\Query($this, $this->grammar(), $table);
}
return new Query($this, $this->grammer(), $table);
}
/**