mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
Query类的column方法支持传入*号
This commit is contained in:
@@ -131,7 +131,7 @@ class Query
|
|||||||
$result = Cache::get($guid);
|
$result = Cache::get($guid);
|
||||||
}
|
}
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
$key = $key ? $key . ',' : '';
|
$key = ($key && '*' != $field) ? $key . ',' : '';
|
||||||
$pdo = $this->field($key . $field)->fetchPdo(true)->select();
|
$pdo = $this->field($key . $field)->fetchPdo(true)->select();
|
||||||
if (1 == $pdo->columnCount()) {
|
if (1 == $pdo->columnCount()) {
|
||||||
$result = $pdo->fetchAll(PDO::FETCH_COLUMN);
|
$result = $pdo->fetchAll(PDO::FETCH_COLUMN);
|
||||||
|
|||||||
Reference in New Issue
Block a user