Skip Menu |
 

This queue is for tickets about the DBIx-Class CPAN distribution.

Report information
The Basics
Id: 62602
Status: rejected
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: cesheri [...] swbell.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.08124
Fixed in: (no value)



Subject: \%column Arg for Relationship attr 'proxy' Fails Compile
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 675
Download (untitled) / with headers
text/plain 675b
----------------------------------------------- BUG: \%column Arg for Relationship attr 'proxy' Fails Compile ----------------------------------------------- A \%column arg for the Relationship attr 'proxy', as below, { proxy => { team_name => 'name' } } FAILS compile with error: Uncaught exception from user code: DBIx::Class::Schema::throw_exception(): Not an ARRAY reference at /Users/chas/Library/ActivePerl- 5.10/lib/DBIx/Class/Relationship/ProxyMethods.pm line 17. \@columns arg syntaxes, as below, pass compile. { proxy => [ { team_name => 'name' } ] } { proxy => [ qw(team_id) ] } Perl Version: ActiveState 5.10.1 OS: Mac OS X 10.6.4
MIME-Version: 1.0
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Content-Type: text/plain; charset="UTF-8"
Message-ID: <rt-3.8.HEAD-2358-1288623161-1340.62602-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 922
Download (untitled) / with headers
text/plain 922b
On Mon Nov 01 00:04:54 2010, cesheri@swbell.net wrote: Show quoted text
> A \%column arg for the Relationship attr 'proxy', as below, > > { proxy => { team_name => 'name' } } > > FAILS compile with error: > > Uncaught exception from user code: > DBIx::Class::Schema::throw_exception(): Not an ARRAY reference > at /Users/chas/Library/ActivePerl- > 5.10/lib/DBIx/Class/Relationship/ProxyMethods.pm line 17.
Line 17 in the recently release 0.08124 which introduces the above syntax: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=HEAD#l17 Line 17 in the previous June release 0.08123 (which never supported named proxies in the first place): http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=v0.08123#l17 You are clearly not running what you think you are running.
MIME-Version: 1.0
X-Spam-Flag: NO
X-Yahoo-Newman-ID: 829018.75234.bm [...] omp1048.mail.sp2.yahoo.com
X-Virus-Scanned: Debian amavisd-new at bestpractical.com
Content-Type: text/plain; charset=UTF-8; format=flowed
X-RT-Original-Encoding: utf-8
X-Spam-Score: -7
Authentication-Results: hipster.bestpractical.com (amavisd-new); domainkeys=pass header.from=cesheri [...] swbell.net
Authentication-Results: hipster.bestpractical.com (amavisd-new); dkim=pass header.i= [...] swbell.net
Received: from localhost (localhost [127.0.0.1]) by hipster.bestpractical.com (Postfix) with ESMTP id E27A1240F6B for <cpan-bug+dbix-class [...] hipster.bestpractical.com>; Mon, 1 Nov 2010 11:55:14 -0400 (EDT)
Received: from hipster.bestpractical.com ([127.0.0.1]) by localhost (hipster.bestpractical.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hOqQ4-SmyfQy for <cpan-bug+dbix-class [...] hipster.bestpractical.com>; Mon, 1 Nov 2010 11:55:12 -0400 (EDT)
Received: from la.mx.develooper.com (x1.develooper.com [207.171.7.70]) by hipster.bestpractical.com (Postfix) with SMTP id DC758240E81 for <bug-dbix-class [...] rt.cpan.org>; Mon, 1 Nov 2010 11:55:11 -0400 (EDT)
Received: (qmail 14674 invoked by uid 103); 1 Nov 2010 15:55:15 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 1 Nov 2010 15:55:15 -0000
Received: from nm24.bullet.mail.sp2.yahoo.com (HELO nm24.bullet.mail.sp2.yahoo.com) (98.139.91.94) by 16.mx.develooper.com (qpsmtpd/0.80) with SMTP; Mon, 01 Nov 2010 08:55:13 -0700
Received: from [98.139.91.67] by nm24.bullet.mail.sp2.yahoo.com with NNFMP; 01 Nov 2010 15:55:10 -0000
Received: from [98.139.91.48] by tm7.bullet.mail.sp2.yahoo.com with NNFMP; 01 Nov 2010 15:55:10 -0000
Received: from [127.0.0.1] by omp1048.mail.sp2.yahoo.com with NNFMP; 01 Nov 2010 15:55:10 -0000
Received: (qmail 52355 invoked from network); 1 Nov 2010 15:55:09 -0000
Received: from [192.168.1.71] (cesheri [...] 70.251.116.159 with plain) by smtp127.sbc.mail.sp1.yahoo.com with SMTP; 01 Nov 2010 08:55:08 -0700 PDT
Delivered-To: cpan-bug+dbix-class [...] hipster.bestpractical.com
Subject: Re: [rt.cpan.org #62602] \%column Arg for Relationship attr 'proxy' Fails Compile
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=swbell.net; s=s1024; t=1288626909; bh=BP1c7g0MfkRc3k15BssjnA8dXbTk6xFPAv/9d9UD840=; h=Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=JaucTzfSgF/1J3A9aovLLvZJINn5DZwtd9EJtrxRZGjKarFwDn698p4BTLMlaK7er9JO7ItbdNbAtQtQjEZo/qItI4aQ+wXqUY531oHMXTVZHe62x5cDLoUiF01uKeCERPtpTYX2zOyMPlbMUOpk4Rg9JRBTK9hF91CzhR3+15c=
X-Spam-Check-BY: 16.mx.develooper.com
Date: Mon, 01 Nov 2010 10:55:07 -0500
X-Spam-Level:
To: bug-DBIx-Class [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From cesheri [...] swbell.net Mon Nov 1 11: 55:14 2010
X-Ymail-Osg: 90a46FIVM1kop5t.jyqem.sfEUB4eOj5ovLAm61teGP2R7V v0FOlDTpv
In-Reply-To: <rt-3.8.HEAD-2358-1288623162-5.62602-6-0 [...] rt.cpan.org>
X-Spam-Status: No, score=-7 tagged_above=-99.9 required=10 tests=[BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_HI=-5] autolearn=ham
References: <RT-Ticket-62602 [...] rt.cpan.org> <rt-3.8.HEAD-2358-1288623162-5.62602-6-0 [...] rt.cpan.org>
X-Yahoo-SMTP: NWruC76swBANsuYA8Sq7O_cB4LU2w8OVbetpcDhsRQ--
Reply-To: cesheri [...] swbell.net
Message-ID: <4CCEE2DB.8080809 [...] swbell.net>
X-Yahoo-Newman-Property: ymail-3
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; en-US; rv:1.9.2.11) Gecko/20101013 Thunderbird/3.1.5
Return-Path: <cesheri [...] swbell.net>
Domainkey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=swbell.net; h=DKIM-Signature:Received:X-Yahoo-SMTP:X-YMail-OSG:X-Yahoo-Newman-Property:Message-ID:Date:From:Reply-To:User-Agent:MIME-Version:To:Subject:References:In-Reply-To:Content-Type:Content-Transfer-Encoding; b=whV4XMzbovKa8peMhYao/3iSXRlFqqUL+WsG+yDyVVBir9lNKKm4bNlMqpDHFNS6bhvCm+Wdlb5mw6QTMNYsZKB417lOknVnvCOtLOwcDTTAi3+z0ohgEPcoWP8KUmzAwyQazQ17bnoZ4HBX6RagIvQ6/bb32vwQ15vlHjdg2U4= ;
X-RT-Mail-Extension: dbix-class
X-Original-To: cpan-bug+dbix-class [...] hipster.bestpractical.com
From: Charles Sheridan <cesheri [...] swbell.net>
RT-Message-ID: <rt-3.8.HEAD-2357-1288626920-3.62602-0-0 [...] rt.cpan.org>
Content-Length: 1887
Download (untitled) / with headers
text/plain 1.8k
Peter, You are correct, thanks. The current version in the ActiveState perl PPM has 0.08115, and I had downloaded from that PPM on Fri 29 Oct, on the premise that it would be consistent w/ the latest CPAN release. So when I viewed the CPAN documentation, I thought that it was for the code that I was using. WRONG! So I'll be more diligent about checking ActiveState PPM module versions vs. those on CPAN. By the way, I had used DBI during 2005, and haven't since then been writing perl-DBMS code. After recent research on current ORM alternatives, I decided on DBIx::Class, and am really impressed. It's a really a pleasure to see what it can do, and I expect to rely on it for a few ongoing projects. Thanks to you, Matt Trout, and all others involved w/ DBIx::Class. Regards, Charles Sheridan Dallas On 10-11-01 9:52 AM, Peter Rabbitson via RT wrote: Show quoted text
> <URL: https://rt.cpan.org/Ticket/Display.html?id=62602> > > On Mon Nov 01 00:04:54 2010, cesheri@swbell.net wrote:
>> A \%column arg for the Relationship attr 'proxy', as below, >> >> { proxy => { team_name => 'name' } } >> >> FAILS compile with error: >> >> Uncaught exception from user code: >> DBIx::Class::Schema::throw_exception(): Not an ARRAY reference >> at /Users/chas/Library/ActivePerl- >> 5.10/lib/DBIx/Class/Relationship/ProxyMethods.pm line 17.
> Line 17 in the recently release 0.08124 which introduces the above syntax: > http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=HEAD#l17 > > Line 17 in the previous June release 0.08123 (which never supported > named proxies in the first place): > http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=dbsrgits/DBIx-Class.git;a=blob;f=lib/DBIx/Class/Relationship/ProxyMethods.pm;hb=v0.08123#l17 > > You are clearly not running what you think you are running. >


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.