On Thu 28 Aug 2003 20:59, Tim Bunce <[EMAIL PROTECTED]> wrote:
> On Thu, Aug 28, 2003 at 02:40:46PM +0200, H.Merijn Brand wrote:
> > 
> > One of the reasons I'm still holding on to DBI-1.35 is
> > 
> > Argument "" isn't numeric in null operation at 
> > /pro/lib/perl5/site_perl/5.8.0/PA-RISC2.0/DBI.pm line 632.
> > which is caused by attr 'Username' which is either undef or blank
> 
> I suspect the problem is in DBD::Unify. Does it happen for any other DBD's?

I don't use the other DBD's very often :)
I don't like Oracle.


a5:/pro/3gl/CPAN/DBD-Unify-0.27 102 > grep Username *
Exit 1
a5:/pro/3gl/CPAN/DBD-Unify-0.27 103 > grep Username */*
Binary file ulib/unify.cmf matches
ulib/unify.msg:   8889|Username :
ulib/unify.msg:   8959!Invalid Username/Password. (#)
ulib/unify.msg:   8964|usage: %s [Username[/Password]]
ulib/unify.msg:  15889|Username:
ulib/unify.msg:  15964|usage: %s [Username[/Password]]
a5:/pro/3gl/CPAN/DBD-Unify-0.27 104 >


> > for now, I've changed that to
> >         foreach $a (keys %$attr) {
> >             no warnings;
> >             $dbh->{$a} = $attr->{$a};
> >             }
> > so 
> > 
> > I have rewritten DBD-Unify (with pain in my heart) to replace
> > $dbh->{DBDverbose} (which IMHO is a perfectly good name, and should be adopted
> > by all drivers)

Oh, and I forgot to say: See, I do what I promised in Paris :)

> I have vague plans to turn the high bits of the trace level into a
> bit mask to enable some specific trace features. In other words, use
> the lowest 8 bits for current general use, the next 8 bits for a DBD
> specific trace level, and the next 16 bits for special features.
> Patches welcome! :)

Yeah! (to be honoust, I used it the other way round in user scripts, because
I'm usually more interested in what happens in the DBD, than what happens in
the DBI. The DBI usually kinda `behaves')

> > to $dbh->{uni_verbose} as the documentation requires.
> > 
> > That works, but I'd like to have one intermediate release that warns if
> > DBDverbose is in use. What would be the best place to do so?
> 
> Er, I'm not sure what you mean but I'd suggest the STORE that handles
> the setting of the DBDverbose attribute.

Yep, I've already caught these, but can I hijack the DBI level, because
$dbh->{DBDverbose} will not get through anymore

> > My DBD's depend on my environment, so here's the same thing twice
> 
> Thanks.

Still searching for time to extend DBD::Unify, though this change might be
just enough reason to start catching up ...

-- 
H.Merijn Brand        Amsterdam Perl Mongers (http://amsterdam.pm.org/)
using perl-5.6.1, 5.8.0 & 633 on HP-UX 10.20 & 11.00, AIX 4.2, AIX 4.3,
     WinNT 4, Win2K pro & WinCE 2.11 often with Tk800.024 &/| DBD-Unify
ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/H/HM/HMBRAND/


Reply via email to