diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 5b2067c1..e956b4f8 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -131,7 +131,7 @@ class Query $result = Cache::get($guid); } if (!$result) { - $key = $key ? $key . ',' : ''; + $key = ($key && '*' != $field) ? $key . ',' : ''; $pdo = $this->field($key . $field)->fetchPdo(true)->select(); if (1 == $pdo->columnCount()) { $result = $pdo->fetchAll(PDO::FETCH_COLUMN);