• Bug#227857: libdbd-mysql-perl: short-term fix for DBD::mysql auto-recon

    From Scott Barker@1:229/2 to All on Fri Aug 20 19:40:10 2004
    From: [email protected]

    Package: libdbd-mysql-perl
    Version: 2.9003-2
    Followup-For: Bug #227857

    The following patch returns the previous behaviour of DBD::mysql, such
    that the C library auto-reconnect is used instead of the buggy
    DBD::mysql auto-reconnect. If the C library auto-reconnect fails, the DBD::mysql auto-reconnect will still be attempted.

    diff -urbB libdbd-mysql-perl-2.9003/dbdimp.c libdbd-mysql-perl-2.9003.new/dbdimp.c
    --- libdbd-mysql-perl-2.9003/dbdimp.c Fri Oct 17 11:20:50 2003
    +++ libdbd-mysql-perl-2.9003.new/dbdimp.c Fri Aug 20 11:01:22 2004
    @@ -965,7 +965,7 @@
    /* we turn off Mysql's auto reconnect and handle re-connecting ourselves
    * so that we can keep track of when this happens.
    */
    - sock->reconnect=0;
    +/* sock->reconnect=0; */
    return result;
    }
    }

    -- System Information:
    Debian Release: 3.0
    APT prefers testing
    APT policy: (100, 'testing')
    Architecture: i386 (i686)
    Kernel: Linux 2.4.20
    Locale: LANG=C, LC_CTYPE=C

    Versions of packages libdbd-mysql-perl depends on:
    ii libc6 2.3.2.ds1-13 GNU C Library: Shared libraries an ii libdbi-perl 1.41-1 The Perl5 Database Interface by Ti ii libmysqlclient12 4.0.18-5 mysql database client library
    ii libssl0.9.6 0.9.6c-2.woody.6 SSL shared libraries
    ii perl 5.8.4-2 Larry Wall's Practical Extraction ii perl-base [perlap