[Dbix-class] DBIx::Class::ResultSet::RecursiveUpdate - announcement and RFC

Matt S Trout dbix-class at trout.me.uk
Sun Sep 28 14:20:35 BST 2008


On Sat, Sep 27, 2008 at 07:52:35PM +0200, Zbigniew Lukasiak wrote:
> Hi Matt,
> 
> On Sat, Sep 27, 2008 at 6:50 PM, Matt S Trout <dbix-class at trout.me.uk> wrote:
> > On Tue, Sep 23, 2008 at 01:35:03PM +0200, Zbigniew Lukasiak wrote:
> >> Unlike the original update_or_create - recursive_update works for
> >> tables with auto_increment primary keys
> >
> > Please stop referring to "doesn't accept undef for auto-inc like MySQL does"
> > as broken.
> 
> I understand your sensitivity - I only wanted to express the fact that
> you cannot use update_or_create with tables with auto_increment
> primary keys.

I do so fine. I just don't pass the PK if I don't have one.

Just because your code is buggy and passes undef doesn't mean it doesn't work
if you do it properly.

-- 
      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