Skip Menu |
 

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

Report information
The Basics
Id: 42487
Status: resolved
Priority: 0/
Queue: DBIx-Class

People
Owner: Nobody in particular
Requestors: Dave [...] WolfeWorks.net
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: 0.08099_05



MIME-Version: 1.0
X-Spam-Status: No, hits=0.0 required=8.0 tests=
Content-Disposition: inline
content-type: text/plain; charset="utf-8"
Message-ID: <20090118034012.GA31702 [...] wolfeworks.net>
Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id 8526C4D8015 for <bug-DBIx-Class [...] rt.cpan.org>; Sat, 17 Jan 2009 22:40:54 -0500 (EST)
Received: (qmail 28980 invoked by uid 103); 18 Jan 2009 03:40:53 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 18 Jan 2009 03:40:53 -0000
Received: from hrndva-omtalb.mail.rr.com (HELO hrndva-omtalb.mail.rr.com) (71.74.56.125) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Sat, 17 Jan 2009 19:40:47 -0800
Received: from www.wolfeworks.net ([70.112.53.158]) by hrndva-omta02.mail.rr.com with ESMTP id <20090118034013.YSRL4821.hrndva-omta02.mail.rr.com [...] www.wolfeworks.net> for <bug-DBIx-Class [...] rt.cpan.org>; Sun, 18 Jan 2009 03:40:13 +0000
Received: by www.wolfeworks.net (Postfix, from userid 1000) id F187C23E6E; Sat, 17 Jan 2009 21:40:12 -0600 (CST)
Delivered-To: cpan-bug+DBIx-Class [...] diesel.bestpractical.com
Subject: DBIx::Class::Storage::DBI dereference error
User-Agent: Mutt/1.5.17+20080114 (2008-01-14)
Return-Path: <Dave [...] WolfeWorks.net>
X-Original-To: bug-DBIx-Class [...] rt.cpan.org
X-Spam-Check-BY: 16.mx.develooper.com
Date: Sat, 17 Jan 2009 21:40:12 -0600
X-Spam-Level: *
To: bug-DBIx-Class [...] rt.cpan.org
From: Dave Wolfe <Dave [...] WolfeWorks.net>
X-RT-Original-Encoding: us-ascii
Content-Length: 1391
Download (untitled) / with headers
text/plain 1.3k
Ubuntu 8.04 (all updates current) Perl 5.8.8 Catalyst-Engine-5.7099_03 Catalyst-Model-DBIC-0.16 DBIx-Class-0.08010 (also DBIx-Class-0.08099_05) I get: "DBIx::Class::ResultSet::search(): Modification of a read-only value attempted at /usr/local/cat/share/perl/5.8.8//DBIx/Class/Storage/DBI.pm line 1103." 1098 sub _select { 1099 my ($self, $ident, $select, $condition, $attrs) = @_; 1100 my $order = $attrs->{order_by}; 1101 1102 if (ref $condition eq 'SCALAR') { ==>1103 $order = $1 if $$condition =~ s/ORDER BY (.*)$//i; 1104 } 1105 1106 my $for = delete $attrs->{for}; 1107 my $sql_maker = $self->sql_maker; 1108 local $sql_maker->{for} = $for; My code that provokes this error is: my $rs = $c->model('DB::Content')->search( { path => $path, type => $type, 'pageacl.userid' => $c->session->{userid}, 'pageacl.access' => {'>=' => $access} }, { where => \'NOW() BETWEEN startdt AND stopdt', join => 'pageacl', order_by => \'startdt DESC, stopdt ASC' }); Apparently the string referenced by $condition is a literal and thus can't be modified by the s///. I didn't track down where it gets set that way since it's not in my code, but obviously the fix applied to other areas need to be done here as well. Thanks. -- Dave Wolfe
MIME-Version: 1.0
In-Reply-To: <20090118034012.GA31702 [...] wolfeworks.net>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
References: <20090118034012.GA31702 [...] wolfeworks.net>
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-4331-1234706469-496.42487-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 135
Download (untitled) / with headers
text/plain 135b


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.