Merge pull request #892 from jasonlewis/bug/database/select

Fixes #818, allows Query select to just be an Expression.
This commit is contained in:
Taylor Otwell 2012-07-06 17:14:20 -07:00
commit 90447e7183
1 changed files with 1 additions and 1 deletions

View File

@ -140,7 +140,7 @@ public function distinct()
*/
public function select($columns = array('*'))
{
$this->selects = (array) $columns;
$this->selects = is_array($columns) ? $columns : array($columns);
return $this;
}