I have a MySql table whose main key is the 64-bit BigInt
I use Zend_Db (Zend Framework 1.8.4) to insert a new row and then call lastInsertId () to restore the new row identifier, what I get is a super large number such as 18446744072633694008 and this number changes time from time, but it’s always big. the auto increment index is set to 0, and in the database, the record is actually inserted with the correct primary identifier (0, 1, 2 ...), it's just that returning id from lastInsertId () gives a strange number. Is this a known issue for Zend_db that does not deal with a 64-bit number?
environment: Zend Framework 1.8.4 Apache2 on a 32-bit box, Ubuntu OS MySQL5.1 PHP5.2.4 MySQL adapter: mysqli
thanks
Beier source
share