Package: mysql-server-5.0
Version: 5.0.20-1
Severity: normal

After upgrading to libdbd-mysql-perl 3.0004-1, mysqlhotcopy began to
emit the following warning on every use:

DBI::db=HASH(0xa9a270)->disconnect invalidates 1 active statement handle
(either destroy statement handles or call finish on them before
disconnecting) at /usr/bin/mysqlhotcopy line 541.

(My installed version of mysql is etch's 5.0.20-1, but I have checked
that the mysqlhotcopy shipped in incoming's 5.0.21-4 is identical.)

Investigating in the script, it seems that the problem is that the
statement handle $sth_vars is still active at the time of disconnect.

Either calling $sth_vars->finish;, or moving the 5 lines concerning
$sth_vars into an enclosing block to cause $sth_vars to go out of scope
as soon as it is no longer required successfully avoid the warning.

Max Bowsher.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to