Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

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

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

People
Owner: jjnapiork [...] cpan.org
Requestors: colin.newell [...] gmail.com
Cc:
AdminCc:

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



Subject: Specifying extra DBI parameters with the connection_info doesn't appear to work as I'd expect
I'm trying to specify an extra DBI parameter for the DBD driver when I set up my Test::DBIx::Class, use Test::DBIx::Class { schema_class => 'AAA::BBB::DMS::Schema::DMSDB', connect_info => ['dbi:DBDriver:cleantest','','', {disable_sth_caching => 1} ], }, 'Folder'; but I get the error, # Returned Error: Can't call method "reftype" on unblessed reference at /usr/local/lib/perl5/site_perl/5.10.1/Test/DBIx/Class/Types.pm line 66. If I change that reftype to ref on line 66 of the file mentioned then it appears to work as I'd expect.
This doesn't look so hard to fix, if I push out a new version shortly will you be able to test it? John
From: colin.newell [...] gmail.com
On Sat Nov 06 14:17:36 2010, JJNAPIORK wrote: Show quoted text
> This doesn't look so hard to fix, if I push out a new version shortly > will you be able to test it? > > John
Sure, I won't be able to test until Wednesday though. Colin.
On Sat Nov 06 18:34:00 2010, http://colinnewell.wordpress.com/ wrote: Show quoted text
> On Sat Nov 06 14:17:36 2010, JJNAPIORK wrote:
> > This doesn't look so hard to fix, if I push out a new version shortly > > will you be able to test it? > > > > John
> > Sure, I won't be able to test until Wednesday though.
I sent a new version on the way to CPAN. Turns out when I cargo culted stuff for TDBIC:Types I didn't cargo cult hard enough and missed a "use Scalar::Util 'reftype';" Another awesome bug caused by Perl indirect object notation, I believe. I added a bit of testing to make sure connect_info doesn't die out with a forth parameter, but your input would be valued. Just FYI, the most current DBIC is busted for replication, there's a fix on the way but avoid for now. Thanks for the bug report. Sorry it took me so long to get to it, it was really quite simple in the end. John Show quoted text
> > > Colin.
From: colin.newell [...] gmail.com
Show quoted text
> > > will you be able to test it? > > > > > > John
> >
It works for me thanks. Colin.
great, thanks for checking!