ソースを参照

ZF-4099
- ensured that no trailing whitespace follows the sort order in replacement

git-svn-id: http://framework.zend.com/svn/framework/standard/trunk@17728 44c647ce-9c0f-0410-b52a-842ac1e357ba

ralph 16 年 前
コミット
998b0868cf
1 ファイル変更1 行追加0 行削除
  1. 1 0
      library/Zend/Db/Adapter/Pdo/Mssql.php

+ 1 - 0
library/Zend/Db/Adapter/Pdo/Mssql.php

@@ -330,6 +330,7 @@ class Zend_Db_Adapter_Pdo_Mssql extends Zend_Db_Adapter_Pdo_Abstract
 	            $pregReplaceCount = null;
 	            $orderbyInverseParts = array();
 	            foreach ($orderParts as $orderPart) {
+	            	$orderPart = rtrim($orderPart);
 	                $inv = preg_replace('/\s+desc$/i', ' ASC', $orderPart, 1, $pregReplaceCount);
 	                if ($pregReplaceCount) {
 	                    $orderbyInverseParts[] = $inv;