Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: ddascalescu+perl [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: (no value)
Fixed in: (no value)



Subject: Spurious call to SELECT CONT(*) when accessing result_source.columns from a resultset
Download (untitled) / with headers
text/plain 433b
The call from a template to a resultset's result_source.columns generates a SELECT COUNT( * ) FROM __TABLE__ me:. I set the severity to "important" because for PostgreSQL, the SELECT COUNT(*) takes as long as half a second. $c->stash->{items} = $c->model('MyApp::Books')->search(undef, { rows => 3, }), [% FOREACH column IN items.result_source.columns %] <th>[% column %]</th> [% END %]
TT bug.
From: cpan [...] wardley.org
On Tue Jul 17 18:44:38 2007, MSTROUT wrote: Show quoted text
> TT bug.
Any clues as to why it is a TT bug? A
Download (untitled) / with headers
text/plain 498b
TT's causing the resultset's numification to be triggered. I'm guessing you're checking truth where you should be checking defined somewhere. We went over this at some length on the lists with the original reporter at the time, hence why I closed the ticket with such a terse message (I didn't even realise it was there when we dealt with it). Either way, this is -not- a DBIC bug so if you want to discuss further please do so via private e-mail or the list, not by re-opening a rejected ticket.


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.