[Dbix-class] Can't get last insert id ?!

Ivan.Georgiev at uboc.com Ivan.Georgiev at uboc.com
Thu Nov 9 23:44:56 GMT 2006


here is the code :
$schema->resultset('tableX')->create(\%record);


here is dump of the %record :
$VAR1 = {
          'field6' => '1',
          'field5' => 'PP  ',
          'field1' => '00000000000011716438',
          'field2' => 0,
          'field3' => '0000001',
          'field4' => '102737              '
        };

and here is what i see when run the script like this :
# DBIC_TRACE=1 ./loader.pl


INSERT INTO tableX (field1, field2, field3, field4, field5, field6) VALUES
(?, ?, ?, ?, ?, ?): '00000000000011716438', '0', '0000001', '102737
', 'PP  ', '1'
DBIx::Class::ResultSet::create(): Can't get last insert id at
/path/to/Loader.pm line 114

What the simple create() / i.e. INSERT/ has to do with the last inserted id
?!?
Could u point me where to search for the error...
Mysql.

tia


******************************************************************************
This communication (including any attachments) may contain privileged or
confidential information intended for a specific individual and purpose, 
and is protected by law.  If you are not the intended recipient, you should
delete this communication and/or shred the materials and any attachments and
are hereby notified that any disclosure, copying, or distribution of this
communication, or the taking of any action based on it, is strictly prohibited.

Thank you.




More information about the Dbix-class mailing list