Thanks Len. I noticed that too, but I assumed that since the first iteration through the loop was successful, this must be how the data is represented internally in the DBIx modules and I discounted it as a problem. $new_role is definitely a scalar when I assign it to the hash ref and pass it to create_related.
-Tim On Tue, Jun 19, 2012 at 1:32 PM, Len Jaffe <[email protected]>wrote: > > > On Tue, Jun 19, 2012 at 1:22 PM, Tim Anderson <[email protected]> wrote: > >> DBIx::Class::Storage::DBI::_dbh_execute('DBIx::Class::Storage::DBI::Sybase::Microsoft_SQL_Server::Free...', >> 'DBI::db=HASH(0x51679a0)', 'INSERT INTO PORTAL_USER_ROLE ( client_id, >> role_id, user_id) V...', 'ARRAY(0x4fa0490)', 'ARRAY(0x533ea30)') called at >> /usr/local/share/perl5/DBIx/Class/Storage/DBI.pm line 789 > > > the 'ARRAY(0x4fa0490)', 'ARRAY(0x533ea30)' towards the end of the > quoted text tells me that DBI is not getting values from create_related, > but rather it is getting arrays. > > Len. > > -- > [email protected] 614-404-4214 www.volunteerable.net > Proprietor: http://www.theycomewithcheese.com/ - An Homage to Fromage > Greenbar <http://www.greenbartraining.org/>: Grubmaster: 2012-2009, Grub > Asst: 2008, Trained: 2007. > > > > _______________________________________________ > List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class > IRC: irc.perl.org#dbix-class > SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ > Searchable Archive: > http://www.grokbase.com/group/[email protected] >
_______________________________________________ List: http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/dbix-class IRC: irc.perl.org#dbix-class SVN: http://dev.catalyst.perl.org/repos/bast/DBIx-Class/ Searchable Archive: http://www.grokbase.com/group/[email protected]
