Skip to content

Commit

Permalink
修正
Browse files Browse the repository at this point in the history
  • Loading branch information
liu21st committed Feb 11, 2023
1 parent dc9b4e7 commit fae96ca
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/db/PDOConnection.php
Original file line number Diff line number Diff line change
Expand Up @@ -1192,8 +1192,10 @@ public function column(BaseQuery $query, $column, string $key = ''): array
if ('*' !== $column) {
$column = array_map('trim', explode(',', $column));
}
} elseif (is_array($column) && in_array('*', $column)) {
$column = '*';
} elseif (is_array($column)) {
if (in_array('*', $column)) {
$column = '*';
}
} else {
throw new DbException('not support type');
}
Expand Down

0 comments on commit fae96ca

Please sign in to comment.