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 42786] New: - apr_dbd_open needs an additional parameter for error handling!
Date Sat, 30 Jun 2007 19:48:23 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=42786>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=42786

           Summary: apr_dbd_open needs an additional parameter for error
                    handling!
           Product: APR
           Version: 1.2.8
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: APR-util
        AssignedTo: bugs@apr.apache.org
        ReportedBy: frankbugs@x09.de


Hi,
when the function call 'apr_dbd_open' fails, noone knows why! 'apr_dbd_error' is
no help, because the driver object might not exists!
Today I had the problem that my Apache told me: '[crit] (20014)Internal error:
DBD: Can't connect to mysql'. Good to know that it cannot connect, but better
would be to tell me why it cannot connect!
This can be done my adding an additional parameter like 'char **err_message' to
'apr_dbd_open'. This parameter will be also given to the real driver
implementation who then is able to set this variable to a meaningful error
message (E.g. in my case I see now: "(20014)Internal error: DBD: Can't connect
to mysql: Too many connections", because I did this trivial change in my
installation.)

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

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


Mime
View raw message