1
0
mirror of https://github.com/apache/httpd.git synced 2025-08-08 15:02:10 +03:00

apr_dbd_check_conn() just returns APR_SUCCESS or APR_EGENERAL, so we

don't actually have a driver-specific value to pass to apr_dbd_error(),
but that's OK because most/all drivers just ignore this value anyway


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@539687 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Chris Darroch
2007-05-19 05:01:44 +00:00
parent 3019f9a87b
commit af98980f19

View File

@@ -706,7 +706,10 @@ static apr_status_t dbd_check(apr_pool_t *pool, server_rec *s, ap_dbd_t *rec)
return APR_SUCCESS;
}
errmsg = apr_dbd_error(rec->driver, rec->handle, rv);
/* we don't have a driver-specific error code, so we'll just pass
* a "success" value and rely on the driver to ignore it
*/
errmsg = apr_dbd_error(rec->driver, rec->handle, 0);
if (!errmsg) {
errmsg = "(unknown)";
}