Merge pull request #892 from jasonlewis/bug/database/select
Fixes #818, allows Query select to just be an Expression.
This commit is contained in:
@@ -140,7 +140,7 @@ class Query {
|
|||||||
*/
|
*/
|
||||||
public function select($columns = array('*'))
|
public function select($columns = array('*'))
|
||||||
{
|
{
|
||||||
$this->selects = (array) $columns;
|
$this->selects = is_array($columns) ? $columns : array($columns);
|
||||||
return $this;
|
return $this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user