[Dbix-class] oracle sequence auto-pk patch

Matt S Trout dbix-class at trout.me.uk
Thu Oct 4 19:26:15 GMT 2007


On Thu, Oct 04, 2007 at 05:06:56PM +0200, Hartmaier Alexander wrote:
> Hi!
> 
> That is possible now too, you only have to specify the sequence name in your table class:
> 
> __PACKAGE__->add_columns(
>     id_table   => {
>         sequence            => __PACKAGE__->schemaname . '.seq_for_this_table',
>         is_auto_increment   => 1,
>     },
> );
> 
> Works for me flawless since dbic 0.05 or so...

plu's patch has DBIC do the sequence fetch instead of the DB doing it via
a trigger.

Different thing.

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director                    http://www.shadowcat.co.uk/catalyst/
 Shadowcat Systems Ltd.  Want a managed development or deployment platform?
http://chainsawblues.vox.com/            http://www.shadowcat.co.uk/servers/



More information about the DBIx-Class mailing list