Subject: | Callback handles are not passed to DBIx::Connector callers |
Date: | Tue, 15 Mar 2011 22:15:18 +1300 |
To: | bug-DBIx-Connector [...] rt.cpan.org |
From: | Mark Lawrence <nomad [...] null.net> |
I'm trying to use the on-connect call-back functionality DBI provides
by specifying a subroutine in the {Callbacks}->{connected} part of the
DBI->connect attributes hash.
The issue I seem to be seeing is that the handle that is passed to the
anonymous subroutine specified in that hash is not the same handle that
DBIX::Connector is providing to callers. The attached test checks to see if
that is in fact the case, and currently fails with the latest version.
For me this means I can't automatically set things like the SQLite
foreign_key pragma at the very beginning of my session.
Mark.
--
Mark Lawrence
Message body is not shown because sender requested not to inline it.