ZF-4825: Set of Zend_Session_SaveHandler_DbTableTest unit tests errors - "Undefined offset: 0"

Description

{panel} 3) testReadWrite(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

4) testReadWriteComplex(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

5) testReadWriteTwice(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

6) testReadWriteTwiceAndExpire(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343

7) testReadWriteThreeTimesAndGc(Zend_Session_SaveHandler_DbTableTest) Undefined offset: 0 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:524 /home/cawa/ZendFramework/svn/framework/trunk/library/Zend/Session/SaveHandler/DbTable.php:343 {panel}

Comments

Add

$this->_setupPrimaryKey();

in Function "_getPrimary" to solve this problem.

This error are present, because matthew has implement lazy-loading uf table metadata (ZF-2510)

Fixed.

Changing issues in preparation for the 1.7.0 release.