mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-01 20:52:48 +08:00
Query类的column方法支持传入*号
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user