[RDBO] overloading Rose::DB-dbh

2007-02-08 Thread Michael Reece
trying every which way to make Rose::DB::Object(s) always use my custom global $dbh, package Vinq::RDB::MySQL; use base 'Rose::DB'; use Vinq::Globals qw( $dbh ); __PACKAGE__-use_private_registry; __PACKAGE__-register_db(driver = 'mysql'); sub dbh { $dbh } sub driver {

Re: [RDBO] overloading Rose::DB-dbh

2007-02-08 Thread Jonathan Vanasco
On Feb 8, 2007, at 7:24 PM, Michael Reece wrote: trying every which way to make Rose::DB::Object(s) always use my custom global $dbh, i have no idea why your package isn't working (i have a few ideas, but no time to test) i suggest trying this approach, which is essentially what i do: