改进Query类的view方法中字段的关键字问题

This commit is contained in:
thinkphp
2017-02-24 13:13:18 +08:00
parent 55b671f3cb
commit 97ee6c045b

View File

@@ -893,7 +893,7 @@ class Query
} else {
$name = $alias . '.' . $key;
}
$fields[] = $name . ' AS ' . $val;
$fields[$name] = $val;
$this->options['map'][$val] = $name;
}
}