[Solar-talk] lastInsertId() not working with MySql?
Rodrigo Moraes
rodrigo.moraes at gmail.com
Thu Mar 29 12:32:14 PDT 2007
I remembered to investigate this today and discovered that it was my fault...
I forgot that I have a Tipos_Sql_Adapter_Mysql class just to set the
connection charset, and it was not updated to check if $this->_pdo is
already set on _connect()... So it was connecting again, and the last
inserted id was always 0.
sorry. :P
rodrigo
More information about the solar-talk
mailing list