2
0
Просмотр исходного кода

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 лет назад
Родитель
Сommit
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.COLUMN_NAME = k.COLUMN_NAME)
                 WHERE "
-                 . $this->quoteInto('UPPER(C.TABLE_NAME) = ?', strtoupper($tableName));
+                . $this->quoteInto('UPPER(C.TABLE_NAME) = UPPER(?)', $tableName);
 
             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";