瀏覽代碼

ZF-8557
- Reverted misplaced upper() functionality in describeTable. This will be fixed in a later commit.

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

ralph 15 年之前
父節點
當前提交
ef32364ea4
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      library/Zend/Db/Adapter/Db2.php

+ 2 - 2
library/Zend/Db/Adapter/Db2.php

@@ -419,10 +419,10 @@ class Zend_Db_Adapter_Db2 extends Zend_Db_Adapter_Abstract
                        AND C.TABLE_NAME = k.TABLE_NAME
                        AND C.TABLE_NAME = k.TABLE_NAME
                        AND C.COLUMN_NAME = k.COLUMN_NAME)
                        AND C.COLUMN_NAME = k.COLUMN_NAME)
                 WHERE "
                 WHERE "
-                 . $this->quoteInto('UPPER(C.TABLE_NAME) = ?', strtoupper($tableName));
+                . $this->quoteInto('UPPER(C.TABLE_NAME) = UPPER(?)', $tableName);
 
 
             if ($schemaName) {
             if ($schemaName) {
-                $sql .= $this->quoteInto(' AND UPPER(C.TABLE_SCHEMA) = ?', strtoupper($schemaName));
+                $sql .= $this->quoteInto(' AND UPPER(C.TABLE_SCHEMA) = UPPER(?)', $schemaName);
             }
             }
 
 
             $sql .= " ORDER BY C.ORDINAL_POSITION FOR FETCH ONLY";
             $sql .= " ORDER BY C.ORDINAL_POSITION FOR FETCH ONLY";