[Dbix-class] Possible problem in DBIx::Class::Manual::Example

John Napiorkowski jjn1056 at yahoo.com
Mon Jun 18 17:11:54 GMT 2007


--- Matt S Trout <dbix-class at trout.me.uk> wrote:

> On Mon, Jun 18, 2007 at 09:35:08AM -0500, Robert
> Boone wrote:
> > On 6/18/07, Matt S Trout <dbix-class at trout.me.uk>
> wrote:
> > >On Sun, Jun 17, 2007 at 11:50:38PM -0500, Robert
> Boone wrote:
> > >> I was just following the tutorial but testdb.pl
> was dieing with:
> > >>    Can't call method "name" on an undefined
> value at testdb.pl line 107.
> > >>
> > >> I looked in the database and saw this:
> > >>
> > >> sqlite> select * from track;
> > >> 1|MyDatabase::Main::Cd=HASH(0x87a7f70)|The Way
> I Am
> > >> 2|MyDatabase::Main::Cd=HASH(0x874d888)|Stan
> > >> 3|MyDatabase::Main::Cd=HASH(0x87a7f88)|Billie
> Jean
> > >> 4|MyDatabase::Main::Cd=HASH(0x87a7cf4)|Leave Me
> Alone
> > >> 5|MyDatabase::Main::Cd=HASH(0x874d948)|Smooth
> Criminal
> > >> 6|MyDatabase::Main::Cd=HASH(0x87a7b2c)|Beat It
> > >> 7|MyDatabase::Main::Cd=HASH(0x86e6dd8)|Dirty
> Diana
> > >>
> > >>
> > >> Should the ResultSet stringifying to the
> primary key or will something
> > >> like this patch be applied?
> > >
> > >Neither. DBIC handles deflating related objects
> automatically; could you
> > >tell us what version you've got? (perl
> -MDBIx::Class\ 999)
> >
> > (top-posting fixed, please don't do that)
> >
> > DBIx-Class-0.08001
> > perl 5.8.8
> 
> Ok, looks like the insert_bulk implementation of
> populate introduced a bug.
> 
> John, could you take a look please?

Looking at it now --john

> 
> -- 
>       Matt S Trout       Need help with your
> Catalyst or DBIx::Class project?
>    Technical Director    Want a managed development
> or deployment platform?
>  Shadowcat Systems Ltd.  Contact mst (at)
> shadowcatsystems.co.uk for a quote
> http://chainsawblues.vox.com/            
> http://www.shadowcatsystems.co.uk/ 
> 
> _______________________________________________
> 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/
> 



       
____________________________________________________________________________________
Choose the right car based on your needs.  Check out Yahoo! Autos new Car Finder tool.
http://autos.yahoo.com/carfinder/



More information about the Dbix-class mailing list