Skip Menu |
 

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

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

People
Owner: Nobody in particular
Requestors: hanenkamp [...] cpan.org
Cc:
AdminCc:

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



Subject: Docs bug: Arbitrary SQL through a custom ResultSource
Download (untitled) / with headers
text/plain 684b
The code example under Arbitrary SQL through custom ResultSource is missing a line needed to make it work: https://metacpan.org/module/DBIx::Class::Manual::Cookbook#Arbitrary-SQL-through-a- custom-ResultSource The line is shown in the SYNOPSIS here: https://metacpan.org/module/DBIx::Class::ResultSource::View The missing line is: __PACKAGE__->table('year2000cds'); (or equivalent). Without that line the "result_source_instance" accessor is not available, so you will get an exception: Can't locate object method "result_source_instance"... I suggest also that a note should be added to the DBIx::Class::ResultSource::View documentation explaining the need for this call.
Download (untitled) / with headers
text/plain 231b
On Tue Jun 19 16:52:56 2012, HANENKAMP wrote: Show quoted text
> The code example under Arbitrary SQL through custom ResultSource is > missing a line needed > to make it work:
Indeed. Fixed in https://github.com/dbsrgits/dbix-class/commit/e200fc53


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.