John Napiorkowski wrote: > --- "Christopher H. Laco" <[EMAIL PROTECTED]> wrote: > >> Christopher H. Laco wrote: >>> Christopher H. Laco wrote: >>>> Matt S Trout wrote: >> http://trout.me.uk/perl/DBIx-Class-0.08003.tar.gz >>>>> Quite a few substantial tweaks to fix bugs in >> this one, so I'd ask those >>>>> of you with decent sized projects with their own >> test suites to grab it >>>>> and give it a quick run down before I ship it to >> CPAN. We've definitely >>>>> fixed a number of irritating bugs but I'm a >> trifle worried we might have >>>>> introduced new ones hence the delay shipping. >>>>> >>>> 5x5 for Handel/Mango. >>>> >>>> -=Chris >>> Actually, that's a lie. I'm getting a bunch of >> "Undefined value for >>> column!" errors during a deploy...but I assume >> that's just something >>> stupid I'm doing in Mango. The Handel tests didn't >> gripe. >>> -=Chris >>> >> Nope. Not me. >> >> Here's my schema: >> >>> user_id => { >>> data_type => 'INT', >>> is_nullable => 1, >>> is_foreign_key => 1, >>> extras => {unsigned => 1} >>> }, >> Here's the call to populate that fails: >> >>> $schema->populate('Carts', [ >>> [ qw/id user_id created updated/ ], >>> [1,1,$date,$date], >>> [2,undef,$date,$date], >>> ]); >> Fails with the error: Undefined value for column! >> >> So, how do I populate with undef/Null again? >> Of course, it used to work. >> >> -=Chris > > This might be me, I made changes to $schema->populate > to properly support multi create. Can you run your > test in 'returns array' mode and let me know if that > works? I think it's trouble with my void context > support for this. I'll also check into it. > > --john
Yup, works with: > my @foo = $schema->populate('Carts', [ > [ qw/id user_id created updated/ ], > [1,1,$date,$date], > [2,undef,$date,$date], > ]); ..which I never do because, I don't really want anything back during an 'init_schema/populate'...moatly in testing. -=Chris
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: http://lists.rawmode.org/cgi-bin/mailman/listinfo/dbix-class Wiki: http://dbix-class.shadowcatsystems.co.uk/ IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/trunk/DBIx-Class/ Searchable Archive: http://www.mail-archive.com/dbix-class@lists.rawmode.org/