[Catalyst] Can't get last insert id

JT Justman jt at signless.com
Sat Jul 22 19:25:26 CEST 2006


Ben Hopkins wrote:
> I'm running through the tutorial, in Basic CRUD.  In the url_create 
> routine, I went to add a book and got this error message:
> |
> Caught exception in MyApp::Controller::Books->url_create 
> "DBIx::Class::ResultSet::create(): Can't get last insert id at 
> /home/ben/apps/MyApp/script/../lib/MyApp/Controller/Books.pm line 92"|
> 
> 
> 
> I've got Catallyst version 5.7001.  mysql version 4.1.20.
> 
> Any ideas?

Is your 'id' column set to autoincrement? What does 'describe books' in 
mysql say?

JT



More information about the Catalyst mailing list