[Dbix-class] create_related is failing on second time through loop?

Tim Anderson tja824 at gmail.com
Tue Jun 19 19:13:58 GMT 2012


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 <lenjaffe at jaffesystems.com>wrote:

>
>
> On Tue, Jun 19, 2012 at 1:22 PM, Tim Anderson <tja824 at gmail.com> wrote:
>
>> DBIx::Class::Storage::DBI::_dbh_execute('DBIx::Class::Storage::DBI::Syba=
se::Microsoft_SQL_Server::Free...',
>> 'DBI::db=3DHASH(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.
>
> --
> lenjaffe at jaffesystems.com   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/dbix-class@lists.scsys.co.uk
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.scsys.co.uk/pipermail/dbix-class/attachments/20120619/a69=
4c52b/attachment.htm


More information about the DBIx-Class mailing list