apr-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 45407] New: auto reconnect in apr_dbd_mysql disturb normal work with prepared statements
Date Wed, 16 Jul 2008 11:49:54 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=45407

           Summary: auto reconnect in apr_dbd_mysql disturb normal work with
                    prepared statements
           Product: APR
           Version: HEAD
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: APR
        AssignedTo: bugs@apr.apache.org
        ReportedBy: mkevac@gmail.com


Auto reconnect option in apr_dbd_mysql is set to 1:

#if MYSQL_VERSION_ID >= 50013
    my_bool do_reconnect = 1;
#endif

This forces mysql_ping(), which is called by dbd_mysql_check_conn(), to
reconnect if connection to MySQL server was lost.

But lost connection also means that all prepared statements are lost. And
because statements are prepared only when dbd_construct() is called, one can
not use prepared statements any more.

I think we should set do_reconnect to 0 by default.


-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@apr.apache.org
For additional commands, e-mail: bugs-help@apr.apache.org


Mime
View raw message