[Dbix-class] Storage::DBI::ODBC cause DBI->connect() to be called twice

Marc Mims marc at questright.com
Mon Aug 11 17:10:04 BST 2008


* Oystein.Torget at dnv.com <Oystein.Torget at dnv.com> [080811 08:40]:
> It seems that the Storage::DBI::ODBC module causes DBI->connect() to
> be called twice when you connect to the database.
>  
> I have posted this as a possible bug in CPAN RT. The bug report with
> more information can be found here:
> http://rt.cpan.org/Public/Bug/Display.html?id=38186
>  
> The bug *seems* to be easy to fix, but feedback from others using the
> Storage::DBI::ODBC module would be useful.

Looks we're recursing and $self->_dbh, rather than $self->dbh would,
indeed, solve the problem.  However, I wonder if we should be using the
newer $self->dbh_do, instead?

	-Marc



More information about the DBIx-Class mailing list