فهرست منبع

ZF-1343
- commited test case as proof that this is a non-issue

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

ralph 16 سال پیش
والد
کامیت
ace5b47d5f
1فایلهای تغییر یافته به همراه11 افزوده شده و 0 حذف شده
  1. 11 0
      tests/Zend/Db/Table/TestCommon.php

+ 11 - 0
tests/Zend/Db/Table/TestCommon.php

@@ -1481,6 +1481,17 @@ abstract class Zend_Db_Table_TestCommon extends Zend_Db_Table_TestSetup
         $table = $this->_table['products'];
         $this->assertType('string', serialize($table));
     }
+    
+    /**
+     * @group ZF-1343
+     */
+    public function testTableFetchallCanHandleWhereWithParameritizationCharacters()
+    {
+        $table = $this->_table['products'];
+        $where = $table->getAdapter()->quoteInto('product_name = ?', "some?product's");
+        $rows = $table->fetchAll($where);
+        $this->assertEquals(0, count($rows));
+    }
 
     /**
      * Returns a clean Zend_Cache_Core with File backend