[Maypole] Passing dbh attributes on setup
Gaal Yahas
gaal@forum2.org
Thu, 10 Jun 2004 00:03:00 +0300
I need to pass initialization information to my database handle[1].
But I couldn't figure out how! This doesn't work:
__PACKAGE__->setup($dsn, $user, $password, { mysql_enable_utf8=>1 });
Naive, perhaps, to assume that it should, but the flow in Maypole::setup
as a little too confusing for me :-(
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.
[1] If you're using mysql and need to convince perl your data is utf8,
check out this patch to DBD::mysql: http://lists.mysql.com/perl/3006
--
Gaal Yahas <gaal@forum2.org>
http://gaal.livejournal.com/