[Catalyst] DBIx Class Transactions in catalyst

Brandon Black blblack at gmail.com
Sun Sep 3 18:50:57 CEST 2006

On 9/2/06, Charles <cshtreck at yahoo.com> wrote:
> Is there something obvious that I'm missing ?

Yes.  In order to generate the subref, you have to use the "sub" keyword.
Change this line in your example:

 my $coderef 

my $coderef 
Seperately, if that example is what you're actually doing, it sounds like
you're trying to use this to emulate autoincrementing primary keys.  I'm
pretty sure most dbms's support such keys natively, without you having to
use this select max hack.

-- Brandon
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rawmode.org/pipermail/catalyst/attachments/20060903/96b0a063/attachment.htm 

More information about the Catalyst mailing list