From c5a826bcc181364893e727d6a6023038142ad3cb Mon Sep 17 00:00:00 2001 From: thinkphp Date: Tue, 5 Sep 2017 16:46:10 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9Bsqlsrv=E9=A9=B1=E5=8A=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/builder/Sqlsrv.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/library/think/db/builder/Sqlsrv.php b/library/think/db/builder/Sqlsrv.php index 75378452..59ea021f 100644 --- a/library/think/db/builder/Sqlsrv.php +++ b/library/think/db/builder/Sqlsrv.php @@ -42,6 +42,8 @@ class Sqlsrv extends Builder $array[] = $this->parseKey($val, $options); } elseif ('[rand]' == $val) { $array[] = $this->parseRand(); + } else { + $array[] = $val; } } else { $sort = in_array(strtolower(trim($val)), ['asc', 'desc']) ? ' ' . $val : '';