When connecting via DBD::Proxy from a client with DBI-1.37, to a
server running DBI-1.35, I get the following warning on connect
[on one long line, but wrapped here to not upset MUAs]:

    DBD::Proxy::db STORE failed: Server returned error: Failed to
    execute method CallMethod: Can't set
    DBI::ProxyServer::db=HASH(0x8364d50)->{Username}: unrecognised
    attribute or invalid value at
    /usr/lib/perl5/site_perl/5.6.0/RPC/PlServer.pm line 332

And on disconnect, I get another warning [again, wrapped]:

    DBD::Proxy::db disconnect failed: Server returned error: Failed to
    execute method CallMethod: Not permitted for method disconnect of
    class DBI::ProxyServer::db at
    /usr/lib/perl5/site_perl/5.6.0/RPC/PlServer.pm line 328.

The proxied connection itself seems to be working fine.

When I downgrade DBI to DBI-1.35 on the client, the warning goes away
(I can't easily upgrade the server to test if that'd remove the
warning too).

At first glance, this seems to be caused by the change in DBI-1.36 to
add $attr->{Username} and $dbh->{Username}, or at least the connect
warning is.

It might be a good idea to fix this in a backward-compatible way. I'm
sure that mixing DBI versions is more likely to occur. The easiest fix
seems to be to just suppress this particular error in the DBD::Proxy, if
the warnings are otherwise harmless.

-- 
#!perl -pl      # This kenny-filter is virus-free as long as you don't copy it
$p=3-2*/[^\W\dmpf_]/i;s.[a-z]{$p}.vec($f=join('',$p-1?chr(sub{$_[0]*9+$_[1]*3+
$_[2]}->(map{/p|f/i+/f/i}split//,$&)+97):('m',p,f)[map{((ord$&)%32-1)/$_%3}(9,
3,1)]),5,1)='`'lt$&;$f.eig;                                # Jan-Pieter Cornet

Reply via email to