Commit 90447e71 authored by Taylor Otwell's avatar Taylor Otwell

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

Fixes #818, allows Query select to just be an Expression.
parents 06154abe 52f76b9d
......@@ -140,7 +140,7 @@ class Query {
*/
public function select($columns = array('*'))
{
$this->selects = (array) $columns;
$this->selects = is_array($columns) ? $columns : array($columns);
return $this;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment