From 7fed9cf0339b795a45fb8a54bf2999a93f36f521 Mon Sep 17 00:00:00 2001 From: thinkphp Date: Thu, 12 Apr 2018 16:33:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/builder/Sqlsrv.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/think/db/builder/Sqlsrv.php b/library/think/db/builder/Sqlsrv.php index ed961491..b97886ac 100644 --- a/library/think/db/builder/Sqlsrv.php +++ b/library/think/db/builder/Sqlsrv.php @@ -56,9 +56,8 @@ class Sqlsrv extends Builder $array[] = $this->parseKey($key, $options, true) . ' ' . $sort; } } - $order = implode(',', $array); - return ' ORDER BY ' . $order; + return ' ORDER BY ' . implode(',', $array); } /**