Uploaded image for project: 'RHEL'
  1. RHEL
  2. RHEL-134117

perl-DBD-MySQL needs to be rebuilt with MYSQL_OPT_RECONNECT off

Linking RHIVOS CVEs to...Migration: Automation ...SWIFT: POC ConversionSync from "Extern...XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Normal Normal
    • None
    • rhel-9.7
    • perl-DBD-MySQL
    • None
    • None
    • EasyFix
    • rhel-stacks-services-scripting
    • None
    • False
    • False
    • Hide

      None

      Show
      None
    • None
    • Red Hat Enterprise Linux
    • None
    • None
    • None
    • Unspecified
    • Unspecified
    • Unspecified
    • None

      What were you trying to do that didn't work?

      Run a perl script using DBD::mysql

      What is the impact of this issue to you?

      The new deprecation warning can break existing scripts

      Please provide the package NVR for which the bug is seen:

      perl-DBD-MySQL-4.053-1.el9.0.1.x86_64

      How reproducible is this bug?:

      100%

      Steps to reproduce

      1.  write a perl script that uses DBD::MySQL
      2. do a connection to an existing database in the script
      3. it will output the deprecation warning

      Expected results

      One can connect to a MySQL database from a perl script with nothing written to STDERR when it is successfull

      Actual results

      On connections this is written to STDERR

      WARNING: MYSQL_OPT_RECONNECT is deprecated and will be removed in a future version.

      And can break apps that use perl utilities into thinking a real error happened.

       

      Not that using

       

      DBI->connect($driver,'acct', undef, { mysql_auto_reconnect => 0 } )

       

      DOES NOT prevent the deprecation warning as it is being set after the connection is already made.

       

      The following is a thread of this being fixed on Ubuntu

      Bug #2031548 "8.0.34 client lib change in behavior/output - new ..." : Bugs : mysql-8.0 package : Ubuntu

              mspacek@redhat.com Michal Josef Spacek
              nmrroot Paul Raines
              perl-maint-list perl-maint-list
              Martin Kyral Martin Kyral
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: