Browse Source

Provide table and PK name to make test compatible with RDBMS using sequences

(cherry picked from commit d452916a43f80a94edfa16da6178e3e1ba79e677)
Ondřej Machulda 12 năm trước cách đây
mục cha
commit
4f7338efd2
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      tests/Zend/Db/Table/TestCommon.php

+ 1 - 1
tests/Zend/Db/Table/TestCommon.php

@@ -693,7 +693,7 @@ abstract class Zend_Db_Table_TestCommon extends Zend_Db_Table_TestSetup
             'verified_by'     => 'dduck'
         );
         $insertResult = $table->insert($row);
-        $lastInsertId = $this->_db->lastInsertId();
+        $lastInsertId = $this->_db->lastInsertId('zfbugs', 'bug_id');
         $this->assertEquals($insertResult, $lastInsertId);
         $this->assertEquals(5, $lastInsertId);
     }