[Maypole] Passing dbh attributes on setup

Gaal Yahas gaal@forum2.org
Thu, 10 Jun 2004 11:11:26 +0300


On Wed, Jun 09, 2004 at 11:05:45PM +0100, Tony Bowden wrote:
> On Thu, Jun 10, 2004 at 12:03:00AM +0300, Gaal Yahas wrote:
> > I'd settle for a hackish way to steal the dbh from CDBI after the connect,
> > since I don't need this attribute to be correct at connection time, but
> > that didn't seem any easier.
> 
> my $dbh = $class->db_Main;

Hmm, perhaps my timing was wrong, but this didn't work:


BYM->db_Main()->{mysql_enable_utf8} = 1; # after BYM->setup and stuff

[...]

Couldn't require BYM - Can't locate object method "db_Main" via package "BYM" at lib/BYM.pm line 30.

-- 
Gaal Yahas <gaal@forum2.org>
http://gaal.livejournal.com/