Browse Source

typo fix

tags/2.0.0-rc
Qiang Xue 10 years ago
parent
commit
9fd36afd5a
  1. 2
      framework/db/Query.php

2
framework/db/Query.php

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

Loading…
Cancel
Save