Commit 9fd36afd by Qiang Xue

typo fix

parent 4fa02c64
...@@ -417,7 +417,7 @@ class Query extends Component implements QueryInterface ...@@ -417,7 +417,7 @@ class Query extends Component implements QueryInterface
$columns = preg_split('/\s*,\s*/', trim($columns), -1, PREG_SPLIT_NO_EMPTY); $columns = preg_split('/\s*,\s*/', trim($columns), -1, PREG_SPLIT_NO_EMPTY);
} }
if ($this->select === null) { if ($this->select === null) {
if (in_array('*', $columns)) { if (!in_array('*', $columns)) {
array_unshift($columns, '*'); array_unshift($columns, '*');
} }
$this->select = $columns; $this->select = $columns;
......
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