From a322533596e6b4f786813c186589a2e52323bdfd Mon Sep 17 00:00:00 2001 From: thinkphp Date: Wed, 31 Aug 2016 15:24:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=A0=E9=99=A4sqlsrv=E9=A9=B1=E5=8A=A8?= =?UTF-8?q?=E7=9A=84parseOrder=E6=96=B9=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- library/think/db/builder/Sqlsrv.php | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/library/think/db/builder/Sqlsrv.php b/library/think/db/builder/Sqlsrv.php index f54bd139..f17a21ee 100644 --- a/library/think/db/builder/Sqlsrv.php +++ b/library/think/db/builder/Sqlsrv.php @@ -23,17 +23,6 @@ class Sqlsrv extends Builder protected $updateSql = 'UPDATE %TABLE% SET %SET% FROM %TABLE% %JOIN% %WHERE% %LIMIT% %LOCK%%COMMENT%'; protected $deleteSql = 'DELETE FROM %TABLE% %USING% %JOIN% %WHERE% %LIMIT% %LOCK%%COMMENT%'; - /** - * order分析 - * @access protected - * @param mixed $order - * @return string - */ - protected function parseOrder($order) - { - return !empty($order) ? ' ORDER BY ' . $order : ' ORDER BY rand()'; - } - /** * 随机排序 * @access protected