瀏覽代碼

Define NULL in test seed using Zend_Db_Expr, so it won't get quoted

(cherry picked from commit 5f0dc97504f83e00f2e066f32a570ed69f6f21e3)
Ondřej Machulda 12 年之前
父節點
當前提交
47146caebc
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/Zend/Db/TestUtil/Common.php

+ 2 - 2
tests/Zend/Db/TestUtil/Common.php

@@ -421,12 +421,12 @@ abstract class Zend_Db_TestUtil_Common
     protected function _getDataCascadeRecursive()
     {
         return array(
-            array('item_id' => '1', 'item_parent' => NULL, 'item_data' => '1'),
+            array('item_id' => '1', 'item_parent' => new Zend_Db_Expr('NULL'), 'item_data' => '1'),
             array('item_id' => '2', 'item_parent' => '1', 'item_data' => '1.2'),
             array('item_id' => '3', 'item_parent' => '1', 'item_data' => '1.3'),
             array('item_id' => '4', 'item_parent' => '3', 'item_data' => '1.3.4'),
             array('item_id' => '5', 'item_parent' => '3', 'item_data' => '1.3.5'),
-            array('item_id' => '6', 'item_parent' => NULL, 'item_data' => '6')
+            array('item_id' => '6', 'item_parent' => new Zend_Db_Expr('NULL'), 'item_data' => '6')
         );
     }