mirror of
https://gitee.com/fastadminnet/framework.git
synced 2026-07-07 15:12:48 +08:00
改进Query类的column方法
This commit is contained in:
@@ -451,7 +451,9 @@ class Query
|
|||||||
if (isset($this->options['field'])) {
|
if (isset($this->options['field'])) {
|
||||||
unset($this->options['field']);
|
unset($this->options['field']);
|
||||||
}
|
}
|
||||||
if ($key && '*' != $field) {
|
if (is_null($field)) {
|
||||||
|
$field = '*';
|
||||||
|
} elseif ($key && '*' != $field) {
|
||||||
$field = $key . ',' . $field;
|
$field = $key . ',' . $field;
|
||||||
}
|
}
|
||||||
$pdo = $this->field($field)->getPdo();
|
$pdo = $this->field($field)->getPdo();
|
||||||
|
|||||||
Reference in New Issue
Block a user