Still no time to dig, but it sounds like an tie inner vs outer issue. If you're using the outer handle then you'll need to mg_get() to fire FETCH. If that's not it then perhaps you could send me a patch (svn diff) which'll get me to where you're at.
The problem was that it was looking for the value in the wrong place. After losing a lot of hair I've discovered that. Here is the patch:
(notice that there is one more fix for copy, as sometimes you get imp_data as an empty SV)
Index: DBI.xs
===================================================================
--- DBI.xs (revision 940)
+++ DBI.xs (working copy)
@@ -885,7 +885,7 @@
PerlIO_printf(DBILOGFP," dbih_make_com(%s, %p, %s, %ld, %p) thr#%p\n",
neatsvpv(p_h,0), p_imp_xxh, imp_class, (long)imp_size, copy, PERL_GET_THX);
- if (copy) {
+ if (copy && SvOK(copy)) {
/* validate the supplied dbi_imp_data looks reasonable, */
if (SvCUR(copy) != imp_size)
croak("Can't use dbi_imp_data, wrong size (%d not %d)",
@@ -979,9 +979,12 @@if (parent) {
parent_imp = DBIh_COM(parent);
- if (DBIc_TYPE(parent_imp) == DBIt_DR && (svp = hv_fetch((HV*)SvRV(h), "dbi_imp_data", 12, 0))) {
- dbi_imp_data = *svp;
- }
+ if (imp_datasv) {
+ HV *hv = (HV*)(SvROK(imp_datasv) ? SvRV(imp_datasv) : imp_datasv);
+ if (DBIc_TYPE(parent_imp) == DBIt_DR && (svp = hv_fetch(hv, "dbi_imp_data", 12, 0))) {
+ dbi_imp_data = *svp;
+ }
+ }
}
else {
parent_imp = NULL;
-- __________________________________________________________________ Stas Bekman JAm_pH ------> Just Another mod_perl Hacker http://stason.org/ mod_perl Guide ---> http://perl.apache.org mailto:[EMAIL PROTECTED] http://use.perl.org http://apacheweek.com http://modperlbook.org http://apache.org http://ticketmaster.com
