From 97ee6c045ba6af6173d40d4fd1f71e0c40cb26b4 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Fri, 24 Feb 2017 13:13:18 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9BQuery=E7=B1=BB=E7=9A=84view?= =?UTF-8?q?=E6=96=B9=E6=B3=95=E4=B8=AD=E5=AD=97=E6=AE=B5=E7=9A=84=E5=85=B3?= =?UTF-8?q?=E9=94=AE=E5=AD=97=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/Query.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/library/think/db/Query.php b/library/think/db/Query.php index 9089e6ca..1032944f 100644 --- a/library/think/db/Query.php +++ b/library/think/db/Query.php @@ -893,7 +893,7 @@ class Query } else { $name = $alias . '.' . $key; } - $fields[] = $name . ' AS ' . $val; + $fields[$name] = $val; $this->options['map'][$val] = $name; } }